Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Library issue with New Project Wizard in 2.14
Library issue with New Project Wizard in 2.14 [message #1794411] Thu, 30 August 2018 11:32 Go to next message
Nikita Dümmel is currently offline Nikita DümmelFriend
Messages: 15
Registered: September 2017
Junior Member
Hello,

my DSL offers a library with some built in operations.
When creating a Project using the New Project Wizard in 2.14 the references to these operations cannot be resolved even after I added the DSL Plugin to dependencies.
The old way, i.e. creating a simple Plugin Project, new file with DSL extension and adding the dependency, works just fine.

After comparing the two projects I added the following lines to the .project file of the project created with the new wizard and after restarting the runtime eclipse application it started working.

<buildCommand>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
<arguments>
</arguments>
</buildCommand>

This isn't really convenient.


Best regards,
Nikita
Re: Library issue with New Project Wizard in 2.14 [message #1794413 is a reply to message #1794411] Thu, 30 August 2018 11:35 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12239
Registered: July 2009
Senior Member
there is a rightclick configure convert to xtext project option

Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Library issue with New Project Wizard in 2.14 [message #1794414 is a reply to message #1794411] Thu, 30 August 2018 11:36 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 615
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Xtext 2.14 adds a new API for New Project Wizards. You could use that to create your own project wizard easily, e.g. create your project structure, add natures & builders etc.

See this blog post as reference: https://blogs.itemis.com/de/new-project-wizard-einfach-mit-xtext-2-14-generieren
Re: Library issue with New Project Wizard in 2.14 [message #1794419 is a reply to message #1794414] Thu, 30 August 2018 11:48 Go to previous messageGo to next message
Nikita Dümmel is currently offline Nikita DümmelFriend
Messages: 15
Registered: September 2017
Junior Member
Karsten Thoms wrote on Thu, 30 August 2018 11:36
Xtext 2.14 adds a new API for New Project Wizards. You could use that to create your own project wizard easily, e.g. create your project structure, add natures & builders etc.

See this blog post as reference: https://blogs.itemis.com/de/new-project-wizard-einfach-mit-xtext-2-14-generieren


Yes, that's exactly what I'm doing, I created one project using the 2.14 new DSL project wizard and it's not working.

I have these lines in my mwe2 file:
projectWizard = {
generate = true
}
fileWizard = {
generate = true
}

Then I create my Project via New -> MyDSL Project, it lacks the dependency to MyDSL Plugin after creation and its .project looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>qwert</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.jdt.core.javabuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.eclipse.jdt.core.javanature</nature>
		<nature>org.eclipse.pde.PluginNature</nature>
		<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
	</natures>
</projectDescription>
Re: Library issue with New Project Wizard in 2.14 [message #1794420 is a reply to message #1794419] Thu, 30 August 2018 11:49 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12239
Registered: July 2009
Senior Member
can you please open an issue at github.com/eclipse/xtext-core

Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Library issue with New Project Wizard in 2.14 [message #1794421 is a reply to message #1794420] Thu, 30 August 2018 12:04 Go to previous message
Nikita Dümmel is currently offline Nikita DümmelFriend
Messages: 15
Registered: September 2017
Junior Member
Done.
https://github.com/eclipse/xtext-core/issues/851
Previous Topic:Error on first generation regarding superType
Next Topic:Usage of IContextualOutputConfigurationProvider(2)
Goto Forum:
  


Current Time: Mon Sep 24 22:54:08 GMT 2018

Powered by FUDForum. Page generated in 0.02597 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top