-
Notifications
You must be signed in to change notification settings - Fork 446
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
Organize imports fails to work #508
Comments
Is it for a simple java file or a complete Java project? |
@fbricon
works for both. |
I can confirm this. Invoking "Organize imports" does not work on a single java file. Setting the option @paperant says does partially works importing some namespaces but not all. In my case it only imported 3 packages:
And I'm having references to other packages like
|
I too can confirm this. Organise imports doesn't work on independent java files. |
Hey all... any update on this? |
Well, yeah kinda ;-) If you open a single java file from vscode, it still won't work. But, last night, we merged Microsoft's new patch to improve standalone java files support. So, with the latest CI build, if you open the folder containing that java file (including all the folders from its packages), then you'll get full java support: organize imports, compilation errors, the whole shebang. No more "incomplete classpath" warning. This will be part of the next release, around Dec 15th. |
[provide a description of the issue]
Environment
Steps To Reproduce
Shift
+Alt
+O
fails to organize imports but if I write in the configuration like:it works when I use
Command
+S
, but still not work for theShift
+Alt
+O
combination.[attach a sample project reproducing the error]
attach logs
Current Result
Expected Result
Additional Informations
The text was updated successfully, but these errors were encountered: