question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.edit.organizeImports does not work

See original GitHub issue

When I see the list of available commands with Denite coc-command, java.edit.optimizeImports is available. If I remove some of the imports that are used in code, executing java.edit.optimizeImports does nothing.Expected result would be to see the missing imports added.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chemzqmcommented, Dec 28, 2018

It’s problem of jdt.ls, it doesn’t work on their VSCode extension either.

0reactions
chemzqmcommented, Apr 12, 2019

@JulioJu It’s codeAction, not command.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why "Source > Organize Imports" does not work in Eclipse?
"Source > Organize Imports" does not change anything (it does not add any import statements to the beginning of the code).
Read more >
Organize imports does not work in accordance to preferences
If I change the order to (switch org and javax) it imports the classes in the right order java org javax com import...
Read more >
87930 – Organize Imports does not work in 6.0
Passing to Java editor. The missing functionality in fix imports that ImportCruncher had is to sort imports alphabetically and optionally put ...
Read more >
Auto import | IntelliJ IDEA Documentation - JetBrains
In the Settings/Preferences dialog ( Ctrl+Alt+S ), select Editor | Code Style | Java | Imports. Make sure that the Use single class...
Read more >
Language Support for Java(TM) by Red Hat
Install the Extension; If you do not have a Java Development Kit correctly set ... the Java Language Server log file, useful for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found