Django in Javascript
Hi, I have recently change my workstation to Ubuntu with PyCharm 2.6.1 and was wondering whether anybody else is having the following issue;
With 2.5 there was a check box to allow django template tags in JavaScript files, Settings->Templates Languages (I think), that option is not there in 2.6. So I added JavaScript as a template language. The .js file now validates fine but is locked, I can not edit it. Removing JavaScript from the template languages removes the lock.
The only thing I can see in the log is:
2012-09-11 09:57:38,166 [ 331381] ERROR - .intellij.util.EventDispatcher - PyCharm 2.6.1 Build #PY-121.188
2012-09-11 09:57:38,166 [ 331381] ERROR - .intellij.util.EventDispatcher - JDK: 1.7.0_07
2012-09-11 09:57:38,166 [ 331381] ERROR - .intellij.util.EventDispatcher - VM: Java HotSpot(TM) Client VM
2012-09-11 09:57:38,166 [ 331381] ERROR - .intellij.util.EventDispatcher - Vendor: Oracle Corporation
2012-09-11 09:57:38,166 [ 331381] ERROR - .intellij.util.EventDispatcher - OS: Linux
2012-09-11 09:57:38,166 [ 331381] ERROR - .intellij.util.EventDispatcher - Last Action: ShowSettings
2012-09-11 09:57:38,168 [ 331383] ERROR - .intellij.util.EventDispatcher - Language: JavaScript != Language: JS in HTML
java.lang.AssertionError: Language: JavaScript != Language: JS in HTML
With 2.5 there was a check box to allow django template tags in JavaScript files, Settings->Templates Languages (I think), that option is not there in 2.6. So I added JavaScript as a template language. The .js file now validates fine but is locked, I can not edit it. Removing JavaScript from the template languages removes the lock.
The only thing I can see in the log is:
2012-09-11 09:57:38,166 [ 331381] ERROR - .intellij.util.EventDispatcher - PyCharm 2.6.1 Build #PY-121.188
2012-09-11 09:57:38,166 [ 331381] ERROR - .intellij.util.EventDispatcher - JDK: 1.7.0_07
2012-09-11 09:57:38,166 [ 331381] ERROR - .intellij.util.EventDispatcher - VM: Java HotSpot(TM) Client VM
2012-09-11 09:57:38,166 [ 331381] ERROR - .intellij.util.EventDispatcher - Vendor: Oracle Corporation
2012-09-11 09:57:38,166 [ 331381] ERROR - .intellij.util.EventDispatcher - OS: Linux
2012-09-11 09:57:38,166 [ 331381] ERROR - .intellij.util.EventDispatcher - Last Action: ShowSettings
2012-09-11 09:57:38,168 [ 331383] ERROR - .intellij.util.EventDispatcher - Language: JavaScript != Language: JS in HTML
java.lang.AssertionError: Language: JavaScript != Language: JS in HTML
2 comments
Sort by
Date
Votes
Could you please file an issue at http://youtrack.jetbrains.com/ and attach the complete log file?
We've reproduced the problem locally; the fix will be included in PyCharm 2.6.2. Sorry for the problems.
Please sign in to leave a comment.