Home Download Buy Blog Forum Support

ST3 Bug? CSS selector auto completion popup does not work

ST3 Bug? CSS selector auto completion popup does not work

Postby atlas on Mon Dec 30, 2013 5:50 pm

What happened to CSS selector auto completion in Sublime Text 3? It won't popup automatically as in ST2, only when I hit ctrl + space.

Do I need to change the settings?

Default:
Code: Select all
// Controls what scopes auto complete will be triggered in
"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin",

// Additional situations to trigger auto complete
"auto_complete_triggers": [ {"selector": "text.html", "characters": "<"} ]   
Last edited by atlas on Fri Jan 10, 2014 3:47 am, edited 3 times in total.
atlas
 
Posts: 2
Joined: Mon Dec 30, 2013 4:47 pm

Re: CSS selector auto completion broken in ST3?

Postby atlas on Fri Jan 10, 2014 3:36 am

I have tried everything, even a clean install. The popup will not show up in CSS files but works just fine in HTML and JS. It must be some kind of a bug.
atlas
 
Posts: 2
Joined: Mon Dec 30, 2013 4:47 pm

Re: ST3 Bug? CSS selector auto completion popup does not work

Postby onetrev on Fri Feb 14, 2014 9:46 am

I can confirm this bug as well. Sublime Text 3 Build 3059 - Windows 7 and Windows 8.1. Exact same issue for me -- the popup for autocomplete is broken in CSS files and can only be activated with keyboard control (Ctrl + Space)
onetrev
 
Posts: 4
Joined: Fri Feb 14, 2014 9:42 am

Re: ST3 Bug? CSS selector auto completion popup does not work

Postby tito on Fri Feb 14, 2014 1:51 pm

Inside the package "CSS.sublime-package" there is a file named "Completion Rules.tmPreferences", which is canceling completions for "source.css" and "meta.selector". Just delete the file.

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>scope</key>
    <string>source.css meta.selector</string>
    <key>settings</key>
    <dict>
        <key>cancelCompletion</key>
        <string>.*</string>
    </dict>
</dict>
</plist>
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 851
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: ST3 Bug? CSS selector auto completion popup does not work

Postby subhaze on Fri Feb 14, 2014 2:59 pm

Yeah... I've ran into this issue too, makes me kinda sad.
subhaze
 
Posts: 214
Joined: Tue Apr 09, 2013 3:22 am

Re: ST3 Bug? CSS selector auto completion popup does not work

Postby onetrev on Tue Feb 18, 2014 5:37 pm

@tito, where is this file you mention located? I haven't been able to track this down, please let me know if you can.

Overall hopefully this issue has been reported as a bug in ST3 as it's a pretty key feature that is missing / broken.

Thanks!
onetrev
 
Posts: 4
Joined: Fri Feb 14, 2014 9:42 am

Re: ST3 Bug? CSS selector auto completion popup does not work

Postby tito on Thu Feb 20, 2014 4:10 pm

The file is inside the CSS package. Mainmenubar -> Packages -> Browse Packages. If there is no folder named CSS, then navigate one folder up, and enter to "Installed Packages", there is a file named CSS.sublime-package which is a ZIP.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 851
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: ST3 Bug? CSS selector auto completion popup does not work

Postby onetrev on Sat Feb 22, 2014 5:59 am

Hmm, neither locations/files exist for me. But why would their be a CSS package installed, isn't that just for packages you've added on, not core features/functionality? I'm on Win 7 setup by the way if that helps.

Major bummer as this a killer bug I'd like to fix, any ideas? Anyone else with an idea for the interim?
onetrev
 
Posts: 4
Joined: Fri Feb 14, 2014 9:42 am

Re: ST3 Bug? CSS selector auto completion popup does not work

Postby FichteFoll on Mon Feb 24, 2014 2:09 am

https://www.sublimetext.com/docs/3/packages.html

Install https://sublime.wbond.net/packages/Pack ... urceViewer, use it to open "CSS/Completion Rules.tmPreferences", delete the file contents and save. If that only generates errors, undo the deletion and change `<string>source.css meta.selector</string>` to `<string></string>` so it won't match anymore.
FichteFoll
 
Posts: 377
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany

Re: ST3 Bug? CSS selector auto completion popup does not work

Postby jmaker on Mon Feb 24, 2014 2:23 am

I also do not have a CSS.sublime-package inside of my "Installed Packages" folder. I'm on Mac w/ Sublime 3059.

Anyway I found this thread because I had a problem similar to this. I googled 'meta.selector.css' and wound up here.

I installed subhaze's CSS Extended Completions package, and the css pseudo selectors would just not work.

Well anyway, if anyone else has that package installed and had the same problem I did just do this.

Edit your css_style_completions.sublime-settings User file.

Add this
Code: Select all
{
  "css_completion_scope": ""
}


The default value is this
Code: Select all
"css_completion_scope": "meta.selector.css"


I don't know if that issue is related to this bug (probably it is?), but it did help me solve that problem so thank you.
jmaker
 
Posts: 5
Joined: Fri Jan 11, 2013 12:08 am

Next

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 9 guests