Bug 5334 - Internal errors using patch tool
Summary: Internal errors using patch tool
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Andre Weinand CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-29 11:19 EST by John Arthorne CLA
Modified: 2001-11-01 11:19 EST (History)
1 user (show)

See Also:


Attachments
This is the local project I was comparing to (299.99 KB, application/octet-stream)
2001-10-29 11:29 EST, John Arthorne CLA
no flags Details
This is the diff I was comparing to (497 bytes, patch)
2001-10-29 11:29 EST, John Arthorne CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2001-10-29 11:19:43 EST
I'm trying to use the new "Compare with Path" wizard, but I'm getting internal 
errors.  Stack trace is below.  I will attach the patch file and a zip of the 
project I'm comparing it to.

CC'ing Jean-Michel and Andre because I'm not sure if this is a VCM or Compare 
issue...
Comment 1 John Arthorne CLA 2001-10-29 11:29:12 EST
Created attachment 32 [details]
This is the local project I was comparing to
Comment 2 John Arthorne CLA 2001-10-29 11:29:36 EST
Created attachment 33 [details]
This is the diff I was comparing to
Comment 3 John Arthorne CLA 2001-10-29 11:31:25 EST
Here is the stack trace:

4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop.
java.lang.IllegalArgumentException: resources.resourcePath
	at 
org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java(Compile
d Code))
	at 
org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java(Compile
d Code))
	at 
org.eclipse.core.internal.resources.Container.getFile(Container.java:107)
	at 
org.eclipse.compare.patch.PatchWizard.existsInSelection(PatchWizard.java:62)
	at 
org.eclipse.compare.patch.PreviewPatchPage.update(PreviewPatchPage.java:71)
	at 
org.eclipse.compare.patch.PreviewPatchPage.setVisible(PreviewPatchPage.java:44)
	at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:882)
	at 
org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:646)
	at 
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:307)
	at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:211)
	at 
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:85)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:638)
	at 
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled 
Code))
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:536)
	at org.eclipse.jface.window.Window.open(Window.java:523)
	at 
org.eclipse.compare.patch.CompareWithPatchAction.run(CompareWithPatchAction.java
:37)
	at org.eclipse.ui.internal.PluginAction.run(PluginAction.java:125)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:451)
	at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionCont
ributionItem.java:407)
	at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContribu
tionItem.java:361)
	at 
org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.
java:352)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(Actio
nContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:638)
	at 
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled 
Code))
	at 
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:658)
	at 
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:82
0)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
	at org.eclipse.core.launcher.Main.run(Main.java:433)
	at org.eclipse.core.launcher.Main.main(Main.java:306)
Comment 4 Andre Weinand CLA 2001-10-30 04:37:57 EST
Patch couldn't handle top level files
(that is files having path names with a single segment).
Fixed that for 0.207.