Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316776

Summary: [Help][Search] "Error saving the scope set" message when searching the doc
Product: [Eclipse Project] Platform Reporter: Tomasz Zarna <tomasz.zarna>
Component: User AssistanceAssignee: Chris Goldthorpe <cgold>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cgold, prakash
Version: 3.6   
Target Milestone: 3.7 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch
none
Improved patch none

Description Tomasz Zarna CLA 2010-06-14 11:33:05 EDT
I20100608-0911 3.6RC4

Steps:
1. Open Preferences
2. Go to Team > CVS > Synchronize/Compare
3. Open Help (hit F1)
4. Click first link in "More results" section: "Search for Synchronize/Compare"
=> The exception is logged in Error log

Error
Mon Jun 14 16:50:57 CEST 2010
Error saving the scope set: Synchronize/Compare

java.io.FileNotFoundException: C:\workspace\eclipse\team\dev.eclipse.org_HEAD_extssh\.metadata\.plugins\org.eclipse.help.ui\scope_sets\Synchronize\Compare.hist (The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.eclipse.jface.preference.PreferenceStore.save(PreferenceStore.java:468)
at org.eclipse.help.ui.internal.views.ScopeSet.save(ScopeSet.java:160)
at org.eclipse.help.ui.internal.views.SearchPart.storeSearchHistory(SearchPart.java:514)
at org.eclipse.help.ui.internal.views.SearchPart.doSearch(SearchPart.java:563)
at org.eclipse.help.ui.internal.views.SearchPart.doSearch(SearchPart.java:552)
at org.eclipse.help.ui.internal.views.SearchPart.startSearch(SearchPart.java:502)
at org.eclipse.help.ui.internal.views.ReusableHelpPart.startSearch(ReusableHelpPart.java:1010)
at org.eclipse.help.ui.internal.views.ContextHelpPart.doMore(ContextHelpPart.java:712)
at org.eclipse.help.ui.internal.views.ContextHelpPart.access$2(ContextHelpPart.java:710)
at org.eclipse.help.ui.internal.views.ContextHelpPart$2.linkActivated(ContextHelpPart.java:143)
at org.eclipse.ui.forms.widgets.FormText.activateLink(FormText.java:1552)
at org.eclipse.ui.forms.widgets.FormText.handleMouseClick(FormText.java:1355)
at org.eclipse.ui.forms.widgets.FormText.access$16(FormText.java:1326)
at org.eclipse.ui.forms.widgets.FormText$6.mouseUp(FormText.java:448)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:213)
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:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:211)
at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
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:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
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:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

I haven't noticed any side effects.

Same results for "Update/Merge" and "Watch/Edit" pref pages.

I was able to reproduce on 2 different boxes: Windows and Linux.

Sorry if this is not the right component for this bug.
Comment 1 Prakash Rangaraj CLA 2010-06-14 12:11:14 EDT
Reproducible on Mac as well. Assigning to Team. I guess the help scopes are not properly defined.
Comment 2 Tomasz Zarna CLA 2010-06-15 04:34:35 EDT
I've just discovered it happens to all pref pages named "X/Y". So it's also valid for "Compare/Patch", "Install/Update", "Run/Debug" and others. This is not a Team limited issue. 

Shouldn't there be a general fix on Help side for all these cases?

Moving to Platform/UA for comment.
Comment 3 Chris Goldthorpe CLA 2010-06-15 12:40:09 EDT
The problem also exists in Eclipse 3.5. If you perform a help search for any term which includes a '/' an error message is written to the log.
Comment 4 Chris Goldthorpe CLA 2010-06-15 13:51:42 EDT
Created attachment 171970 [details]
Patch
Comment 5 Chris Goldthorpe CLA 2010-06-15 14:13:32 EDT
Created attachment 171975 [details]
Improved patch
Comment 6 Chris Goldthorpe CLA 2010-06-15 14:15:28 EDT
Patch applied, Fixed