atom / ide-java

Java language support for Atom-IDE
MIT License
227 stars 61 forks source link

IDE-java bug #75

Closed d8s3c closed 6 years ago

d8s3c commented 6 years ago

I found a bug in the auto-completion of the text, sometimes when i type Sys , and it shows system and blabla... then i pressed ENTER and the auto-completion didn't work, so i have to type in again and then enter ,the second time i pressed enter the auto-completion works. So please fix this, i'm too afraid to fix the code myself 😄

Conclusion : I have to type twice to trigger the auto-completion.

Anything else is just working fine. Thanks for making my work easier

rsese commented 6 years ago

What versions of Atom and ide-java are you running and what operating system?

Also, do you have the same problem with auto-complete in general (so not specific to using ide-java)?

d8s3c commented 6 years ago

I use ide-java 0.8.3 and latest version of Atom and I'm using Windows 10 for OS I don't have any problem using other auto-complete. I just got the problem when i'm using ide-java. On Tuesday, May 1, 2018, 7:28:50 AM GMT+8, Robert Sese notifications@github.com wrote:

What versions of Atom and ide-java are you running and what operating system?

Also, do you have the same problem with auto-complete in general (so not specific to using ide-java)?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

naruaika commented 6 years ago

In my opinion, this problem caused by conflict with language-java package's snippet... You have to disable one of them... But if you disable the language-java which is shipped by default by Atom, you'll not be able to to see java language (in list of languages: Ctrl+Shift+L).

rsese commented 6 years ago

Thanks @nrfaikar, do you have a specific example that I can try that shows the conflict?

naruaika commented 6 years ago

I suggest to try JavaFX import snippets....

KJ1010G commented 6 years ago

I am having this problem too. I have even added screen-shots in #84 to help explain better. For me it happens with all libraries.

naruaika commented 6 years ago

Me too... Happens with all libraries... Please fix it...

KJ1010G commented 6 years ago

this bug was reported so long ago and still not fixed ?? is anyone even looking at it ?

rsese commented 6 years ago

It would be super helpful if anyone could provide a small public test project where this reproduces along with repro steps to see the problem.

I suggest to try JavaFX import snippets....

@nrfaikar sorry can you be more specific? Specific repro steps in particular would be helpful.

KJ1010G commented 6 years ago

@rsese

Steps

  1. Fresh install latest version of atom (on Ubuntu 16.04, if that matters)
  2. Create any java project. The auto-completion provided by default should work fine.(For example when you type main and press tab).
  3. Install the latest version of atom-ide-ui.
  4. Install the latest version of ide-java.
  5. Create any java project which imports a library(It can be any Library). (I will add a file, you can use it).
  6. Type all the code from start and use auto-completion as much as possible.
  7. Notice how many times auto-complete does not work on first time. The way I suggested in #84 .

NOTE - Just rename this file to SimpleAnimation.java and then open it on atom. SimpleAnimation.txt

rsese commented 6 years ago

Thanks a lot @KJ1010G :bow: I'm able to reproduce with just this bit of code:

import javax.swing.*;

public class Test {
    public static void main(String[] args) {
        JFrame frame = new JFrame();
        frame.
    }
}

And trying to autocomplete from frame.. Going to go ahead and close this in favor of #84 since the issue body is more detailed and I'll add the repro steps above there as well (slightly edited to add more detail for step-by-step reproduction).