Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lhgrubbs
Channel Surfer

Re: Eclipse plugin for Brightscript Beta

I'm getting dumps: /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse ; exit;java.lang.ClassCastException: net.percederberg.grammatica.parser.Token cannot be cast to net.percederberg.grammatica.parser.Production
at com.roku.brightscript.ide.eclipse.core.parsers.grammatica.BrightScriptASTTranslator.processSubOrFunctionNode(Unknown Source)
at com.roku.brightscript.ide.eclipse.core.parsers.grammatica.BrightScriptASTTranslator.exitFunctiondecl(Unknown Source)
at com.roku.brightscript.parser.BrightScriptAnalyzer.exit(BrightScriptAnalyzer.java:1046)
at net.percederberg.grammatica.parser.Parser.exitNode(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parseAlternative(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parsePattern(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parseElement(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parseAlternative(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parsePattern(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parseElement(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parseAlternative(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parsePattern(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parseElement(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parseAlternative(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parsePattern(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parseElement(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parseAlternative(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parsePattern(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parseElement(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parseAlternative(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parsePattern(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parseElement(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parseAlternative(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parsePattern(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parseElement(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parseAlternative(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parsePattern(Unknown Source)
at net.percederberg.grammatica.parser.RecursiveDescentParser.parseStart(Unknown Source)
at net.percederberg.grammatica.parser.Parser.parse(Unknown Source)
at com.roku.brightscript.ide.eclipse.core.parsers.BrightScriptSourceParser.parse(Unknown Source)
at com.roku.brightscript.ide.eclipse.core.parsers.BrightScriptSourceElementParser.parseSourceModule(Unknown Source)
at org.eclipse.dltk.internal.core.AbstractSourceModule.buildStructure(AbstractSourceModule.java:526)
at org.eclipse.dltk.internal.core.Openable.generateInfos(Openable.java:193)
at org.eclipse.dltk.internal.core.ModelElement.openWhenClosed(ModelElement.java:184)
at org.eclipse.dltk.internal.core.BecomeWorkingCopyOperation.executeOperation(BecomeWorkingCopyOperation.java:45)
at org.eclipse.dltk.internal.core.ModelOperation.run(ModelOperation.java:698)
at org.eclipse.dltk.internal.core.ModelOperation.runOperation(ModelOperation.java:764)
at org.eclipse.dltk.internal.core.SourceModule.becomeWorkingCopy(SourceModule.java:68)
at org.eclipse.dltk.core.WorkingCopyOwner.newWorkingCopy(WorkingCopyOwner.java:147)
at org.eclipse.dltk.internal.ui.editor.SourceModuleDocumentProvider.createFakeSourceModule(SourceModuleDocumentProvider.java:1698)
at org.eclipse.dltk.internal.ui.editor.SourceModuleDocumentProvider.createFakeSourceModule(SourceModuleDocumentProvider.java:1616)
at org.eclipse.dltk.internal.ui.editor.SourceModuleDocumentProvider.createFileInfo(SourceModuleDocumentProvider.java:1247)
at org.eclipse.ui.editors.text.TextFileDocumentProvider.connect(TextFileDocumentProvider.java:478)
at org.eclipse.dltk.internal.ui.editor.SourceModuleDocumentProvider.connect(SourceModuleDocumentProvider.java:1515)
at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4213)
at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:237)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1451)
at org.eclipse.dltk.internal.ui.editor.ScriptEditor.internalDoSetInput(ScriptEditor.java:827)
at org.eclipse.dltk.internal.ui.editor.ScriptEditor.doSetInput(ScriptEditor.java:1323)
at com.roku.brightscript.ide.eclipse.core.editors.BrightScriptEditor.doSetInput(Unknown Source)
at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3200)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2642)
at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3218)
at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3245)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:828)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:271)
at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1459)
at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:972)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3938)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3615)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1595)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3938)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3615)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

on 3.7. Don't have 3.6 available. Can't edit multiple brightscript files in eclipse.

Who's doing the bugfixes?
0 Kudos
malloys
Visitor

Re: Eclipse plugin for Brightscript Beta

"lhgrubbs" wrote:
I'm getting dumps: /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse ; exit;java.lang.ClassCastException: net.percederberg.grammatica.parser.Token cannot be cast to net.percederberg.grammatica.parser.Production
at...


Yes, that's consistent with the previously mentioned DLTK 3/Eclipse 3.7 issue.
See previous posting on this thread for the workaround.
Eclipse 3.6 is available from the eclipse downloads site here: http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/heliossr2

The new version of the plugin (with support for eclipse 3.7 as well as bugfixes for parser and UI issues) is being worked on (and no, no ETA yet).
0 Kudos
lhgrubbs
Channel Surfer

Re: Eclipse plugin for Brightscript Beta

Thank you Malloys, The multiple files issue was a read/write permissions issue. I'm editing files and saving them with out issue.
0 Kudos
RokuKevin
Visitor

Re: Eclipse plugin for Brightscript Beta

The plugin now supports eclipse v3.7 Indigo. Please check the Brightscript Eclipse Plugin Guide for additional update site urls to add when installing the plugin. The roku update site has also been updated.

Thanks for all the great work Scot!

--Kevin
0 Kudos
MidnightJava
Visitor

Re: Eclipse plugin for Brightscript Beta

Thanks Kevin. But I'm not clear on how to get the update. Where is the Brightscript Eclipse Plugin Guide you mentioned? I tried the update site listed at the beginning of this thread, which is where I installed it from originally when it first came out, and eclipse says there's nothing to update. Thanks.

-Mark
0 Kudos
gonzotek
Visitor

Re: Eclipse plugin for Brightscript Beta

"MidnightJava" wrote:
Thanks Kevin. But I'm not clear on how to get the update. Where is the Brightscript Eclipse Plugin Guide you mentioned? I tried the update site listed at the beginning of this thread, which is where I installed it from originally when it first came out, and eclipse says there's nothing to update. Thanks.

-Mark

The timestamps on the files at http://rokudev.roku.com/updates/ are 10/24 and 10/25, so it appears they've updated recently. The first post has the Plugin Guide(which still mentions Eclipse 3.6 in the intro, but has 3.7 instructions further in) :
viewtopic.php?f=34&t=42578#p289528

"RokuKevin" wrote:
Is available within eclipse at the following update site:

http://rokudev.roku.com/updates/

Bare bones eclipse plugin guide available here:
http://rokudev.roku.com/rokudev/eclipsePluginGuide.pdf

Let us know what you think. The plugin now supports eclipse v3.7 Indigo.

--Kevin
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com
0 Kudos
malloys
Visitor

Re: Eclipse plugin for Brightscript Beta

"MidnightJava" wrote:
Thanks Kevin. But I'm not clear on how to get the update. Where is the Brightscript Eclipse Plugin Guide you mentioned? I tried the update site listed at the beginning of this thread, which is where I installed it from originally when it first came out, and eclipse says there's nothing to update. Thanks.

-Mark


FYI - looks like the build process for creating the update site has a minor bug, and so it's still pointing to the previous version of the plugin.
I've let Kevin know of the issue and the fix, and so we should see a corrected update soon.

Cheers
0 Kudos
RokuKevin
Visitor

Re: Eclipse plugin for Brightscript Beta

The corrected update site has been posted.

--Kevin
0 Kudos
bmn
Visitor

Re: Eclipse Plugin for Brightscript

hi all,

im trying to install the plugin but im getting this error:

Cannot complete the install because one or more required items could not be found.
Software being installed: BrightScript Core 1.0.0.201110271644 (com.roku.brightscript.ide.eclipse.core.feature.group 1.0.0.201110271644)
Missing requirement: BrightScript Plugin 1.0.0.201110271644 (com.roku.brightscript.plugin 1.0.0.201110271644) requires 'bundle org.eclipse.dltk.debug.ui [2.0.0,2.1.0]' but it could not be found
Cannot satisfy dependency:
From: BrightScript Core 1.0.0.201110271644 (com.roku.brightscript.ide.eclipse.core.feature.group 1.0.0.201110271644)
To: com.roku.brightscript.plugin [1.0.0.201110271644]

can anybody help me! thanks!!
0 Kudos
malloys
Visitor

Re: Eclipse Plugin for Brightscript

"bmn" wrote:
hi all,

im trying to install the plugin but im getting this error:

Cannot complete the install because one or more required items could not be found.
Software being installed: BrightScript Core 1.0.0.201110271644 (com.roku.brightscript.ide.eclipse.core.feature.group 1.0.0.201110271644)
Missing requirement: BrightScript Plugin 1.0.0.201110271644 (com.roku.brightscript.plugin 1.0.0.201110271644) requires 'bundle org.eclipse.dltk.debug.ui [2.0.0,2.1.0]' but it could not be found
Cannot satisfy dependency:
From: BrightScript Core 1.0.0.201110271644 (com.roku.brightscript.ide.eclipse.core.feature.group 1.0.0.201110271644)
To: com.roku.brightscript.plugin [1.0.0.201110271644]

can anybody help me! thanks!!


My guess is that you are using Eclipse 3.7 and you haven't added the DLTK update site ( http://download.eclipse.org/technology/dltk/updates/ ) to your "Available Software Sites" list as mentioned on page 4 of the plugin guide ( http://rokudev.roku.com/rokudev/eclipsePluginGuide.pdf ).

But if you've done that already...

Q1: What specific Eclipse package are you using? Should be: "Eclipse IDE for Java Developers", either version 3.6 (aka Helios) or 3.7 (aka Indigo).
and
Q2: What specific operating system are you using ( I've sanity tested on Win7, WinXP, OSX Snow Leopard )?

Cheers
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.