Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339199 - [client] Cannot edit a newly created file
Summary: [client] Cannot edit a newly created file
Status: RESOLVED WORKSFORME
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-08 07:06 EST by Tomasz Zarna CLA
Modified: 2011-08-30 10:22 EDT (History)
3 users (show)

See Also:


Attachments
"Fetching..." should go away (28.43 KB, image/png)
2011-03-08 07:08 EST, Tomasz Zarna CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Zarna CLA 2011-03-08 07:06:59 EST
Steps:

1. Create a new file ("new.txt")
2. Open it. In my case: http://localhost:8080/coding.html#http://localhost:8080/file/BR/new.txt
=> "Fetching /file/BR/new.txt" stays for ever
=> Errors in Firebug console: "TypeError: fileService[funcName] is undefined" (twice)
3. Keep editing, and then try to save
=> "TypeError: fileService[funcName] is undefined" again, save failed
4. Click on the Orion icon in the top left corner
=> "uncaught exception: [Exception... "Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface]" nsresult: "0x80004002 (NS_NOINTERFACE)" location: "JS frame :: file:///C:/Documents%20and%20Settings/Administrator/Application%20Data/Mozilla/Firefox/Profiles/p9mdzysh.default/extensions/ietab@ip.cn/components/nsIeTabWatchFactory.js :: anonymous :: line 226" data: no]"
Comment 1 Tomasz Zarna CLA 2011-03-08 07:08:18 EST
Created attachment 190646 [details]
"Fetching..." should go away
Comment 2 Tomasz Zarna CLA 2011-03-08 07:17:49 EST
Clearing the plugin registry fixed all the problems. But how could I know I have to do it first?
Comment 3 Simon Kaegi CLA 2011-03-08 08:44:04 EST
This is the problem John wrote about on the mailing list. The problem is that the plugins service signature is persisted instead of just cached and when the fileservice changed we did not handle this correctly. This is something I'll work on for M6.
Comment 4 John Arthorne CLA 2011-04-27 17:37:51 EDT
This works.