Visitar URL original
Improve ASTParser options when project is resolved. Fix #488 by gayanper · Pull Request #490 · microsoft/java-debug · GitHub
The Wayback Machine - https://web.archive.org/web/20230527014130/https://github.com/microsoft/java-debug/pull/490
Skip to content
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

Improve ASTParser options when project is resolved. Fix #488 #490

Merged
merged 2 commits into from May 26, 2023

Conversation

gayanper
Copy link
Contributor

When both the project and compiler options are set, the AST parser doesn't output the method statements. But if we only set the compiler options when project is not resolved, then method statements are resolved.

The issue with #488 was that method was missing statements, and BreakpointLocator endup seeing that closest location is at the end of the method.

testforstephen
testforstephen previously approved these changes May 26, 2023
Copy link
Contributor

@testforstephen testforstephen left a comment

Choose a reason for hiding this comment

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

LGTM. setProject will also set the project's compiler options to the paser.

@testforstephen
Copy link
Contributor

Error: src/main/java/com/microsoft/java/debug/plugin/internal/JdtSourceLookUpProvider.java:[352] (regexp) RegexpSingleline: Line has trailing spaces.

@gayanper checkstyle failed.

@testforstephen
Copy link
Contributor

Error: src/main/java/com/microsoft/java/debug/plugin/internal/JdtSourceLookUpProvider.java:[352] (regexp) RegexpSingleline: Line has trailing spaces.

@gayanper checkstyle failed.

forget it. I have submit a fix in this PR for checkstyle error.

@testforstephen testforstephen merged commit d37cb10 into microsoft:main May 26, 2023
4 checks passed
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.

None yet

2 participants