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

Organizing imports in module-info.java removes all imports #430

Closed
fbricon opened this issue Feb 2, 2018 · 1 comment
Closed

Organizing imports in module-info.java removes all imports #430

fbricon opened this issue Feb 2, 2018 · 1 comment
Assignees
Labels

Comments

@fbricon
Copy link
Collaborator

fbricon commented Feb 2, 2018

After organizing imports on module-info-java (Shift+Alt+o), this:

import java.sql.Driver;

module mymodule {
	requires java.sql;
	provides Driver with mypackage.MyDriver;
}

becomes

module mymodule {
	requires java.sql;
	provides Driver with mypackage.MyDriver;
}

and the file fails to compile because of the unknown Driver type. It's very annoying when organize imports is triggered on save.

@fbricon
Copy link
Collaborator Author

fbricon commented Feb 15, 2018

Fixed in jdt.ls

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

1 participant