keskiju / autocomplete-java

Java autocompletion for Atom editor
https://atom.io/packages/autocomplete-java
MIT License
40 stars 9 forks source link

Is this a severe bug? #48

Closed ginger1995 closed 7 years ago

ginger1995 commented 7 years ago

http://recordit.co/Ku2BfXpduM Here you could see a screen recording I made.

When I tried to import some new modules or I just press shift+ctrl+alt+o to try to import, all the import lines will go inside the class...That's terrible.. Could you help me solve the issue? Thanks a lot!

keskiju commented 7 years ago

This is a known issue. All java source files usually contain a package declaration but you don't have one in your file. Add a package declaration or at least couple of empty lines at the beginning of java source file and it should work fine. Currently autocomplete-java does not support java files without package declaration.

keskiju commented 7 years ago

35 duplicate

ginger1995 commented 7 years ago

OK I see ,thanks~