Bug 514120 - Type creation wizards should read correct namespace from composer metadata
Summary: Type creation wizards should read correct namespace from composer metadata
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 530694
  Show dependency tree
 
Reported: 2017-03-23 08:42 EDT by Dawid Pakula CLA
Modified: 2020-05-14 10:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dawid Pakula CLA 2017-03-23 08:42:23 EDT
As in subject, for now "new *" wizards detect wrong namespace, for example in any Symfony project.
Comment 1 Lutz Helm CLA 2018-03-14 04:41:49 EDT
Because the description is a bit short: Does this entry cover the problem that after updating the project build path via "Composer --> Update Build Path", in a new class/trait/interface wizard the namespace suggestion is missing at least the namespace parts that are mapped to a source folder in the autoload-psr-4 configuration of the composer.json file?
Comment 2 Dawid Pakula CLA 2018-03-15 19:05:51 EDT
Yes. These wizards should read class loader type with correct prefix (if necessary) and later calculate namespace based on dir selection.
Comment 3 Eclipse Genie CLA 2018-10-21 16:50:27 EDT
New Gerrit change created: https://git.eclipse.org/r/131292