yeungda / coffeescript-idea Goto Github PK
View Code? Open in Web Editor NEWABANDONED CoffeeScript Plugin for IntelliJ IDEA
Home Page: http://yeungda.github.com/coffeescript-idea
License: Apache License 2.0
ABANDONED CoffeeScript Plugin for IntelliJ IDEA
Home Page: http://yeungda.github.com/coffeescript-idea
License: Apache License 2.0
It would be very nice if String and RegExp interpolation would be detected and thus correctly colorized.
aString = "This is a interpolation #{ @generatedText() } within a string"
aRegExp = /\d+#{ @separator }\d+#{ @separator }\d+/g
This doesn't work (but should) - that is, the coloring goes awry
matches = storyText.match /{.?,.?}/g
This is the workaround (to add brackets)
matches = storyText.match(/{.?,.?}/g)
I had to reinstall IntelliJ and this is the report that got from the previous error:
com/intellij/psi/impl/source/tree/PlainTextFileElement: com/intellij/psi/impl/source/tree/PlainTextFileElement
java.lang.NoClassDefFoundError: com/intellij/psi/impl/source/tree/PlainTextFileElement
at coffeescript.lang.ParserDefinition$1.parse(Unknown Source)
at com.intellij.psi.tree.ILazyParseableElementType.doParseContents(ILazyParseableElementType.java:64)
at com.intellij.psi.tree.IFileElementType.parseContents(IFileElementType.java:43)
at com.intellij.psi.impl.source.tree.LazyParseableElement.ensureParsed(LazyParseableElement.java:172)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:212)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:36)
at com.intellij.psi.impl.source.tree.SharedImplUtil.getFirstChild(SharedImplUtil.java:44)
at com.intellij.psi.impl.source.PsiFileImpl.getFirstChild(PsiFileImpl.java:787)
at com.intellij.psi.SingleRootFileViewProvider.findElementAt(SingleRootFileViewProvider.java:444)
at com.intellij.psi.SingleRootFileViewProvider.findElementAt(SingleRootFileViewProvider.java:401)
at com.intellij.codeInsight.daemon.impl.CollectHighlightsUtil.findElementAtInRoot(CollectHighlightsUtil.java:158)
at com.intellij.codeInsight.daemon.impl.CollectHighlightsUtil.findCommonParent(CollectHighlightsUtil.java:139)
at com.intellij.codeInsight.daemon.impl.CollectHighlightsUtil.getElementsInRange(CollectHighlightsUtil.java:53)
at com.intellij.codeInsight.daemon.impl.CollectHighlightsUtil.getElementsInRange(CollectHighlightsUtil.java:45)
at com.intellij.codeInsight.daemon.impl.SlowLineMarkersPass.doCollectInformation(SlowLineMarkersPass.java:64)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:61)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:380)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1154)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:371)
at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:368)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:344)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask.exec(JobLauncherImpl.java:193)
at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:109)
Caused by: java.lang.ClassNotFoundException: com.intellij.psi.impl.source.tree.PlainTextFileElement PluginClassLoader[coffeescript-idea, 0.1-1-gae5a]
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:68)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 29 more
I get this error creating a new file.
I tested with 10CE , and 10.5CE versions
java.lang.NoClassDefFoundError: com/intellij/psi/impl/source/tree/PlainTextFileElement
at coffeescript.lang.ParserDefinition$1.parse(Unknown Source)
at com.intellij.psi.tree.IFileElementType.parseContents(IFileElementType.java:41)
at com.intellij.psi.impl.source.tree.LazyParseableElement.ensureParsed(LazyParseableElement.java:177)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:218)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:32)
at com.intellij.psi.impl.source.tree.SharedImplUtil.getFirstChild(SharedImplUtil.java:47)
at com.intellij.psi.impl.source.PsiFileImpl.getFirstChild(PsiFileImpl.java:704)
at com.intellij.psi.SingleRootFileViewProvider.findElementAt(SingleRootFileViewProvider.java:388)
at com.intellij.psi.SingleRootFileViewProvider.findElementAt(SingleRootFileViewProvider.java:343)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.findInjectedElementNoCommitWithOffset(InjectedLanguageUtil.java:246)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.findInjectedElementNoCommit(InjectedLanguageUtil.java:257)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.findInjectedPsiNoCommit(InjectedLanguageUtil.java:171)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.getEditorForInjectedLanguageNoCommit(InjectedLanguageUtil.java:147)
at com.intellij.codeInsight.navigation.CtrlMouseHandler$5.mouseMoved(CtrlMouseHandler.java:159)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:89)
at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:34)
at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:65)
at $Proxy22.mouseMoved(Unknown Source)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseMotionListener.mouseMoved(EditorImpl.java:5023)
at java.awt.Component.processMouseMotionEvent(Component.java:6419)
at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3285)
at java.awt.Component.processEvent(Component.java:6143)
at java.awt.Container.processEvent(Container.java:2085)
at java.awt.Component.dispatchEventImpl(Component.java:4736)
at java.awt.Container.dispatchEventImpl(Container.java:2143)
at java.awt.Component.dispatchEvent(Component.java:4566)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4621)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4295)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
at java.awt.Container.dispatchEventImpl(Container.java:2129)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4566)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:680)
at java.awt.EventQueue.access$000(EventQueue.java:86)
at java.awt.EventQueue$1.run(EventQueue.java:639)
at java.awt.EventQueue$1.run(EventQueue.java:637)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:653)
at java.awt.EventQueue$2.run(EventQueue.java:651)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:650)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:661)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:510)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:410)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Hi
I checked the build.xml file, and virtually every line contains a library I don't have, can't find or seems specific to some other operating system.
I'm opening the file using IntelliJ CE 9.0.3 on Windows7. So I was just wondering, do I have any hope or do I need a Mac?
For example:
Will you update the plugin to the new versions coffeescript
Hey all;
I am unable to install this plugin via the built in plugin in manager as it gives me a '301' error.
I know where to find the 0.2 build but I do not know how to install it manually. Can anyone help me out?
I am unable to type text into a coffeescript file. Upon opening a .coffee file. I get the exception below.
I just tried the plugin for the first time, so I have no idea how long this has been a problem. I don't think this matters, but I installed the plugin manually because of this issue: #8
java.lang.NoClassDefFoundError: com/intellij/psi/impl/source/tree/PlainTextFileElement
at coffeescript.lang.ParserDefinition$1.parse(Unknown Source)
at com.intellij.psi.tree.IFileElementType.parseContents(IFileElementType.java:41)
at com.intellij.psi.impl.source.tree.LazyParseableElement.b(LazyParseableElement.java:177)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:218)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:32)
at com.intellij.psi.impl.source.tree.SharedImplUtil.getFirstChild(SharedImplUtil.java:47)
at com.intellij.psi.impl.source.PsiFileImpl.getFirstChild(PsiFileImpl.java:704)
at com.intellij.psi.SingleRootFileViewProvider.findElementAt(SingleRootFileViewProvider.java:388)
at com.intellij.psi.SingleRootFileViewProvider.findElementAt(SingleRootFileViewProvider.java:375)
at com.intellij.psi.impl.source.PsiFileImpl.findElementAt(PsiFileImpl.java:516)
at com.intellij.ide.browsers.actions.BaseWebBrowserAction.getElement(BaseWebBrowserAction.java:107)
at com.intellij.ide.browsers.actions.BaseWebBrowserAction.update(BaseWebBrowserAction.java:74)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:98)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:162)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:124)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:84)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:141)
at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl$2.run(ActionToolbarImpl.java:755)
at com.intellij.openapi.wm.impl.FocusManagerImpl.a(FocusManagerImpl.java:509)
at com.intellij.openapi.wm.impl.FocusManagerImpl.e(FocusManagerImpl.java:492)
at com.intellij.openapi.wm.impl.FocusManagerImpl.d(FocusManagerImpl.java:476)
at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:52)
at com.intellij.openapi.wm.impl.FocusManagerImpl$7.run(FocusManagerImpl.java:407)
at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:1432)
at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:390)
at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.a(ActionToolbarImpl.java:801)
at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.access$400(ActionToolbarImpl.java:58)
at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl$MyTimerListener.run(ActionToolbarImpl.java:713)
at com.intellij.openapi.actionSystem.impl.WeakTimerListener.run(WeakTimerListener.java:50)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.a(ActionManagerImpl.java:1250)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.a(ActionManagerImpl.java:1239)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$MyTimer.actionPerformed(ActionManagerImpl.java:1220)
at javax.swing.Timer.fireActionPerformed(Timer.java:291)
at javax.swing.Timer$DoPostEvent.run(Timer.java:221)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:638)
at java.awt.EventQueue$1.run(EventQueue.java:636)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:647)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:662)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:515)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:411)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:369)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.ClassNotFoundException: com.intellij.psi.impl.source.tree.PlainTextFileElement
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:70)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 52 more
I'm using a dark color scheme in RubyMine. I've been able to change colors for most of the CoffeeScript syntax to fit nicely in my color scheme. Unfortunately, the function arrow always comes out dark blue, making it almost invisible, and I can't find anywhere in the preferences to change that color. Is this an issue with the plugin or with RubyMine?
Thanks,
Richard
The on keyword is being picked up as a false positive by objects with a method called on. eg.
socket.on 'connection'
use the plugin open any coffee files
16:38:16 NoClassDefFoundError: com/intellij/psi/impl/source/tree/PlainTextFileElement
After restart, IntelliJ gives an IDE error with the following:
Language Language: CoffeeScript doesn't participate in view provider CoffeeScriptViewProvider{myVirtualFile=file:///home/ruraj/src/stock-manager/app/assets/javascripts/index.coffee, content=VirtualFileContent{size=29}}: [Language: CoffeeScript]: Language Language: CoffeeScript doesn't participate in view provider CoffeeScriptViewProvider{myVirtualFile=file:///home/ruraj/src/stock-manager/app/assets/javascripts/index.coffee, content=VirtualFileContent{size=29}}: [Language: CoffeeScript]
The single quoted heredoc is parsed fine, but there is a second notation with double quoted heredocs that allows interpolation within the heredoc.
$("""
<div id='#{ @getID() }' class='tree'>
<ul class='#{ if @sortable then 'sortable' else '' }'></ul>
</div>
""")
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.