Skip to main content



      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 07:32 Go to next message
Eclipse UserFriend
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 07:35 Go to previous messageGo to next message
Eclipse UserFriend
there is a rightclick configure convert to xtext project option
Re: Library issue with New Project Wizard in 2.14 [message #1794414 is a reply to message #1794411] Thu, 30 August 2018 07:36 Go to previous messageGo to next message
Eclipse UserFriend
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 07:48 Go to previous messageGo to next message
Eclipse UserFriend
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 07:49 Go to previous messageGo to next message
Eclipse UserFriend
can you please open an issue at github.com/eclipse/xtext-core
Re: Library issue with New Project Wizard in 2.14 [message #1794421 is a reply to message #1794420] Thu, 30 August 2018 08:04 Go to previous message
Eclipse UserFriend
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: Tue Jun 17 03:44:13 EDT 2025

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

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

Back to the top