-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print out warnings associated with local variables #10842
Merged
Merged
Changes from 29 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
d70cd37
Duplicating the test to get ready for new use-cases
JaroslavTulach 01c6ce5
Only enable the ReplDebuggerInstrument when ENABLE_OPTION is specified
JaroslavTulach b8bee0d
Remove test cases that don't invoke Debug.breakpoint at the end of th…
JaroslavTulach eb3b76e
Let FN_OPTION also enable ReplDebuggerInstrument
JaroslavTulach 454804f
Allow activation of REPL at end of given function name
JaroslavTulach 63d1560
Keep the binding on during the whole DebugServerTest
JaroslavTulach 7f06236
Sharing the client initialization code among both options
JaroslavTulach dbe3c45
Extract value from a warning and print associated warnings on other l…
JaroslavTulach 4fda04b
Print warnings on local variables to stderr
JaroslavTulach aa7c9a7
More normalized JUnit test
JaroslavTulach 1312546
Print out Error values as well as warnings
JaroslavTulach 42da3aa
Note in changelog
JaroslavTulach 2cc7ef5
When an Error is found, return it instead of real value
JaroslavTulach 7df58ef
Enable check for warnings when runMain
JaroslavTulach e6fbf73
Fail the execution if the result looks like an error
JaroslavTulach f61b6fd
Using DebugServerInfo constant in ContextFactory
JaroslavTulach 40ed823
Only one block node with RootTag per function
JaroslavTulach 1ef93a3
Special case for invocation of main
JaroslavTulach 4501988
Arguments are no longer RootTagged
JaroslavTulach 83d0af9
Introducing enableDebugServer builder option
JaroslavTulach c7a6228
Fixing four of five Insight tests
JaroslavTulach 41b3473
Initialize argument variables first, then RootBodyTag node
JaroslavTulach 8f6ebdb
Check behavior of an unused errorneus variable
JaroslavTulach 47c4e68
Don't change main method return value, just wrap it with exit exception
JaroslavTulach 49d535b
Print out warnings for REPL return value too
JaroslavTulach 6987125
Call it METHOD_BREAKPOINT_OPTION
JaroslavTulach 8dcc6ae
Removing pointless s variable
JaroslavTulach c4b1815
No need to cast
JaroslavTulach 6b69f09
Adjust tests to the METHOD_BREAKPOINT_OPTION rename
JaroslavTulach 5f393c5
Avoid dealing with new lines
JaroslavTulach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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: 6 additions & 2 deletions
8
...so/polyglot/debugger/DebugServerInfo.java → ...java/org/enso/common/DebugServerInfo.java
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,8 +1,12 @@ | ||
package org.enso.polyglot.debugger; | ||
package org.enso.common; | ||
|
||
/** Container for Runtime Server related constants. */ | ||
/** Container for debug server related constants. */ | ||
public class DebugServerInfo { | ||
private DebugServerInfo() { | ||
|
||
} | ||
public static final String URI = "enso://debug-server"; | ||
public static final String INSTRUMENT_NAME = "enso-debug-server"; | ||
public static final String ENABLE_OPTION = INSTRUMENT_NAME + ".enable"; | ||
public static final String METHOD_BREAKPOINT_OPTION = INSTRUMENT_NAME + ".method-break-point"; | ||
} |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this print to stderr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. However the code has been there before this PR - so the answer doesn't need to be provided by this PR.