-
Notifications
You must be signed in to change notification settings - Fork 529
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
Javascript completing after semi-colon #461
Comments
try to add this to your user setting
it works for me.@peterorum |
Thanks, @kzinglzy . That stopped the auto-completion on semi-colon. I also had to change my manual completion key as ctrl+shift+space wasn't coming up with anything. (Don't know what else it's assigned to). It also only happened on 2 or my 3 projects, so perhaps there's something not parsing appropriately. I deleted the index, but it still happened after re-indexing. Anyway, I'll see how it goes now. |
I can't reproduce this. Can you provide an example of code with this problem, please. |
This is from the project https://github.com/peterorum/random Thanks, |
Can you try with the newest release, please? I think this is fixed. Reopen if the problem is still there. |
Hmm, this seems to be native or fast trigger autocompletion a (SublimeCodeIntel autocomplete show the type; i.e. [function], [variable], [method]). I wonder why this is happening. In v2.1.6, fast trigger are not shown after stop characters and I believe semicolon is a stop character for JavaScript. Weird. Even worst, I can't make it fail here... even with that repo you mentioned. |
same issue with CSS |
I am experiencing the same issue (with Javascript files). I have updated SublimeCodeIntel to the latest version |
Same here -.- |
I got the same problem with yduman. |
Here's a workaround :
Here is the file (OSX) Mac: Library>Application Support>Sublime Text 3>Packages>User>
|
thanks, @catgsmith - that solved the issue for me! |
Thanks, @catgsmith, nice idea |
Thanks to @catgsmith ,I find a similar way to solve this problem in Windows: [
{
"args":
{
"characters": ";"
},
"command": "insert"
}
] Finnally, restart your sublime and the problem will be solved~ |
@Molunerfinn That works great, is there a way to modify it for any characters eg, for ":" and " " (space) |
I am using version 2.2.0 and still have the same problem as others. Any reason this issue is not re-opened? The workaround is great, BTW! |
It worked for me as well on Windows, ### BUT adding the command in Preferences -> Package Settings -> SublimeCodeIntel -> Key Bindings - Default instead of -User. |
@Molunerfinn @catgsmith , I've done exactly what you guys told me, but it turns out that |
I am sure, that this problem involves "tern for sublime", cause it appeared after installing it, but disabling tern is not solution I am looking for. So "why" and "how" are still eligible questions, I think. |
@QinDynastyDragon have you seen if console gives any error when you try typing semicolon? I got the same error as you got. It was preventing me from entering semicolon. Turns out the file location path was not correct. Console clear says it's unable to read the macro. @wanradt I have tern_for_sublime as well running and the issue got resolved for me with the macro solution proposed above. |
Add this to your settings: "auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc - punctuation.terminator - punctuation.separator" |
Hi,
Now at the end of a line (;), the auto-completer always pops up, and if I press enter as usual, I get
length
added. How can I stop auto-completion after a semi-colon?Thanks,
Peter
The text was updated successfully, but these errors were encountered: