Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325387 - Code Assist not working for project names containing a colon
Summary: Code Assist not working for project names containing a colon
Status: NEW
Alias: None
Product: DLTK
Classification: Technology
Component: Common (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: dltk.common-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-15 16:01 EDT by Ingo Renner CLA
Modified: 2011-07-13 01:42 EDT (History)
3 users (show)

See Also:


Attachments
screenshot (92.82 KB, image/png)
2010-10-18 04:05 EDT, Jacek Pospychala CLA
no flags Details
screenshot / project name is "php:test" (53.13 KB, image/png)
2011-05-17 01:21 EDT, Toshihiro Izumi CLA
no flags Details
patch (1.06 KB, patch)
2011-07-13 01:40 EDT, Zhongwei Zhao CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Renner CLA 2010-09-15 16:01:55 EDT
Build Identifier: 20100617-1415

When adding a colon in a project's name, Code Assist does not work

Example project names:
"EXT solr" -> Code Assist works
"EXT:solr" -> Code Assist does not work

Reproducible: Always
Comment 1 Ingo Renner CLA 2010-09-15 16:04:53 EDT
The "EXT:" notation is quite common for TYPO3 extension projects, being EXT an abbreviation for extension, followed by a colon, followed by the extension name
Comment 2 xu jiaxi CLA 2010-10-18 03:00:28 EDT
"colon" is an invalid character in a project name.

So how did you input a colon into a project name?
Comment 3 Jacek Pospychala CLA 2010-10-18 04:05:32 EDT
Created attachment 181072 [details]
screenshot

hi Xu,
I can easily create PHP project with colon. Not sure why you can't.
Comment 4 Jacek Pospychala CLA 2010-10-18 04:07:49 EDT
Ah, Ingo seems to be using Mac. So this may be OS-specific. Mac and Linux should allow ":" in project name, whereas Win will not allow it.
Comment 5 Ingo Renner CLA 2010-10-18 05:30:42 EDT
I remember it might not have allowed me to create project containing a colon in the name, but it definitely allowed me to put a colon in the name when renaming the project...
Comment 6 Zhongwei Zhao CLA 2011-04-19 02:00:13 EDT
I could rename to xxx:,and I will try to fix this bug under linux.
Comment 7 Toshihiro Izumi CLA 2011-05-17 01:21:29 EDT
Created attachment 195808 [details]
screenshot / project name is "php:test"

Probably the immediate cause is
org.eclipse.dltk.internal.core.Model.getTarget(IContainer, IPath, boolean)

This method cannot handle the project name which contains ":", since the part of project name before IPath.DEVICE_SEPARATOR is considered as a device.
The path of project should be constructed with Path(null, project_path), maybe...
Comment 8 Zhongwei Zhao CLA 2011-07-13 01:40:58 EDT
Created attachment 199540 [details]
patch
Comment 9 Zhongwei Zhao CLA 2011-07-13 01:42:25 EDT
move to dltk,the patch is not fully tested.