Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » problems with StandaloneSetup and mwe2 workflow
problems with StandaloneSetup and mwe2 workflow [message #652484] Fri, 04 February 2011 09:01 Go to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
Hi

this post might be somehow related to "Getting Started not working":

in my DSL I have the project wizard which generates this workflow:

module Generator

import org.eclipse.emf.mwe.utils.*

var targetDir = "src-gen-ts"
var modelPath = "src/typesystem"

var projectName = "org.eclipse.xtext.typesystem.generator.tests"
var runtimeProject = "../${projectName}"

Workflow {

bean = StandaloneSetup {
platformUri = "${runtimeProject}/.."
}

component = @workflow.TypeSystemGenerator auto-inject {}
}

in the project org.eclipse.xtext.typesystem.generator.tests and refers
to the workflow in the generator plugin

now, if I run it I get this error:

Caused by: org.eclipse.emf.mwe.core.ConfigurationException: The
platformUri location '../org.eclipse.xtext.example.otherproj/..' does
not exist
at
org.eclipse.emf.mwe.utils.StandaloneSetup.setPlatformUri(Sta ndaloneSetup.java:63)
... 33 more

which complains about not finding org.eclipse.xtext.example.otherproj
(which is another project in my workspace)... but why is this workflow
trying to access that project?

In the workflow I never refer to that project!

thanks in advance
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Re: problems with StandaloneSetup and mwe2 workflow [message #652485 is a reply to message #652484] Fri, 04 February 2011 09:23 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 02/04/2011 10:01 AM, Lorenzo Bettini wrote:
> Hi
>
> this post might be somehow related to "Getting Started not working":
>
> in my DSL I have the project wizard which generates this workflow:
>
> module Generator
>
> import org.eclipse.emf.mwe.utils.*
>
> var targetDir = "src-gen-ts"
> var modelPath = "src/typesystem"
>
> var projectName = "org.eclipse.xtext.typesystem.generator.tests"
> var runtimeProject = "../${projectName}"
>
> Workflow {
>
> bean = StandaloneSetup {
> platformUri = "${runtimeProject}/.."
> }
>
> component = @workflow.TypeSystemGenerator auto-inject {}
> }
>
> in the project org.eclipse.xtext.typesystem.generator.tests and refers
> to the workflow in the generator plugin
>
> now, if I run it I get this error:
>
> Caused by: org.eclipse.emf.mwe.core.ConfigurationException: The
> platformUri location '../org.eclipse.xtext.example.otherproj/..' does
> not exist
> at
> org.eclipse.emf.mwe.utils.StandaloneSetup.setPlatformUri(Sta ndaloneSetup.java:63)
>
> ... 33 more
>
> which complains about not finding org.eclipse.xtext.example.otherproj
> (which is another project in my workspace)... but why is this workflow
> trying to access that project?
>
> In the workflow I never refer to that project!
>
> thanks in advance
> Lorenzo
>

Hi tracked down the problem a little bit more: the project where I run
the workflow, org.eclipse.xtext.typesystem.generator.tests, has a plugin
dependency on org.eclipse.xtext.example.otherproj; but why does the
workflow try to refer to org.eclipse.xtext.example.otherproj?

thanks
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Re: problems with StandaloneSetup and mwe2 workflow [message #652523 is a reply to message #652485] Fri, 04 February 2011 11:29 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Lorenzo,

how does the referenced workflow @workflow.TypeSystemGenerator look like?

Btw: Do you think it's a good idea to use the org.eclipse.xtext
namespace for your typesystem?

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 04.02.11 10:23, schrieb Lorenzo Bettini:
> On 02/04/2011 10:01 AM, Lorenzo Bettini wrote:
>> Hi
>>
>> this post might be somehow related to "Getting Started not working":
>>
>> in my DSL I have the project wizard which generates this workflow:
>>
>> module Generator
>>
>> import org.eclipse.emf.mwe.utils.*
>>
>> var targetDir = "src-gen-ts"
>> var modelPath = "src/typesystem"
>>
>> var projectName = "org.eclipse.xtext.typesystem.generator.tests"
>> var runtimeProject = "../${projectName}"
>>
>> Workflow {
>>
>> bean = StandaloneSetup {
>> platformUri = "${runtimeProject}/.."
>> }
>>
>> component = @workflow.TypeSystemGenerator auto-inject {}
>> }
>>
>> in the project org.eclipse.xtext.typesystem.generator.tests and refers
>> to the workflow in the generator plugin
>>
>> now, if I run it I get this error:
>>
>> Caused by: org.eclipse.emf.mwe.core.ConfigurationException: The
>> platformUri location '../org.eclipse.xtext.example.otherproj/..' does
>> not exist
>> at
>> org.eclipse.emf.mwe.utils.StandaloneSetup.setPlatformUri(Sta ndaloneSetup.java:63)
>>
>>
>> ... 33 more
>>
>> which complains about not finding org.eclipse.xtext.example.otherproj
>> (which is another project in my workspace)... but why is this workflow
>> trying to access that project?
>>
>> In the workflow I never refer to that project!
>>
>> thanks in advance
>> Lorenzo
>>
>
> Hi tracked down the problem a little bit more: the project where I run
> the workflow, org.eclipse.xtext.typesystem.generator.tests, has a plugin
> dependency on org.eclipse.xtext.example.otherproj; but why does the
> workflow try to refer to org.eclipse.xtext.example.otherproj?
>
> thanks
> Lorenzo
>
Re: problems with StandaloneSetup and mwe2 workflow [message #652539 is a reply to message #652523] Fri, 04 February 2011 13:08 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 02/04/2011 12:29 PM, Sebastian Zarnekow wrote:
> Hi Lorenzo,
>
> how does the referenced workflow @workflow.TypeSystemGenerator look like?
>

here it is (it's basically the one generated by xtext wizard, with some
modifications):

module workflow.TypeSystemGenerator

import org.eclipse.emf.mwe.utils.*

var targetDir = "src-gen-ts"
var fileEncoding = "UTF-8"
var modelPath = "src/typesystem"

Workflow {

component = DirectoryCleaner {
directory = targetDir
}

component = org.eclipse.xtext.mwe.Reader {
// lookup all resources on the classpath
// useJavaClassPath = true

// or define search scope explicitly
path = modelPath

// this class will be generated by the xtext generator
register = org.eclipse.xtext.typesystem.TypeSystemStandaloneSetup {}
load = {
slot = "rules"
type = "Rule"
}
load = {
slot = "typesystemdefinition"
type = "TypeSystemDefinition"
}
}

component = org.eclipse.xpand2.Generator {
expand = "templates::Start::main FOREACH typesystemdefinition"
outlet = {
path = targetDir
postprocessor = org.eclipse.xpand2.output.JavaBeautifier { }
}
fileEncoding = fileEncoding
}

}


> Btw: Do you think it's a good idea to use the org.eclipse.xtext
> namespace for your typesystem?

well I don't know... do you think it's better I change it by removing
org.eclipse.xtext?

thanks
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Previous Topic:How to deal with partitions when partition is not terminal
Next Topic:Proposals: icons+${}, replacing keyword proposals, indentation
Goto Forum:
  


Current Time: Thu Apr 25 09:13:05 GMT 2024

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

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

Back to the top