Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348723 - Xtext 2 does not handle correctly creation of a project in a directory not in the workspace
Summary: Xtext 2 does not handle correctly creation of a project in a directory not in...
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: SR1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-08 08:55 EDT by Lorenzo Bettini CLA
Modified: 2017-09-19 17:46 EDT (History)
2 users (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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