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

not showing autocomplete popup #271

Closed
tolorr opened this issue Jul 12, 2013 · 45 comments
Closed

not showing autocomplete popup #271

tolorr opened this issue Jul 12, 2013 · 45 comments

Comments

@tolorr
Copy link

tolorr commented Jul 12, 2013

Hello!

Today my sublimecodeintel has been updated. Now, not show the autocomplete popup!

I've been several hours trying to fix it, but i can't.

@Kronuz
Copy link
Member

Kronuz commented Jul 12, 2013

Please provide more information. Is there any error in the console or in ~/.codeintel/codeintel.log? What platform are you on? Have you verified you got v2.0?

@tolorr
Copy link
Author

tolorr commented Jul 12, 2013

In the console and in ~/.codeintel/codeintel.log there aren't any error. My platform is ubuntu 12.04 and my Sublime version is 2.0.2 (build 2221)

@gabbon
Copy link

gabbon commented Jul 12, 2013

I can verify that autocomplete for snippets stops working once I install SublimeCodeIntel. Nothing exceptional in the console. Pressing f in a JavaScript file should trigger the built-in anonymous function snippet, but nothing.

Worst part is that it won't change back once I remove SublimeCodeIntel. I have to remove all settings in ~Library/Application Support/Sublime Text 2/ since I don't know exactly what changes when I install SublimeCodeIntel.

Is there anyway I can help debug this? Any branch with more logging?

I'm on MacOs X 10.8.4 and Sublime Text 2.0.2 (build 2221)

@bharley
Copy link

bharley commented Jul 12, 2013

I'm experiencing the same issues here on OS X 10.8.4 with Sublime Text 2.0.2 (build 2221).

There doesn't appear to be any suspect messages in the console either.

@albrow
Copy link

albrow commented Jul 12, 2013

I can confirm I'm experiencing this issue on OS X 10.8.4 and Sublime Text 2.0.2 build 2221. Pressing "ctrl" + "." still pulls up the completion popup, however.

Could it possibly have something to do with this commit 51f5017? I tried changing the setting in Package Settings -> SublimeCodeIntel -> Settings – User, and in Package Settings -> SublimeCodeIntel -> Settings – Default, but autocomplete is still not working.

@albrow
Copy link

albrow commented Jul 12, 2013

Just to clarify. Here's the steps to reproduce on Mac OS X 10.8.4:

  1. Revert Sublime Text 2 to a freshly installed state
  2. Install SublimeCodeIntel
  3. Quit and reopen Sublime Text
  4. Autocomplete no longer works

The issue is indeed with commit 51f5017. I reverted to the commit right before that one and it worked fine. Putting together a pull request now that reverts 51f5017 until a more permanent solution is found...

@dchoruzy
Copy link

same issues on Ubuntu13.04 ST2 build 2221

@Kronuz
Copy link
Member

Kronuz commented Jul 12, 2013

There seems to be two issues here. @stephenalexbrowne you comment about the Sublime Text 2 default built-in autocomplete. SublimeCodeIntel v2.0 by default disables built-in autocomplete (originally it was always disabling it everywhere). A new commit (93a5dc3) in the repository disables the default ST2's built-in autocomplete only for enabled languages, and only if sublime_auto_complete is false in the settings file (which is the case by default).

Regarding the other comments in this thread started by @tolorr, @gabbon, @Panoptisis, @dchoruzy can you verify there were actually two issues here? Where you talking about the built-in autocomplete not being shown?. If not, can you please let me know exactly the language you are using and the procedure that causes the problem.

@bharley
Copy link

bharley commented Jul 13, 2013

I had the problem was on my machine at work, and I can't seem to reproduce the issue on my personal Macbook. I can check again on Monday though if no one else reports in.

@covard
Copy link

covard commented Jul 14, 2013

Having same issue on Mac
OSX 10.8.4
SublimeText2 v2.0.2 build 2221

Having issue with the popup though. Seems like if I start typing and hit tab then it will autocomplete but no autocomplete popup. Tried with methods, just plain text, ruby code anything same thing. But like @Panoptisis said, I am having this issue on my personal machine but not on my work machine. Same setup just different install.

log file
more ~/.codeintel/codeintel.log
Starting logging SublimeCodeIntel v2.0 rev GIT-unknown (1373685620) on Sat Jul 13 18:35:25 2013

  • Info: processing `Ruby': please wait...
    New env with catalogs for 'Ruby': Rails
    Updating indexes for 'Ruby'... The first time this can take a while.
    scan_purelang: path: u'/Users/DarkLord/src/ruby_projects/simple_import/models/user.rb' lang: Ruby
    Doing CodeIntel for 'Ruby' (hold on)...
    Done 'Ruby' CodeIntel! Full CodeIntel took 24ms
    Doing CodeIntel for 'Ruby' (hold on)...
    Done 'Ruby' CodeIntel! Full CodeIntel took 3ms
    Doing CodeIntel for 'Ruby' (hold on)...
    Done 'Ruby' CodeIntel! Full CodeIntel took 3ms
    Doing CodeIntel for 'Ruby' (hold on)...
    done eval: success
    Done 'Ruby' CodeIntel! Full CodeIntel took 74ms
    Autocomplete called (Ruby) [cplns]
    Updating indexes for 'Ruby'... The first time this can take a while.
    scan_purelang: path: u'/Users/DarkLord/src/ruby_projects/simple_import/models/user.rb' lang: Ruby
    Doing CodeIntel for 'Ruby' (hold on)...
    Done 'Ruby' CodeIntel! Full CodeIntel took 12ms

@mattcl
Copy link

mattcl commented Jul 14, 2013

I am experiencing the same issue as @covard.
Ubuntu 12.04
SublimeText2 v2.0.2 build 2221

It's a new laptop, so fresh install of everything (ST2, codeintel, etc.). My desktop does not exhibit this problem, but I haven't updated codeintel on it in a while.

@onetrev
Copy link

onetrev commented Jul 14, 2013

I had the same problem...Windows 7, 64bit, SublimeText2 v2.0.2 build 2221, CodeIntel 2.0. And it is now RESOLVED.

What I did was:

  1. Remove CodeIntel
  2. Close ST2
  3. Delete CodeIntel cache (as per: https://github.com/SublimeCodeIntel/SublimeCodeIntel#troubleshooting)
  4. Open ST2, install CodeIntel again...all is good!

Hope that helps someone, because I know I can't live without this feature!

@covard
Copy link

covard commented Jul 14, 2013

@onetrev genius you are :D this fixed my issue and I now have my
autocomplete pop up back. Thanks

onetrev mailto:notifications@github.com
July 14, 2013 11:01 AM

I had the same problem...Windows 7, 64bit, SublimeText2 v2.0.2 build
2221. And it is now RESOLVED.

What I did was:

  1. Remove CodeIntel
  2. Close ST2
  3. Delete CodeIntel cache (as per:
    https://github.com/SublimeCodeIntel/SublimeCodeIntel#troubleshooting)
  4. Open ST2, install CodeIntel again...all is good!

Hope that helps someone, because I know I can't live without this
feature!


Reply to this email directly or view it on GitHub
#271 (comment).

@onetrev
Copy link

onetrev commented Jul 14, 2013

Actually sorry, CodeIntel wasn't re-installed for some reason, blarg! Once it is installed again autocomplete popup is broken. Only way to bring it up when CodeIntel is installed is with CTRL+SPACE.

I should add I am having this issue for CSS files. I haven't test it in other languages.

@tolorr
Copy link
Author

tolorr commented Jul 15, 2013

@Kronuz , the language with which I'm programming is python. The autocomplete popup not appears in any script. Never appears. Anything I can do?

Sublime Text 2.0.2 (Build 2221) in Ubuntu 12.04

Thank's!

@tolorr
Copy link
Author

tolorr commented Jul 15, 2013

I have replaced all documents of ~/.config/sublime-text-2/Packages/SublimeCodeIntel by the documents of the commit "7f3d4f90ee" and autocomplete popup appears again!!! :-D

The error is in a newer commit.

@gabbon
Copy link

gabbon commented Jul 15, 2013

@Kronuz, I'm using JavaScript for most parts. It's not that the built in snippets don't work. It's just that the autocomplete/drop down isn't showing. If I type in f and press tab I get the snippet but the autocomplete/drop down won't show prior to it.
As it is now with a disabled autocomplete/dropdown but still working snippets is mostly just confusing and bad UX.

@sereby
Copy link

sereby commented Jul 15, 2013

I can confirm on v.2.0.2 (Build 221) / Windows 7 64-bit that tolorr's method works for me. Thanks, tolorr!

@tolorr
Copy link
Author

tolorr commented Jul 15, 2013

You're welcome @sereby !!
:-D

@tolorr tolorr closed this as completed Jul 15, 2013
@tolorr tolorr reopened this Jul 15, 2013
@Kronuz
Copy link
Member

Kronuz commented Jul 15, 2013

Can you please pinpoint exactly the commit that "breaks" the functionality? I can't reproduce the problem here.

@kunimi
Copy link

kunimi commented Jul 15, 2013

This issue also appeared on my laptop (Win 7 64-bit). My working language is Python (not sure for other languages). I tried to re-install SublimeCodeIntel but it didn't work.

@vemec
Copy link

vemec commented Jul 16, 2013

Same issues here on OS X 10.8.4 with Sublime Text 2.0.2 (build 2221). I'm having this issue for CSS/JS files

@lackneets
Copy link

The same problem stuck with Info: Doing CodeIntel for 'PHP' (Hold on)...

@moltar
Copy link

moltar commented Jul 17, 2013

Same here. The drop down is not showing up, however hitting tab activates it.

@ghost
Copy link

ghost commented Jul 18, 2013

Same problem here, tried to replace the files with the commit "7f3d4f90ee" like @tolorr described it, but without success.

@tolorr
Copy link
Author

tolorr commented Jul 18, 2013

@christoferhuber: Has you removed the file SublimeCodeIntel.pyc? This is necessary

@ghost
Copy link

ghost commented Jul 18, 2013

Thank you for the advice, seems that i have overlooked this file. Now CodeIntel works again :) thx!

@37mm
Copy link

37mm commented Jul 18, 2013

OSX 10.7
ST2 2.0.2 Build 2221

I'm also having this problem. Removing the CodeIntel plugin and cache fixed CSS auto complete but not JS auto complete.

Reverting to 7f3d4f9 had the same effect, I can't seem to make JS snippets popup the auto complete menu at all!

Edit: Ok ignore that, reverting to that commit does work I just needed to close and reopen my JS file as well as ST2.

@37mm
Copy link

37mm commented Jul 18, 2013

Ok, after further testing, git master (93a5dc3) works perfectly but package control version doesn't!

@37mm
Copy link

37mm commented Jul 18, 2013

After yet more testing on master, the problem seems to reoccur (in JS), when you close Sublime.

A new file works fine with auto popup of completions but after I save the file and close Sublime, then reopen Sublime, auto popup doesn't work.

Steps to reproduce:

  • checkout master branch of plugin
  • clear plugin cache
  • open ST2
  • make a new JS file
  • notice that auto popup of completions menu works
  • save JS file
  • close ST2
  • open ST2
  • notice that the auto popup of the menu no longer happens in the saved file
  • also notice that auto popup will work in another new JS file!

@Kronuz
Copy link
Member

Kronuz commented Jul 18, 2013

I believe the problem you are describing is caused by the sublime_auto_complete setting. Please open your SublimeCodeIntel User Settings (in the menu, Preferences -> Packages -> SublimeCodeIntel -> User Settings) then add: "sublime_auto_complete": true and see if that fixes the problem.

@37mm
Copy link

37mm commented Jul 18, 2013

Nope that didn't help, it still auto completes on tab, just doesn't display the menu with suggestions.

@spil-sean
Copy link

I have the same problem on 2.0.2, Build 2221 on Mac OS X 10.8.4 using python. I've tried SublimeCodeIntel 93a5dc3 and head
Removing the package and removing ~/.codeintel allows auto_complete to work

@Zyber17
Copy link

Zyber17 commented Jul 18, 2013

I had the same problems on 2.0.2 Build 2221 on Mac OS X 10.8.4 with the version of SublimeCodeIntel in Package Control. Here's how I solved it:

  • Quit ST2
  • Replace the package with 93a5dc3
  • Delete ~/.codeintel
  • Reopen ST2
  • Close all open files in ST2
  • Reopen whatever file you want to work in
  • et voilà, everything should be working again

@davelaflam
Copy link

I wanted to mention that I'm on OSX 10.8.4, Sublime Text2 v 2.0.2 Build 2221 and adding the line "sublime_auto_complete": true to my SublimeCodeIntel User Settings fixed it.

@numkem
Copy link

numkem commented Jul 18, 2013

I can confirm that the seeting "sublime_auto_complete" is necessary or else the plugin seems to break all auto-complete in Sublime Text.

@kunimi
Copy link

kunimi commented Jul 19, 2013

Setting "sublime_auto_complete" to "true" actually fixed my problem. Thanks guys.

@xsbear
Copy link

xsbear commented Jul 19, 2013

"sublime_auto_complete" set true is not work for me on OSX 10.8.4

@bharley
Copy link

bharley commented Jul 19, 2013

I can also confirm that setting "sublime_auto_complete": true fixed my problem as well. @xsbear: try to close and re-open any files you had open before setting that (even if you quit Sublime you still need to do this).

@numkem
Copy link

numkem commented Jul 19, 2013

I agree with @Panoptisis, it is really important to close all open files. I was thinking the Package was working but I was still missing the usual completion from Sublime Text.

Now everything is working as it should.

@Kronuz
Copy link
Member

Kronuz commented Jul 19, 2013

v2.0.1 should fix this. Please re-open the issue if the problem persists.

@Kronuz Kronuz closed this as completed Jul 19, 2013
@Jasur
Copy link

Jasur commented Nov 15, 2013

SublimeCodeIntel version 2.0.6 on Ubuntu 12.04, using language PHP

logs:

+ Info: Updating indexes... The first time this can take a while. Do not despair!

and nothing happens

and db folder is empty, even after indexing

$ ls -l .codeintel/db/
итого 0

How can I solve this problem?

@drakakisgeo
Copy link

Well same as @Jasur

@ElijahAIsaac
Copy link

ElijahAIsaac commented Sep 8, 2017

@Kronuz, does this also apply to ST3 running under Windows 8.2?

"I believe the problem you are describing is caused by the sublime_auto_complete setting. Please open your SublimeCodeIntel User Settings (in the menu, Preferences -> Packages -> SublimeCodeIntel -> User Settings) then add: "sublime_auto_complete": true and see if that fixes the problem."

@keremkulak
Copy link

80$ for shit, kidding right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests