Skip to content

Fixed inspections#19

Merged
dionisiydk merged 3 commits into
pharo-ide:masterfrom
JanBliznicenko:master
May 31, 2025
Merged

Fixed inspections#19
dionisiydk merged 3 commits into
pharo-ide:masterfrom
JanBliznicenko:master

Conversation

@JanBliznicenko
Copy link
Copy Markdown
Contributor

Fixes #18

(sorry for not noticing in the previous PR)

Extension { #name : 'UndefinedObject' }

{ #category : '*Ghost-NewToolsSupport' }
UndefinedObject >> ghostPrintString [
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this method is needed for nil?

Copy link
Copy Markdown
Contributor Author

@JanBliznicenko JanBliznicenko May 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When debugging GHMetaMessages, it may happen that ghost is not set yet. But in order to print GHMetaMessages instance, it sends ghostPrintString to the contents of ghost variable. In that case, debugger goes into flames 🔥🔥(I mean you get another debugger with an error and the original inspection part of the debugger stops showing anything). Another way to prevent this could be a nil check for the printing in GHMetaMessages.

@dionisiydk dionisiydk marked this pull request as ready for review May 31, 2025 12:32
@dionisiydk dionisiydk merged commit b6eff22 into pharo-ide:master May 31, 2025
2 checks passed
@dionisiydk
Copy link
Copy Markdown
Collaborator

@JanBliznicenko many thanks.
v7.0.1 is released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inspecting objects ends up in an error

2 participants