nicosantangelo / sublime-jasmine

Jasmine syntax, snippets and commands
MIT License
24 stars 11 forks source link

Jasmine syntax breaks autocompletions #6

Closed lijuenc closed 9 years ago

lijuenc commented 9 years ago

When Jasmine is used as the active syntax autocompletion always shows "No available completion" but when regular JavaScript is used as the syntax, autocompletions work as expected.

jasmine-snippets

Sublime text version 3083 and sublime-jasmine installed through package control.

This happens regardless of what scope you are currently in. To get around this, I'm just using the snippets while in the JavaScript syntax.

nicosantangelo commented 9 years ago

Which autocomplete are you using?

The problem seems to be the file Syntax (changing from Javascript to Jasmine)

lijuenc commented 9 years ago

I'm not using any special autocomplete, just the default Sublime Text one (Ctrl+Space). And yes, this only happens in the Jasmine syntax.

nicosantangelo commented 9 years ago

Allright! I don't remember if I can tell Sublime which autocomplete to use or if I have to add a custom one for Jasmine, but I'll take a look as soon as I can.

nicosantangelo commented 9 years ago

Hello @durz, sorry for the massive delay.

I can't seem to reproduce the error, I've recorded a small gif to see if I understood correctly: test

Are you still having this error? Do you have by any chance another jasmine package?

Sorry again!

lijuenc commented 9 years ago

Hey mate, those are the correct steps, though I found out that this was caused by the angularjs-sublime-package. I first thought it was because of this jasmine package since it was only happening in the Jasmine syntax, but it now seems like the angular package and this don't work together.

nicosantangelo commented 9 years ago

Thanks a lot for letting me know!

alexilyaev commented 9 years ago

@durz You're right, removing AngularJS package fixes it, but what if you need them both? Have you opened and issue on their Issues page?

Edit: Found the issue ticket: https://github.com/angular-ui/AngularJS-sublime-package/issues/69