Repository navigation
check callflag when comparing contexts - #14360
Merged
Merged
Conversation
kevinushey
marked this pull request as draft
March 3, 2024 03:10
kevinushey
marked this pull request as ready for review
March 3, 2024 19:01
kevinushey
commented
Mar 3, 2024
Comment on lines
+189
to
+194
| # Bytes (elements 2, 4) and columns (elements 5, 6) may be different due to | ||
| # multibyte characters. If only four values are given, the columns and bytes | ||
| # are assumed to match. Lines (elements 1, 3) and parsed lines (elements 7, | ||
| # 8) may differ if a #line directive is used in code: the former will respect | ||
| # the directive, the latter will just count lines. If only 4 or 6 elements | ||
| # are given, the parsed lines will be assumed to match the lines. |
Collaborator
Author
There was a problem hiding this comment.
Maybe it's just me, but I found this documentation to be nigh-on indecipherable...
Comment on lines
-2636
to
-2645
| tryExternalCodeBrowser(event.getFunction(), event, new Command() | ||
| { | ||
| @Override | ||
| public void execute() | ||
| { | ||
| final String path = CodeBrowserEditingTarget.getCodeBrowserPath( | ||
| event.getFunction()); | ||
| columnManager_.closeTabWithPath(path, false); | ||
| } | ||
| }); |
Collaborator
Author
There was a problem hiding this comment.
Not sure why this code wasn't working before, but we now write in relevant "close on debugger exited" handlers elsewhere.
kevinushey
commented
Mar 4, 2024
| @@ -81,14 +81,18 @@ class RCntxt: public RCntxtInterface | |||
| // NOTE: 'srcref()' attribute may be set to <in-bc-interp> | |||
| // symbol for contexts associated with bytecode evaluation! | |||
| bool isNull() const; | |||
Collaborator
Author
There was a problem hiding this comment.
Reordered to match the order defined in the R sources. Not strictly necessary, but makes cross-referencing a bit easier.
| { | ||
| public: | ||
| // accessors for RCNTXT entries | ||
| virtual SEXP callfun() const = 0; |
3 of 4 tasks
4 tasks done
4 tasks done
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Intent
Addresses #10664, which appears to have regressed.
Addresses #14306.
Addresses #14276.
QA note: it's possible that this issue may only occur with the latest release of R; perhaps older versions of R are fine?
Approach
Similar to the last fix, tighten up the checks on whether two contexts can be considered equal.
Automated Tests
N/A
QA Notes
This PR adds a number of files for manual testing of the debugger, located in the RStudio repository at
src/cpp/tests/debugger. The intention here is that these files can be opened in RStudio, and one can follow the instructions in each file to test various debug cases.Documentation
N/A
Checklist
NEWS.md