Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348723

Summary: Xtext 2 does not handle correctly creation of a project in a directory not in the workspace
Product: [Modeling] TMF Reporter: Lorenzo Bettini <lorenzo.bettini>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: clay, sebastian.zarnekow
Version: 2.0.0Flags: sebastian.zarnekow: indigo+
Target Milestone: SR1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Lorenzo Bettini CLA 2011-06-08 08:55:59 EDT
When you create a new xtext project (with Xtext 2 from the milestones update repository) and you specify a directory different from the default one (i.e., not in the workspace but in another directory), with name, say org.xtext.example.mydsl, xtext will generate 3 plugins:

- org.xtext.example.mydsl
- org.xtext.example.mydsl.ui
- org.xtext.example.mydsl.tests

but physically the directories in the hard disk will be

- org.xtext.example.mydsl
- org.xtext.example.mydsl.ui
- org.xtext.example.mydsl.generator (instead of tests)

when generating then artifacts (and in general, when running the workflow) things will be generated in the src-gen subdirectory of the directory org.xtext.example.mydsl.tests, though the plugin opened in eclipse org.xtext.example.mydsl.tests will refer to the directory org.xtext.example.mydsl.generator.
Comment 1 Lorenzo Bettini CLA 2011-06-08 09:20:42 EDT
some additional information:

the problem seems to take place only upon project creation: 

- delete the 3 projects (but not the contents), 
- copy the contents of the directory org.xtext.example.mydsl.tests into  org.xtext.example.mydsl.generator
- remove the directory org.xtext.example.mydsl.tests
- rename the directory org.xtext.example.mydsl.generator into org.xtext.example.mydsl.tests
- reopen the 3 projects in eclipse
- run the mwe2 generator again
- the org.xtext.example.mydsl.generator directory does not show up anymore
Comment 2 Michael Clay CLA 2011-06-26 14:22:23 EDT
pushed to master
Comment 3 Karsten Thoms CLA 2017-09-19 17:35:55 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 17:46:52 EDT
Closing all bugs that were set to RESOLVED before Neon.0