[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [Dltk-dev] model exception being thrown
|
Hi Jae,
The issue is fixed, thanks for localizing the problem.
Regards,
Alex
Jae Gangemi wrote:
i've done some more investigation and it appears that this problem
only occurs if the file being edited is not contained within a source
folder.
sample project dir structure:
perl
lib
Class.pm
sample.pl
if i make changes to Class.pm, i can save them w/o issue. if i make
changes to sample.pl (which is NOT under 'lib'), i get an error when i
try to save the file.
this used to work and it should be a valid to have 'scripts' that
sit directly under the project root directory.
On Wed, Sep 17, 2008 at 10:02 AM, Jae Gangemi <jgangemi@xxxxxxxxx
<mailto:jgangemi@xxxxxxxxx>> wrote:
i've tracked down part of the problem.
the SourceModule object being returned from getSourceModule() in
CommitWorkingCopyOperation.verify() claims that it is not the
working copy.
what would cause that?
On Wed, Sep 17, 2008 at 9:56 AM, Jae Gangemi <jgangemi@xxxxxxxxx
<mailto:jgangemi@xxxxxxxxx>> wrote:
here is the stacktrace:
java.lang.RuntimeException
at
org.eclipse.dltk.internal.core.ModelStatus.getMessage(ModelStatus.java:209)
at
org.eclipse.core.runtime.CoreException.<init>(CoreException.java:44)
at
org.eclipse.dltk.core.ModelException.<init>(ModelException.java:48)
at
org.eclipse.dltk.internal.core.ModelOperation.runOperation(ModelOperation.java:759)
at
org.eclipse.dltk.internal.core.SourceModule.commitWorkingCopy(SourceModule.java:132)
at
org.eclipse.dltk.internal.ui.editor.SourceModuleDocumentProvider.commitWorkingCopy(SourceModuleDocumentProvider.java:1453)
at
org.eclipse.dltk.internal.ui.editor.SourceModuleDocumentProvider$2.execute(SourceModuleDocumentProvider.java:1359)
at
org.eclipse.ui.editors.text.TextFileDocumentProvider$DocumentProviderOperation.run(TextFileDocumentProvider.java:130)
at
org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:69)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:104)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:116)
at
org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:73)
at
org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:63)
at
org.eclipse.ui.editors.text.TextFileDocumentProvider.executeOperation(TextFileDocumentProvider.java:454)
at
org.eclipse.ui.editors.text.TextFileDocumentProvider.saveDocument(TextFileDocumentProvider.java:770)
at
org.eclipse.ui.texteditor.AbstractTextEditor.performSave(AbstractTextEditor.java:4790)
at
org.eclipse.dltk.internal.ui.editor.ScriptEditor.performSave(ScriptEditor.java:3011)
at
org.eclipse.dltk.internal.ui.editor.ScriptEditor.doSave(ScriptEditor.java:3070)
at
org.eclipse.ui.texteditor.AbstractTextEditor$TextEditorSavable.doSave(AbstractTextEditor.java:6889)
at org.eclipse.ui.Saveable.doSave(Saveable.java:212)
at
org.eclipse.ui.internal.SaveableHelper.doSaveModel(SaveableHelper.java:339)
at
org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:185)
at
org.eclipse.ui.internal.SaveableHelper$4.run(SaveableHelper.java:266)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:446)
at
org.eclipse.jface.operation.ModalContext.run(ModalContext.java:354)
at
org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:758)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at
org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:755)
at
org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2483)
at
org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:274)
at
org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:253)
at
org.eclipse.ui.internal.SaveableHelper.saveModels(SaveableHelper.java:196)
at
org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:136)
at
org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1350)
at
org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:3291)
at
org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3304)
at
org.eclipse.ui.texteditor.SaveAction.run(SaveAction.java:48)
at
org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at
org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
at
org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
at
org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at
org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at
org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:471)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:822)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:880)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:569)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:511)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:126)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at
org.eclipse.swt.widgets.Display.filterEvent(Display.java:1130)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1560)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
at
org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1622)
at
org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1617)
at
org.eclipse.swt.widgets.Control.kEventUnicodeKeyPressed(Control.java:2292)
at
org.eclipse.swt.widgets.Composite.kEventUnicodeKeyPressed(Composite.java:586)
at
org.eclipse.swt.widgets.Control.kEventTextInputUnicodeForKeyEvent(Control.java:2254)
at
org.eclipse.swt.widgets.Canvas.kEventTextInputUnicodeForKeyEvent(Canvas.java:232)
at
org.eclipse.swt.widgets.Widget.textInputProc(Widget.java:1995)
at
org.eclipse.swt.widgets.Display.textInputProc(Display.java:3962)
at
org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native
Method)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3047)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at
org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at
org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
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:382)
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:585)
at
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
On Wed, Sep 17, 2008 at 9:12 AM, Jae Gangemi
<jgangemi@xxxxxxxxx <mailto:jgangemi@xxxxxxxxx>> wrote:
the exception is thrown from ModelStatus after verify() is
called
I don't recall having to make changes for the
ISourceElementParser change but maybe I missed something
I'll provide a stacktrace once I get to the office
Sent from my iPhone
On Sep 17, 2008, at 8:50 AM, Alex Panchenko
<alex@xxxxxxxxx <mailto:alex@xxxxxxxxx>> wrote:
Hi Jae,
The recent incompatible change was the
ISourceElementParser interface change - but old code
just would not compile, there should not be any
exception thrown.
If you post more details like location where the
exception is raised - it should be easier to find out
what happens.
Regards,
Alex
Jae Gangemi wrote:
hello all -
i keep getting a 'operation not supported' error
message when i try to save changes to my editor.
my guess would be that something changed in the
core that requires me to update some code on my
end, but i'm not sure what that would be. anyone
have any ideas?
--
-jae
------------------------------------------------------------------------
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx <mailto:dltk-dev@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/dltk-dev
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx <mailto:dltk-dev@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/dltk-dev
--
-jae
--
-jae
--
-jae
------------------------------------------------------------------------
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev