-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from hpi-swa-lab/feat/semantics
Semantics Plugin
- Loading branch information
Showing
213 changed files
with
1,351 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
OrderedDictionary { | ||
'packages/BaselineOfSqueakInboxTalk.package' : #SquotCypressCodeSerializer, | ||
'packages/SqueakInboxTalk.package' : #SquotCypressCodeSerializer, | ||
'packages/SqueakInboxTalkTests.package' : #SquotCypressCodeSerializer | ||
'packages/SqueakInboxTalkTests.package' : #SquotCypressCodeSerializer, | ||
'packages/SqueakInboxTalkExtras-Semantics.package' : #SquotCypressCodeSerializer | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
...elineOfSqueakInboxTalk.package/BaselineOfSqueakInboxTalk.class/instance/installChatGPT.st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
packages/SqueakInboxTalk.package/Object.extension/instance/isTalkBackgroundException.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*SqueakInboxTalk-UI-testing | ||
isTalkBackgroundException | ||
|
||
^ false |
5 changes: 5 additions & 0 deletions
5
packages/SqueakInboxTalk.package/Object.extension/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"isTalkBackgroundException" : "ct 8/15/2023 16:51" } } |
2 changes: 2 additions & 0 deletions
2
packages/SqueakInboxTalk.package/Object.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
"name" : "Object" } |
1 change: 1 addition & 0 deletions
1
packages/SqueakInboxTalk.package/TalkBackgroundException.class/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I hold an exception that was raised from a (background) process and interrupted that process. Similar to a debugger, I can display the exception and resolve it later. |
4 changes: 4 additions & 0 deletions
4
packages/SqueakInboxTalk.package/TalkBackgroundException.class/class/for..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
instance creation | ||
for: anException | ||
|
||
^ self new exception: anException |
10 changes: 10 additions & 0 deletions
10
packages/SqueakInboxTalk.package/TalkBackgroundException.class/instance/debug.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
resolving | ||
debug | ||
|
||
resolution := [self exception resumeUnchecked: self exception]. "just like Debugger proceed" | ||
^ ToolSet | ||
debugProcess: self process | ||
context: self exception signalerContext | ||
label: self exception description | ||
contents: self messageText | ||
fullView: true |
4 changes: 4 additions & 0 deletions
4
packages/SqueakInboxTalk.package/TalkBackgroundException.class/instance/exception..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
exception: anException | ||
|
||
exception := anException. |
4 changes: 4 additions & 0 deletions
4
packages/SqueakInboxTalk.package/TalkBackgroundException.class/instance/exception.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
exception | ||
|
||
^ exception |
4 changes: 4 additions & 0 deletions
4
...ueakInboxTalk.package/TalkBackgroundException.class/instance/isTalkBackgroundException.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
testing | ||
isTalkBackgroundException | ||
|
||
^ true |
20 changes: 20 additions & 0 deletions
20
packages/SqueakInboxTalk.package/TalkBackgroundException.class/instance/messageText.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
printing | ||
messageText | ||
|
||
| text | | ||
(self exception respondsTo: #richMessageText) ifTrue: | ||
["ASSUMPTION: All text actions in #richMessageText send a handling message to the exception, so we forward these sends to the original process. However, there might be violations to this assumptions in other cases. If needed, we would need to inject the original exception at #resumeEvaluating:, #return:, etc. ..." | ||
^ self exception richMessageText copy | ||
replaceAttributesThat: [:attr | attr isKindOf: TextAction] | ||
by: [:attr | | ||
PluggableTextAttribute evalBlock: [:object | | ||
self resolve: [attr actOnClickFor: object]]]]. | ||
|
||
text := '{1}<br>{2} to debug the exception.' asTextFromHtml format: | ||
{self exception description. | ||
'Click here' asText | ||
addAttribute: TextEmphasis bold; | ||
addAttribute: (PluggableTextAttribute evalBlock: [self debug]); | ||
yourself}. | ||
text addAttribute: self textColorForError. | ||
^ text |
4 changes: 4 additions & 0 deletions
4
packages/SqueakInboxTalk.package/TalkBackgroundException.class/instance/process.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
process | ||
|
||
^ process |
7 changes: 7 additions & 0 deletions
7
packages/SqueakInboxTalk.package/TalkBackgroundException.class/instance/resolve..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
resolving | ||
resolve: aSymbolOrBlock | ||
|
||
resolution := aSymbolOrBlock. | ||
process | ||
ifNil: [self resolve] | ||
ifNotNil: [process resume]. |
7 changes: 7 additions & 0 deletions
7
packages/SqueakInboxTalk.package/TalkBackgroundException.class/instance/resolve.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
resolving | ||
resolve | ||
|
||
^ [resolution isSymbol | ||
ifTrue: [self exception perform: resolution] | ||
ifFalse: [resolution cull: self exception]] | ||
ensure: [resolution := nil] |
6 changes: 6 additions & 0 deletions
6
packages/SqueakInboxTalk.package/TalkBackgroundException.class/instance/textColorForError.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
printing | ||
textColorForError | ||
|
||
^ TextColor color: | ||
((UserInterfaceTheme current get: #errorColor for: #TestRunner) | ||
ifNil: [Color red]) |
8 changes: 8 additions & 0 deletions
8
packages/SqueakInboxTalk.package/TalkBackgroundException.class/instance/waitForResolution.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
resolving | ||
waitForResolution | ||
"Remember and suspend the active process until is resumed through a resolution." | ||
|
||
process := Processor activeProcess. | ||
[process suspend] | ||
ensure: [process := nil]. | ||
self resolve. |
14 changes: 14 additions & 0 deletions
14
packages/SqueakInboxTalk.package/TalkBackgroundException.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"class" : { | ||
"for:" : "ct 8/15/2023 16:48" }, | ||
"instance" : { | ||
"debug" : "ct 8/21/2023 01:25", | ||
"exception" : "ct 8/15/2023 16:47", | ||
"exception:" : "ct 8/15/2023 16:47", | ||
"isTalkBackgroundException" : "ct 8/15/2023 16:51", | ||
"messageText" : "ct 8/20/2023 22:06", | ||
"process" : "ct 8/15/2023 16:58", | ||
"resolve" : "ct 8/15/2023 17:01", | ||
"resolve:" : "ct 8/20/2023 21:44", | ||
"textColorForError" : "ct 8/15/2023 16:55", | ||
"waitForResolution" : "ct 8/20/2023 21:47" } } |
16 changes: 16 additions & 0 deletions
16
packages/SqueakInboxTalk.package/TalkBackgroundException.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"category" : "SqueakInboxTalk-UI", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "ct 8/20/2023 21:45", | ||
"instvars" : [ | ||
"process", | ||
"exception", | ||
"resolution" ], | ||
"name" : "TalkBackgroundException", | ||
"pools" : [ | ||
], | ||
"super" : "Object", | ||
"type" : "normal" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
packages/SqueakInboxTalk.package/TalkConversationBrowser.class/class/chatGPT.st
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...SqueakInboxTalk.package/TalkConversationBrowser.class/class/shouldIncludeSmartSummary..st
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
.../SqueakInboxTalk.package/TalkConversationBrowser.class/class/shouldIncludeSmartSummary.st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
packages/SqueakInboxTalk.package/TalkConversationBrowser.class/instance/currentText.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
accessing - state | ||
currentText | ||
|
||
self hasSpecialMessageSelected ifTrue: [^ self text]. | ||
|
||
searchModel hasSearchError ifTrue: [^ searchModel debuggableErrorText]. | ||
|
||
^ self annotateMatchesIn: (self text ifNil: [^ nil]) |
2 changes: 1 addition & 1 deletion
2
...ueakInboxTalk.package/TalkConversationBrowser.class/instance/hasSpecialMessageSelected.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
testing | ||
hasSpecialMessageSelected | ||
|
||
^ self selectedMessage isSymbol | ||
^ self selectedMessage isArray |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/SqueakInboxTalk.package/TalkConversationBrowser.class/instance/messageMenu..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
...ges/SqueakInboxTalk.package/TalkConversationBrowser.class/instance/requestSmartSummary.st
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...s/SqueakInboxTalk.package/TalkConversationBrowser.class/instance/selectedActualMessage.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
accessing - state | ||
selectedActualMessage | ||
|
||
^ selectedMessage isSymbol ifFalse: [selectedMessage] | ||
^ selectedMessage isArray ifFalse: [selectedMessage] |
4 changes: 4 additions & 0 deletions
4
.../SqueakInboxTalk.package/TalkConversationBrowser.class/instance/selectedSpecialMessage.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing - state | ||
selectedSpecialMessage | ||
|
||
^ selectedMessage isArray ifTrue: [selectedMessage] |
4 changes: 0 additions & 4 deletions
4
...ueakInboxTalk.package/TalkConversationBrowser.class/instance/shouldIncludeSmartSummary.st
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...ages/SqueakInboxTalk.package/TalkConversationBrowser.class/instance/smartSummaryHeader.st
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
packages/SqueakInboxTalk.package/TalkConversationBrowser.class/instance/smartSummaryText.st
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.