-
Notifications
You must be signed in to change notification settings - Fork 874
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
Adding support for evaluating watches containing binding variables. #5763
Conversation
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.
hi @jlahoda, it is always nice to see more tests getting hooked into CI. Thanks!
the java-modules job has a section which runs a some debugger tests, this job is already very long (~50mins). Assuming the tests work on JDK 17 too, we could move them to the new job you created if you want:
netbeans/.github/workflows/main.yml
Lines 1289 to 1305 in 18db5e3
# - name: debugger.jpda | |
# run: ant $OPTS -f java/debugger.jpda test | |
- name: debugger.jpda.js | |
run: ant $OPTS -f java/debugger.jpda.js test | |
- name: debugger.jpda.projects | |
run: ant $OPTS -f java/debugger.jpda.projects test | |
- name: debugger.jpda.projectsui | |
run: ant $OPTS -f java/debugger.jpda.projectsui test | |
# - name: debugger.jpda.truffle | |
# run: ant $OPTS -f java/debugger.jpda.truffle test | |
# - name: debugger.jpda.ui | |
# run: ant $OPTS -f java/debugger.jpda.ui test |
and
netbeans/.github/workflows/main.yml
Lines 1274 to 1275 in 18db5e3
- name: api.debugger.jpda | |
run: ant $OPTS -f java/api.debugger.jpda test |
-> to new java-debugger job
This would have all debugging tests in one job and also help balancing job length a bit.
java/debugger.jpda/test/unit/src/org/netbeans/api/debugger/jpda/EvaluatorDirectTest.java
Show resolved
Hide resolved
tests are now failing. The reason it didn't fail the first time it ran is because |
I am sorry, I forgot something. The job handle would have to be added to the list at: netbeans/.github/workflows/main.yml Lines 2393 to 2398 in 27ed405
so that the pipeline artifact is not cleaned up when the new job fails (allows restarts). |
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.
thanks. Looks good to me.
@jlahoda do you think this is good to merge or should we wait for another review? Don't forget to squash before merge. |
@jlahoda features freeze for NB18 is on the 18th. Ideally all PRs should be merged till Monday night or they will be bumped to NB19. |
6e3b91f
to
b2de439
Compare
thank you :) |
When a watch contains a binding variable, it fails to show the value. This patch is trying to fix that - that's the
case BINDING_VARIABLE:
change.In addition to this, this patch is trying to:
EvaluationTest
, only one subtest fails. This could, presumably, be improved in further patches. IMO better to run some tests, than none.info.getCompilationUnit()
->treePath.getCompilationUnit()
change is a bit tricky: if scanning is running, the TreePath may originate in a different javac instance than is the one held ininfo
. Which then leads to end position-1
(because the end position is held into CompilationUnitTree, but only for trees under that top-level tree), which will inject code at incorrect place. UsingtreePath.getCompilationUnit()
is not 100% correct, I think, but it workarounds the issue at this specific place, at least^Add meaningful description above
By opening a pull request you confirm that, unless explicitly stated otherwise, the changes -
Please make sure (eg.
git log
) that all commits have a valid name and email address for you in the Author field.If you're a first time contributor, see the Contributing guidelines for more information.
If you're a committer, please label the PR before pressing "Create pull request" so that the right test jobs can run.