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

Auto complete doesn't appear #12

Open
alexmccabe opened this issue Jan 16, 2013 · 20 comments
Open

Auto complete doesn't appear #12

alexmccabe opened this issue Jan 16, 2013 · 20 comments

Comments

@alexmccabe
Copy link

I am not getting the auto-complete box appear with fuzzy search while typing css properties. Is this supposed to appear?

@nathos
Copy link
Owner

nathos commented Jan 16, 2013

Yes, the auto-complete box should appear, for both full property names and their Zen Coding shortcuts.

Is the syntax active? Any other info to share?

@alexmccabe
Copy link
Author

Yeah syntax highlighting appears, but the suto-complete is patchy and the semi-colon doesn't appear at the end of the values.

The plugin is extremely helpful, and I thank you.

@nathos
Copy link
Owner

nathos commented Jan 16, 2013

The semicolon not appearing is a side-effect of supporting the Sass (indented) syntax.

I currently don't know of a way to support both without creating separate SCSS & Sass bundles. (It may be possible, but I haven't really dug deep into the documentation to see if it's possible)

@alexmccabe
Copy link
Author

Ah I am with you. I never considered that. It isn't a huge deal, I just got used to it being there. Ha. But, still with some properties they aren't auto-completing. I will compile a list of any I have problems with when I get back to work tomorrow.

@jakub-c
Copy link

jakub-c commented Jan 16, 2013

I managed to get full set of CSS properties by copy/pasting the css_completions file from CSS package folder to the Sass package folder, maybe it'll work for you.

@nathos
Copy link
Owner

nathos commented Jan 16, 2013

Good thinking. I'll look into that.

@nathos
Copy link
Owner

nathos commented Jan 16, 2013

Okay, I did some testing I think some of the trickiness comes from the TextMate legacy code that's in there.

So there are a bunch of useful Snippets that give us the Zen Coding shortcuts, but there are also the Sublime Text completions files. I also looked at ST2's default CSS completions, and it appears to be using an older style definition (maybe from Sublime Text 1?). I had mixed results getting those to work.

I also noticed that if you activate one of the Zen Coding triggers (TextMate snippets), after hitting tab, Sublime waits for field input, so autocomplete for the property value is disabled until you hit ESC. I'm not a ST2 bundle expert, so if anyone has some input here, I'd appreciate it. One solution might be to try converting all the TextMate snippet files to native ST2 snippets.

Lastly, I noticed that for some CSS properties (border, for example), Sublime doesn't seem to be pulling from the sublime-completions list like it should. I don't know why that is.

@alexmccabe
Copy link
Author

Hmm I have been looking and I don't appear to be having any of the issues I was having yesterday. Either that or I have already sub-consciously adjusted my workflow. Haha. It could be that Sublime needed to be restarted, as I obviously quit out of it last night. I'll just keep more of an eye on it.

Also I don't use Zen Coding anymore, I use it's update Emmet, so that could be part of the issue.

@nathos
Copy link
Owner

nathos commented Jan 17, 2013

I did push up some tweaks yesterday, so perhaps I fixed something? One can hope :)

@Jakobud
Copy link

Jakobud commented Sep 17, 2013

I still don't get css properties appearing in the autocomplete. How do I get this to work? In a previous comment above you said "Is the syntax active?" What do you mean by that? If I create a new file, set the syntax to Sass, I don't get any standard css in the auto-completion.

In the Sass package folder > Completions I see the Sass - Properties and Sass - Property Values sublime.completions and they appear to be full of standard CSS.....

Not sure what I'm missing here.

@nathos
Copy link
Owner

nathos commented Sep 17, 2013

I believe this might an issue of the Zen Coding shortcuts taking over and preventing the built-in Sublime completions from working. I'm afraid this won't be fully fixed until all of those shortcuts are removed from the package (something I've not had the time to do yet).

However, on my machine, completions appear to work as expected (at least in .sass files):
screen shot 2013-09-17 at 5 47 42 pm

Perhaps there's something else going on.

@Jakobud
Copy link

Jakobud commented Sep 17, 2013

Yeah I don't see the autocomplete looking like that in my files. Also, I'm using .scss files instead of .sass files, but does that make a difference?

Also, where are the Zen Coding shortcuts? Are they in the snippets folder? Or are they in the sublime-completion files?

@nathos
Copy link
Owner

nathos commented Sep 17, 2013

FWIW, I just checked and completions seem to work in .scss files too:
screen shot 2013-09-17 at 6 12 06 pm

(Though strangely enough, border wasn't auto-completing the same list as the .sass file. There may be some Sublime weirdness going on here that's beyond my understanding :)

@Jakobud
Copy link

Jakobud commented Sep 17, 2013

Yeah this thing appears to be totally broken. I just reinstalled ST2 from scratch, installed Package Control, installed your Sass package via Package Control and it still isn't working. Some screenshots:

Nothing when I type width. It says No available completions.
image

Only see zen coding snippets
image

b just gives me a bunch of zen coding snippets
image

I dunno...

@nathos
Copy link
Owner

nathos commented Sep 17, 2013

Can you check to see if "auto_complete": true is in your Preferences file?

@Jakobud
Copy link

Jakobud commented Sep 17, 2013

Yeah everything is default settings for a fresh ST2 installation on the latest OSX

image

@dmsmidt
Copy link

dmsmidt commented Oct 24, 2013

I've got exactly the same problem. No autocomplete for css properties.
"auto_complete": true -> Check!

@Jakobud
Copy link

Jakobud commented Oct 29, 2013

Yeah I've given up on this. It is just plain broken and should be removed from the Package manager.

@nathos
Copy link
Owner

nathos commented Oct 29, 2013

@Jakobud that's not exactly helpful.

If someone would like to take a first crack at removing the zen coding shortcuts, I'd welcome a pull request.

@BenRacicot
Copy link

That's too bad I thought this plugin was going to be a quick and simple fix but without the snippets working its no good.

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

No branches or pull requests

6 participants