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

JDT changes the project after calling codeSelect of CompilationUnit #842

Closed
andxu opened this issue Nov 12, 2018 · 5 comments
Closed

JDT changes the project after calling codeSelect of CompilationUnit #842

andxu opened this issue Nov 12, 2018 · 5 comments
Labels

Comments

@andxu
Copy link
Contributor

andxu commented Nov 12, 2018

JDTUtils.findElementAtSelection will call codeSelect which will lost the original project information for JDK classes like java.lang.String, sees it is related to the SelectionEngine in JDT(eclispse has the same issue too), because of this issue, the java dependency viewer will not link the tree node for SDK classes since the default project is not displayed in tree explorer(when opening a folder containing multiple projects)

image

@yaohaizh
Copy link
Contributor

yaohaizh commented Nov 12, 2018

The same bug/issue is also reproed on eclipse UI.

@fbricon fbricon added the bug label Nov 14, 2018
@fbricon
Copy link
Contributor

fbricon commented Nov 14, 2018

does it need to be fixed upstream (needs a bug report) or can it be done independently in jdt.ls?

@andxu
Copy link
Contributor Author

andxu commented Nov 27, 2018

@andxu
Copy link
Contributor Author

andxu commented Nov 29, 2018

Since from jdt side the project is set to the first one purposely, so we need to change the project from default project since default project is not aware by users.

parent IPackageFragment and IPackageFragmentRoot are reliable, just the parent IJavaProject is not

@fbricon
Copy link
Contributor

fbricon commented Dec 14, 2018

Closed with #879

@fbricon fbricon closed this as completed Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants