facebook

MyEclipse JavaScript Editor

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #351439 Reply

    fenyoapa
    Participant

    I try open a .js file.
    MyEclipse JavaScript Editor crashes :

    java.lang.ClassCastException: org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement cannot be cast to org.eclipse.wst.jsdt.internal.compiler.ast.AbstractVariableDeclaration
    at org.eclipse.wst.jsdt.internal.compiler.parser.Parser.consumeEnterVariable(Parser.java:2017)
    at org.eclipse.wst.jsdt.internal.compiler.parser.Parser.consumeRule(Parser.java:2817)
    at org.eclipse.wst.jsdt.internal.compiler.parser.Parser.parse(Parser.java:5802)
    at org.eclipse.wst.jsdt.internal.compiler.parser.Parser.parse(Parser.java:6036)
    at org.eclipse.wst.jsdt.internal.compiler.parser.Parser.parse(Parser.java:5988)
    at org.eclipse.wst.jsdt.internal.compiler.SourceElementParser.parseCompilationUnit(SourceElementParser.java:1303)
    at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:214)
    at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:242)
    at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:545)
    at org.eclipse.wst.jsdt.internal.core.BecomeWorkingCopyOperation.executeOperation(BecomeWorkingCopyOperation.java:39)
    at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
    at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
    at org.eclipse.wst.jsdt.internal.core.CompilationUnit.becomeWorkingCopy(CompilationUnit.java:115)
    at org.eclipse.wst.jsdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.createFileInfo(CompilationUnitDocumentProvider.java:984)
    at org.eclipse.ui.editors.text.TextFileDocumentProvider.connect(TextFileDocumentProvider.java:478)
    at org.eclipse.wst.jsdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.connect(CompilationUnitDocumentProvider.java:1206)
    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.wst.jsdt.internal.ui.javaeditor.JavaEditor.internalDoSetInput(JavaEditor.java:2173)
    at org.eclipse.wst.jsdt.internal.ui.javaeditor.JavaEditor.doSetInput(JavaEditor.java:2146)
    at org.eclipse.wst.jsdt.internal.ui.javaeditor.CompilationUnitEditor.doSetInput(CompilationUnitEditor.java:1320)
    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:2649)
    at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3218)
    at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3245)
    at org.eclipse.wst.jsdt.internal.ui.javaeditor.CompilationUnitEditor.init(CompilationUnitEditor.java:1031)
    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.EditorReference.getEditor(EditorReference.java:289)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
    at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
    at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
    at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:331)
    at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:179)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
    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)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
    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.genuitec.pulse.eclipse.launcher.Main.main(Main.java:110)

    #351441 Reply

    fenyoapa,

    Sorry that you are seeing this issue with MyEclipse.

    Can you please provide some more information to help us investigate further :

    1. Please share your MyEclipse Installation details from MyEclipse > Installation summary > Installation details ?

    2. Are you seeing this issue with a particular JS file or all the JS files in your workspace ? Can you try creating a new JS file and check if you can replicate the issue ?

    3. Can you please attach the JS file which is exhibiting this issue, to help us try and replicate the problem at our end.

    #351442 Reply

    fenyoapa
    Participant

    Dear Pradeep,
    thank you for the fast reply.
    I tried several other js files and all was opened fine.
    I realized that only one js file crashes the editor.
    It is the ‘viewer.js’ file from pdf.js by Mozzila with some modifications by me.
    I have attached this file.
    And here are my Installation Details.

    Thank you,
    Laszlo

    *** Date:
    2014. szeptember 10. 14:56:11 CEST

    *** System properties:
    OS=WindowsVista
    OS version=6.1.0
    OS arch=amd64
    Profile arch=x86_64
    Window system=win32
    Java version=1.6.0_13
    Workspace=file:/C:/Users/Laci/Workspaces/MyEclipse 10/
    VM Args=-Xmx3g
    -XX:MaxPermSize=256m
    -XX:ReservedCodeCacheSize=64m
    -Dosgi.nls.warnings=ignore
    -jar
    C:\Users\Laci\AppData\Local\MYECLI~1\MYECLI~1\../Common/plugins/ORB7B5~1.JAR

    *** Subscription information
    Product Id: E3MP (MyEclipse Professional Subscription)
    License version: 3.0
    Full Maintenance Included
    Subscription expiration date (YYYYMMDD): 20150414
    Number of users: 1

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 10.7.1
    Build id: 10.7.1-20130201

    Blueprint: MyEclipse 10

    com.genuitec.myeclipse.database – 10.7.0.me201302031636
    com.genuitec.myeclipse.desktop – 10.7.0.me201302031636
    com.genuitec.myeclipse.editor – 10.7.0.me201302031636
    com.genuitec.myeclipse.enterprise.workbench – 10.7.0.me201302031636
    com.genuitec.myeclipse.geronimo – 10.7.0.me201302031636
    com.genuitec.myeclipse.glassfish – 10.7.0.me201302031636
    com.genuitec.myeclipse.icefaces.feature – 10.7.0.me201302031636
    com.genuitec.myeclipse.imageeditor – 10.7.0.me201302031636
    com.genuitec.myeclipse.jboss – 10.7.0.me201302031636
    com.genuitec.myeclipse.jetty – 10.7.0.me201302031636
    com.genuitec.myeclipse.jonas – 10.7.0.me201302031636
    com.genuitec.myeclipse.jrun – 10.7.0.me201302031636
    com.genuitec.myeclipse.jsf – 10.7.0.me201302031636
    com.genuitec.myeclipse.matisse – 10.7.0.me201302031636
    com.genuitec.myeclipse.maven – 10.7.0.me201302031636
    com.genuitec.myeclipse.oracle – 10.7.0.me201302031636
    com.genuitec.myeclipse.orion – 10.7.0.me201302031636
    com.genuitec.myeclipse.persistence – 10.7.0.me201302031636
    com.genuitec.myeclipse.pulse – 10.7.0.me201302031636
    com.genuitec.myeclipse.reports – 10.7.0.me201302031636
    com.genuitec.myeclipse.resin – 10.7.0.me201302031636
    com.genuitec.myeclipse.struts – 10.7.0.me201302031636
    com.genuitec.myeclipse.sun – 10.7.0.me201302031636
    com.genuitec.myeclipse.tomcat – 10.7.0.me201302031636
    com.genuitec.myeclipse.uml2 – 10.7.0.me201302031636
    com.genuitec.myeclipse.visualvm – 10.7.0.me201302031636
    com.genuitec.myeclipse.visualvm.server – 10.7.0.me201302031636
    com.genuitec.myeclipse.weblogic – 10.7.0.me201302031636
    com.genuitec.myeclipse.websphere – 10.7.0.me201302031636
    com.genuitec.myeclipse.ws – 10.7.0.me201302031636
    org.eclipse.birt – 2.6.1.me201302031636
    org.eclipse.datatools.connectivity.feature – 1.9.0.me201302031636
    org.eclipse.datatools.enablement.feature – 1.9.0.me201302031636
    org.eclipse.datatools.modelbase.feature – 1.9.0.v201106031100-77078CcNBHCBYKYEbNV
    org.eclipse.datatools.sqldevtools.feature – 1.9.0.me201302031636
    org.eclipse.emf – 2.7.0.v20110606-0949
    org.eclipse.gef – 3.7.0.v20110425-2050-777D-81B2Bz0685C3A6E34272
    org.eclipse.graphiti.feature – 0.8.0.v20110607-1252
    org.eclipse.jpt.jpa.feature – 3.0.0.me201302031636
    org.eclipse.jpt.jpadiagrameditor.feature – 1.0.0.me201302031636
    org.eclipse.jst.common.fproj.enablement.jdt – 3.3.0.me201302031636
    org.eclipse.jst.enterprise_ui.feature – 3.3.0.me201302031636
    org.eclipse.jst.server_adapters.ext.feature – 3.3.0.me201302031636
    org.eclipse.jst.server_adapters.feature – 3.2.100.me201302031636
    org.eclipse.jst.server_ui.feature – 3.3.0.me201302031636
    org.eclipse.jst.ws.axis2tools.feature – 1.1.200.me201302031636
    org.eclipse.m2e.feature – 1.0.0.me201302031636
    org.eclipse.sapphire.platform – 0.3.0.201106221325
    org.eclipse.wst.common.fproj – 3.3.0.me201302031636
    org.eclipse.wst.server_adapters.feature – 3.2.100.me201302031636
    org.eclipse.xsd – 2.7.0.v20110606-0949
    org.springframework.ide.eclipse.feature – 2.9.1.me201302031636

    com.android.ide.eclipse.adt – 22.6.3.v201404151837-1123206
    com.android.ide.eclipse.ddms – 22.6.3.v201404151837-1123206
    com.android.ide.eclipse.gldebugger – 22.6.3.v201404151837-1123206
    com.android.ide.eclipse.hierarchyviewer – 22.6.3.v201404151837-1123206
    com.android.ide.eclipse.ndk – 22.6.3.v201404151837-1123206
    com.android.ide.eclipse.traceview – 22.6.3.v201404151837-1123206
    com.google.gdt.eclipse.designer.editor.feature – 2.6.0.r37x201206111227
    com.google.gdt.eclipse.designer.gpe.feature – 2.6.0.r37x201206111341
    com.google.gdt.eclipse.designer.hosted.feature – 2.6.0.r37x201206111222
    com.google.gdt.eclipse.suite.e37.feature – 3.1.0.v201208080120-rel-r37
    fr.obeo.acceleo.bridge.feature – 2.6.0.200906261742
    jd.edi.eclipse.feature – 0.1.3
    org.eclipse.cdt – 8.0.2.201202111925
    org.eclipse.cdt.gdb – 7.0.0.201202111925
    org.eclipse.cdt.gnu.build – 8.0.2.201202111925
    org.eclipse.cdt.gnu.debug – 7.1.1.201202111925
    org.eclipse.cdt.gnu.dsf – 4.0.1.201202111925
    org.eclipse.cdt.platform – 8.0.2.201202111925
    org.eclipse.cvs – 1.3.100.v20110520-0800-7B78FHl9VF7BD7KBM4GP9C
    org.eclipse.dltk.core – 3.0.0.v20101211-0331-7l-2ED-z0UkhYdtV3_LBO
    org.eclipse.dltk.core.index – 3.0.0.v20101026-0553-79–9oA5885GAJ
    org.eclipse.draw2d – 3.7.0.v20110425-2050-46-7w3122153603161
    org.eclipse.equinox.p2.core.feature – 1.0.1.v20110906-1605-8290FZ9FVKHVRKtmx3fpNuo02129
    org.eclipse.equinox.p2.extras.feature – 1.0.1.v20110906-1605-7A4FD4DiVOMap8cHSc6vPuny4gqO
    org.eclipse.equinox.p2.rcp.feature – 1.0.1.v20110906-1605-782EqBqNKGVkiV-PUsgz-uny4gqO
    org.eclipse.equinox.p2.user.ui – 2.1.2.R37x_v20110815-1155-6-Bk8pYWZz0qUTX5I15GZWwbXkrl
    org.eclipse.help – 1.3.0.v20110530-0844-7i7uFFmFFl8nvqbDpEqTvx
    org.eclipse.jdt – 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1
    org.eclipse.jsf.feature – 3.3.0.me201302031636
    org.eclipse.ocl – 3.1.0.v20110606-1427
    org.eclipse.pde – 3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnpz0E–0
    org.eclipse.php – 3.0.1.v201201110400-7V-79F8NcJTcJTTTJwJJ
    org.eclipse.php.sdk – 3.0.0.v201201110400-77-184_2BEICRgM_fMVcz0M4Va9O
    org.eclipse.php.smarty_feature – 0.9.0
    org.eclipse.php.source – 3.0.1.v201201110400-7V-79F8NcJTcJTTTJwJJ
    org.eclipse.platform – 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q
    org.eclipse.rcp – 3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272
    org.eclipse.rse – 3.5.0.201305311734
    org.eclipse.rse.core – 3.4.100.201305201712
    org.eclipse.rse.core.source – 3.4.100.201305201712
    org.eclipse.rse.dstore – 3.4.100.201305311734
    org.eclipse.rse.dstore.source – 3.4.100.201305311734
    org.eclipse.rse.examples – 3.1.400.201305201712
    org.eclipse.rse.ftp – 3.2.0.201305152119
    org.eclipse.rse.ftp.source – 3.2.0.201305200157
    org.eclipse.rse.local – 2.1.500.201305211438
    org.eclipse.rse.local.source – 2.1.500.201305211438
    org.eclipse.rse.scp – 0.2.100.201305201712
    org.eclipse.rse.sdk – 3.5.0.201305311734
    org.eclipse.rse.ssh – 3.0.500.201305201712
    org.eclipse.rse.ssh.source – 3.0.500.201305201712
    org.eclipse.rse.telnet – 2.3.100.201305201712
    org.eclipse.rse.telnet.source – 2.3.100.201305201712
    org.eclipse.rse.terminals – 1.2.100.201305201712
    org.eclipse.rse.terminals.source – 1.2.100.201305201712
    org.eclipse.rse.tests – 3.4.100.201305201712
    org.eclipse.rse.useractions – 1.1.500.201305201712
    org.eclipse.tm.terminal – 3.2.100.201305201712
    org.eclipse.tm.terminal.core.sdk – 3.3.100.201305201712
    org.eclipse.tm.terminal.local – 0.2.300.201305191141
    org.eclipse.tm.terminal.local.sdk – 0.3.100.201305201712
    org.eclipse.tm.terminal.sdk – 3.3.100.201305201712
    org.eclipse.tm.terminal.serial – 2.1.300.201305201712
    org.eclipse.tm.terminal.ssh – 2.1.300.201305201712
    org.eclipse.tm.terminal.telnet – 2.1.300.201305201712
    org.eclipse.tm.terminal.view – 2.4.100.201305201712
    org.eclipse.wb.core.feature – 1.5.0.r37x201206111201
    org.eclipse.wb.core.xml.feature – 1.5.0.r37x201206111216
    org.eclipse.wb.css.feature – 1.5.0.r37x201206111208

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86_64
    -showsplash
    -launcher
    C:\Users\Laci\AppData\Local\MyEclipse\MyEclipse 10\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    C:\Users\Laci\AppData\Local\MyEclipse\MyEclipse 10\../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_4.2.0.v201201111650\eclipse_4201.dll
    -startup
    C:\Users\Laci\AppData\Local\MyEclipse\MyEclipse 10\../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
    -exitdata
    1968_5c
    -install
    C:\Users\Laci\AppData\Local\MyEclipse\MyEclipse 10
    -configuration
    C:\Users\Laci\AppData\Local\MyEclipse\MyEclipse 10\configuration
    -showlocation
    -vm
    C:\Users\Laci\AppData\Local\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\bin\javaw.exe

    Attachments:
    You must be logged in to view attached files.
    #351452 Reply

    Laszlo,

    Thanks for the details provided. I could replicate the issue at my end, I have raised a bug report for the dev team to investigate it.

    The only workaround for now is to open the js file in Text editor (right click on viewer.js file and select Open With > Text Editor).

    Sorry for the inconvenience caused.

    #351460 Reply

    fenyoapa
    Participant

    Ok, thank you.
    One question: will I be notified about the solution?

    #351462 Reply

    fenyoapa,

    Yes, I will keep you posted when the fix is out.

    Thanks for you patience.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: MyEclipse JavaScript Editor

You must be logged in to post in the forum log in