castwide / atom-solargraph

An Atom package for Solargraph.
MIT License
39 stars 5 forks source link

Autocomplete+ doesn't work when solargraph is enabled #13

Open aergonaut opened 5 years ago

aergonaut commented 5 years ago

With the atom-solargraph extension enabled, autocomplete+ appears to stop working. No suggestions appear, even for snippets or other terms in the file.

With atom-solargraph disabled, autocomplete+ goes back to normal and starts showing suggestions again.

Pressing ctrl-space or ctrl-alt-o doesn't have any effect.

commandPath is set to /Users/chris/.rbenv/shims/solargraph because I use rbenv.

The extension used to work for me, but I have since switched laptops and reinstalled my tools. I might be missing some customization or other setting.

Ruby version: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin18] Solargraph gem version: 0.31.3 atom-solargraph version: 0.14.0 Atom : 1.35.1 Electron: 2.0.18 Chrome : 61.0.3163.100 Node : 8.9.3

tan-wei commented 5 years ago

So does my Atom.

Ruby version: ruby 2.5.0 [Windows 10-x64] Solargraph gem version: 0.32.1 atom-solargraph version: 0.4.0 Atom : 1.36.0

Is there any logs to help solving this problem? Solargraph works quite well in VSCode.

tan-wei commented 5 years ago

It takes some seconds after Ruby file opened. It works, but takes a long time to start up. Another strange behavior, sometimes I enter Enter, but it doesn't complete the word. For example, if I enter Str, String must be the first selection, after Enter is pressed, String is not written down. Sometimes I enter Ctrl+Space, but redundant words are written down. For example, If I enter Str, then Ctrl+Space, StrString is the result. It seems the first time I open a Ruby file will trigger any of the situation ...

TechNomad615 commented 5 years ago

It takes some seconds after Ruby file opened. It works, but takes a long time to start up. Another strange behavior, sometimes I enter Enter, but it doesn't complete the word. For example, if I enter Str, String must be the first selection, after Enter is pressed, String is not written down. Sometimes I enter Ctrl+Space, but redundant words are written down. For example, If I enter Str, then Ctrl+Space, StrString is the result. It seems the first time I open a Ruby file will trigger any of the situation ...

I am having this same issue on Ubuntu 18 & Windows 10. Is there a workaround for this?