henriquelrocha / veloeclipse

Automatically exported from code.google.com/p/veloeclipse
Other
0 stars 0 forks source link

'Error opening the editor' #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
This is an 'install and try for the first time' error.

What is the expected output? What do you see instead?
'Error opening the editor'

What version of the product are you using? On what operating system?
Eclipse 3.3.0

Please provide any additional information below.
This stack trace occurred after I installed Veloeclipse, restarted Eclipse,
made a file association of '.ass' to Veloeclipse, and opened my text file
with Velocity code in it. Same result after creating a new empty text file
from windows explorer.

java.lang.NullPointerException
    at
com.googlecode.veloeclipse.editor.MultiPageEditor.pageChange(MultiPageEditor.jav
a:219)
    at
org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:6
97)
    at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.ja
va:287)
    at
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:66
1)
    at
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
    at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.ja
va:592)
    at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:263)
    at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2
739)
    at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651)
    at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643)
    at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2557)
    at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1090)
    at
org.eclipse.ui.internal.ide.EditorAreaDropAdapter.asyncDrop(EditorAreaDropAdapte
r.java:134)
    at
org.eclipse.ui.internal.ide.EditorAreaDropAdapter.access$0(EditorAreaDropAdapter
.java:87)
    at
org.eclipse.ui.internal.ide.EditorAreaDropAdapter$1.run(EditorAreaDropAdapter.ja
va:81)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
    at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
    at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java
:106)
    at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ecli
pseAppLauncher.java:106)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLau
ncher.java:76)
    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

Original issue reported on code.google.com by numberon...@gmail.com on 12 Mar 2009 at 9:42

GoogleCodeExporter commented 9 years ago
Hmm, if you got to Preferences > Veloeclipse > General Preferences, and check 
'Do not show editor preview tab' 
then restart Eclipse, does it still fail?  I tried to reproduce this with no 
luck, but I'm using Eclipse 3.4.

Original comment by byron.foster@gmail.com on 12 Mar 2009 at 6:33

GoogleCodeExporter commented 9 years ago
Tried it, but got the same stack strace.
(com.googlecode.veloeclipse.editor.MultiPageEditor.pageChange(MultiPageEditor.ja
va:219))
This is the same with my existing files, and a 0 byte 'test.vm' file.

I'm on holiday now for 2 weeks, and when I get back I will be upgrading to the 
latest
Eclipse, so perhaps this particular problem will go away... :)

Original comment by numberon...@gmail.com on 13 Mar 2009 at 5:16

GoogleCodeExporter commented 9 years ago
I'm running 3.4.2, and get exactly the same stack trace when I try
to open a .html file. I also tried the "Do not show editor preview tab" 
suggestion
but got the same results.

Any suggestions you may offer will be appreciated.

Original comment by jealtst...@gmail.com on 13 Mar 2009 at 10:47

GoogleCodeExporter commented 9 years ago
There is a new version 2.0.8, see if an update doesn't fix it.

Original comment by byron.foster@gmail.com on 15 Mar 2009 at 12:00

GoogleCodeExporter commented 9 years ago

Original comment by byron.foster@gmail.com on 22 Mar 2009 at 2:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
(Hi Byron - sorry for the silence, I've been on holiday and I've had my PC
reformatted...)

Installed Eclipse 3.4.2 (J2EE).  Installed Subclipse.  Installed Veloeclipse 
2.0.8.
Drag - dropped from Windows Explorer a 'test.vm' file consisting of two lines:
Hello
World

Eclipse editor shows just a blue line and 'ERROR' beneath it.

...however, if I open the same file from within a Project, it opens fine.
(perhaps this is the cause of the original issue)

Original comment by numberon...@gmail.com on 30 Mar 2009 at 10:50

GoogleCodeExporter commented 9 years ago
Thanks for the feedback.  I can confirm your results above when a vm file is 
drag and dropped into Eclipse, but 
the vm file is not in the current project.  However, it does seem to work when 
a vm file is in the current project.  I 
created a new Issue 11 for this problem since it seems different for this one.

Original comment by byron.foster@gmail.com on 31 Mar 2009 at 3:16