Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337648 - Project name != project folder name
Summary: Project name != project folder name
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P1 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-19 14:00 EST by gossi CLA
Modified: 2020-05-14 10:17 EDT (History)
3 users (show)

See Also:


Attachments
screenshot (40.44 KB, image/png)
2011-02-21 10:40 EST, Jacek Pospychala CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description gossi CLA 2011-02-19 14:00:21 EST
Build Identifier: eclipse helios sr1 with pdt 2.2.1

PDT's Project name is kept in sync with the folder name of the project. Where actually, for convenience I used to type my folder name completely in lowercase without dashes and so on (for faster access in the browser's location bar), but in eclipse I wanted my project to be named as the original product name with uppercase letters and dashes.
Seems like PDT keeps this two independet names in sync?
I wish this could go independent :)

I even tried to rename the project in the .project file but that doesn't work. Either the project's name in the .project file is ignored or there is an eclipse cache I don't know of.

As an expected behavior, renaming a project renames the project's name in the .project file rather than the folder that contains the .project file.

Reproducible: Always

Steps to Reproduce:
1. Create a new PHP Project, name it "abcde"
2. Rightclick the Project > Refactor > Rename... and enter "ABC-DE"
3. Sometimes there happens to be an error, wether the file in <workspace loc>/.metadata/.plugins/org.eclipse.core.resources/<project-name> already exists
4. Check the name of the project's folder. That changed, too.

Trying to move a project throught Rightclick -> Refactor -> Move... always "overlaps the location of another project". Where actually the Rightclick -> Refactor -> Rename... IS the move-command.
Comment 1 Jacek Pospychala CLA 2011-02-21 10:40:30 EST
Hi Gossi,
when creating new PHP project you can use whatever name you like and then select "Create project at exisisting location (from existing source)" to point to the location that you want.
(See screenshot)
Comment 2 Jacek Pospychala CLA 2011-02-21 10:40:48 EST
Created attachment 189417 [details]
screenshot
Comment 3 gossi CLA 2011-02-21 11:18:59 EST
Hey Jacek,

Thanks for your screenshot and explanation, I tested it. It works unless the folder you want to create the project in is not in your workspace, why?

The error is "Cannot create project content in workspace."

Nevertheless, the Refactor Rename.../Move... actions are broken.
Comment 4 Zhongwei Zhao CLA 2011-04-13 09:47:15 EDT
I remember the rename function in zend studio will not change the folder name.
Comment 5 Zhongwei Zhao CLA 2011-06-30 03:39:35 EDT
Now I am using Indigo and pdt 3.0,rename will not change the project folder's name

and there is no "overlaps the location of another project" when I move a php project.
Comment 6 gossi CLA 2011-10-08 10:29:08 EDT
rechecked it with the indigo release, nothing changed there.
Comment 7 gossi CLA 2013-02-28 20:42:06 EST
I see the same problem with the new VJET plugin (See https://bugs.eclipse.org/bugs/show_bug.cgi?id=401607) does this problem go back to DLTK? I might create another bug there mark the others as duplicate. Is this helpful?
Comment 8 Glen A. CLA 2016-02-01 11:37:31 EST
Same issue. I wanted to rename the project and not the folder on disk.