Community
Participate
Working Groups
Expand your local connection till you get to the drives. Right click on your C:\ drive and select "Create Remote Project". A Dialog pops up then disappears. Error Log shows: !ENTRY org.eclipse.rse.ui 4 0 2007-04-13 11:41:41.236 !MESSAGE Error creating temp project !STACK 1 org.eclipse.core.internal.resources.ResourceException: : is an invalid character in resource name 'C:'. at org.eclipse.core.internal.resources.Resource.checkValidPath(Resource.java:415) at org.eclipse.core.internal.resources.Project.create(Project.java:221) at org.eclipse.rse.internal.eclipse.filesystem.ui.actions.CreateRemoteProjectActionDelegate.createRemoteProject(CreateRemoteProjectActionDelegate.java:191) at org.eclipse.rse.internal.eclipse.filesystem.ui.actions.CreateRemoteProjectActionDelegate.access$0(CreateRemoteProjectActionDelegate.java:170) at org.eclipse.rse.internal.eclipse.filesystem.ui.actions.CreateRemoteProjectActionDelegate$1.run(CreateRemoteProjectActionDelegate.java:131) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113) !SUBENTRY 1 org.eclipse.core.resources 4 77 2007-04-13 11:41:41.236 !MESSAGE : is an invalid character in resource name 'C:'. -----------Enter bugs above this line----------- installation : eclipse-SDK-3.3M6 RSE install : RSE 2.0M6 java.runtime : Sun 1.5.0_11-b03 os.name: : Windows XP, Service Pack 2 ------------------------------------------------
Seems a duplicate of EFS URI issues.
Tried this again with 2.0.1RC1 and now it displays an error. "Internal Error: : is an invalid character in resource name 'C:'." If you go to File -> New -> Project. General -> Project. Uncheck "Use default location". Change the file system to RSE. Click "Browse...". Select your C:\. It will display the error "Invalid location path". ":" is not valid in the URI.
This is actually two bugs: Using the original steps from description ("Create Remote Project"), it is in CreateRemoteProjectActionDelegate#createRemoteProject() The directory name needs to remove trailing slashes, and escape character : when computing a default project name. Using the steps to reproduce from comment #2, this is actually not a problem with RSE, but with ProjectContentsLocationArea#checkValidLocation() That method takes the URI from the selected remote resource, and extracts the last segment to generate a default project name out of it. It also needs to escape the : and \ characters. For this fix, th bug needs to be reassigned to Platform IDE.
Workaround is to use the method from comment #2, and manually specify a project name e.g. "C".
Created attachment 78388 [details] Patch fixing the issue in "Create Remote Project" action Attached patch fixes the issue by stripping off characters :\ in directory names.
Created attachment 78389 [details] Amended patch adding connection name and supporting UNIX roots
Xuan can you review this?
Patch looks good. Can use Create Remote Project on Drives now. Using the Eclipse New Project dialog it doesn't allow ":" in the Location URI, but it is a valid URI. Will need a bug against the platform.
Committed the Fix for RSE. Filed bug 203376 for the Platform IDE part of the issue.
The fix looks good. But I got "Invalid thread access" if I cancel the creation of the remote project on C drive. I will open a different bug for this problem
Verified fixed in I20071108.