Comments (11)
Hmm, Jade should work so long as you have the Jade package installed.
Can you provide some example code that's not working and the version of ST you're using?
from angularjs-sublime-package.
I'm gonna create some sample code but I just want to be sure....this is the Jade package you're referring to, correct?
from angularjs-sublime-package.
Looks like that one differs from what is provided by Package Control and has been marked as deprecated. The one I have installed can be found here https://github.com/davidrios/jade-tmbundle
from angularjs-sublime-package.
I switched to the package you linked and it appears to be working. Closing for now.
from angularjs-sublime-package.
I spoke to soon. It isn't actually working, so I checked the Sublime console. AngularJS-sublime-package
has actually been printing out errors:
TypeError: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 358, in on_query_completions
res = callback.on_query_completions(v, prefix, locations)
File "/Users/zak/Library/Application Support/Sublime Text 3/Packages/AngularJS-sublime-package/AngularJS-sublime-package.py", line 262, in on_query_completions
for selector in ng.settings.get('attribute_avoided_scopes'):
TypeError: 'NoneType' object is not iterable
Writing file /Users/zak/MyProject/public/html/index.jade with encoding UTF-8 (atomic)
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 255, in on_post_save
callback.on_post_save(v)
File "/Users/zak/Library/Application Support/Sublime Text 3/Packages/AngularJS-sublime-package/AngularJS-sublime-package.py", line 286, in on_post_save
exclude_dirs = ng.exclude_dirs(),
File "/Users/zak/Library/Application Support/Sublime Text 3/Packages/AngularJS-sublime-package/AngularJS-sublime-package.py", line 53, in exclude_dirs
exclude_dirs += [glob.glob(folder+"/"+path) for path in ng.settings.get('exclude_dirs')]
TypeError: 'NoneType' object is not iterable
from angularjs-sublime-package.
I couldn't reproduce that error, but I did just push a commit that should default to an empty list if None is found.
Let me know if that helps and thanks for the error log.
Commit: aee607f
from angularjs-sublime-package.
It's working better now, but there are some completions missing. So I tried to open Completions - User
I get
Unable to open /Users/zak/Library/Application Support/Sublime Text 3/Packages/User/AngularJS-completions.sublime-settings
Why is it looking in Packages/User
for settings even though your installation instructions are to git clone
in Packages
? Does that file need to be moved in?
from angularjs-sublime-package.
Maybe I misunderstand....perhaps the User setting needs to be created by the user themselves (only if they want to extend the list).
I still don't understand why I have so few completion options. Looks at my menu:
That menu isn't scrollable either...there's only 5 angular suggestions there. Compare that with the lists in your examples. And if I do type a letter c
or something like ctrl
, there's no suggestions. What could be the issue here?
from angularjs-sublime-package.
You need to type within the (...)
to see attribute completions. The completions you see there are directives that can be used as HTML elements.
And yes, the User/
folder is for overriding the default settings, so nothing should be there unless you wish to extend/override settings.
from angularjs-sublime-package.
Ahh I see. By the way, what's the theme you use in the screenshots in the README?
from angularjs-sublime-package.
I use Tomorrow Night Eighties and Phoenix, below are the settings I use for it.
{
"theme": "Phoenix Dark.sublime-theme",
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night-Eighties.tmTheme",
"phoenix_color_expanded_folder": true,
"phoenix_color_orange": true,
"phoenix_eighties": true,
"phoenix_highlight_current_tab": true,
"phoenix_tabs_small": true
}
from angularjs-sublime-package.
Related Issues (20)
- AngularJS 1.3 support
- [Feature Req] Extend Scope support. HOT 2
- Angular Versioning HOT 1
- 1.2.1 Completion Issue HOT 3
- No License HOT 1
- Not working $http HOT 2
- Automated building completions based on NG comment blocks in source HOT 2
- Disabling automatic code folding HOT 1
- disable angularjs autocomplete in excluded file
- auto completing is up everywhere. HOT 2
- using ng-annotate?
- Jade is not supported by AngularJS-sublime-package HOT 2
- Normal code completion breaks after installing AngularJS package HOT 2
- Can we enable this plugin for jsp file? HOT 1
- Auto Complete Fail w/ JavaScript Next plugin
- Arguments of the function inside the controller and the control parameters should have a delimiter between them. HOT 1
- Autocompletion triggers on all semi-colons in the php scope HOT 2
- Ctrl+Space not working
- JS Completions are not working except Global Context
- When change HTML(AngularJS) syntax, then error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angularjs-sublime-package.