Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » eTrice » Unable to run gen_MyModel.launch(Issues in running gen_MyModel.launch)
Unable to run gen_MyModel.launch [message #897163] Sun, 22 July 2012 19:47 Go to next message
Anil Bhatia is currently offline Anil BhatiaFriend
Messages: 23
Registered: February 2011
Junior Member
Setup information:
Installed 0.2.0 M2 release of eTrice:
http://download.eclipse.org/etrice/updates/milestones/S-0.2.0-M2.201205211000

This required 'bundle org.eclipse.xtext.xtend2.lib 2.1.1'.

so, I also provided "http_colon_//download.itemis.de/updates/" and checked "Contact all update sites during install to find required software".
This perhaps led to latest xtext (2.3) getting installed, but I guess that should not matter, because installation finished without any problem.

Problem Description:
I am attempting "Hello world" example given at http://www.eclipse.org/etrice/documentation/doc/etrice.html
When I attempt to run gen_MyModel.launch, it is not able to locate org.eclipse.xtext.parser.IEncodingProvider implementation.

I get the following exact error message:

An internal error occurred during: "Launching gen_MyModel".
Guice creation errors:

1) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
while locating org.eclipse.xtext.parser.IEncodingProvider
for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
for field at org.eclipse.etrice.generator.base.AbstractGenerator.fileAccess(Unknown Source)
at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:37)

2) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
while locating org.eclipse.xtext.parser.IEncodingProvider
for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
for field at org.eclipse.etrice.generator.doc.gen.InstanceDiagramGen.fileAccess(Unknown Source)
while locating org.eclipse.etrice.generator.doc.gen.InstanceDiagramGen
for field at org.eclipse.etrice.generator.doc.gen.MainGen.instanceDiagramGen(Unknown Source)
while locating org.eclipse.etrice.generator.doc.gen.MainGen
for field at org.eclipse.etrice.generator.java.Main.mainDocGenerator(Unknown Source)
at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:37)

3) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
while locating org.eclipse.xtext.parser.IEncodingProvider
for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
for field at org.eclipse.etrice.generator.generic.PrepareFileSystem.fileAccess(Unknown Source)
while locating org.eclipse.etrice.generator.generic.PrepareFileSystem
for field at org.eclipse.etrice.generator.doc.gen.MainGen.prepFS(Unknown Source)
while locating org.eclipse.etrice.generator.doc.gen.MainGen
for field at org.eclipse.etrice.generator.java.Main.mainDocGenerator(Unknown Source)
at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:37)

4) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
while locating org.eclipse.xtext.parser.IEncodingProvider
for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
for field at org.eclipse.etrice.generator.doc.gen.DocGen.fileAccess(Unknown Source)
while locating org.eclipse.etrice.generator.doc.gen.DocGen
for field at org.eclipse.etrice.generator.doc.gen.MainGen.docGen(Unknown Source)
while locating org.eclipse.etrice.generator.doc.gen.MainGen
for field at org.eclipse.etrice.generator.java.Main.mainDocGenerator(Unknown Source)
at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:37)

5) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
while locating org.eclipse.xtext.parser.IEncodingProvider
for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
for field at org.eclipse.etrice.generator.java.gen.DataClassGen.fileAccess(Unknown Source)
while locating org.eclipse.etrice.generator.java.gen.DataClassGen
for field at org.eclipse.etrice.generator.java.gen.MainGen.dataClassGen(Unknown Source)
at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:38)

6) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
while locating org.eclipse.xtext.parser.IEncodingProvider
for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
for field at org.eclipse.etrice.generator.java.gen.ProtocolClassGen.fileAccess(Unknown Source)
while locating org.eclipse.etrice.generator.java.gen.ProtocolClassGen
for field at org.eclipse.etrice.generator.java.gen.MainGen.protocolClassGen(Unknown Source)
at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:38)

7) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
while locating org.eclipse.xtext.parser.IEncodingProvider
for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
for field at org.eclipse.etrice.generator.java.gen.ActorClassGen.fileAccess(Unknown Source)
while locating org.eclipse.etrice.generator.java.gen.ActorClassGen
for field at org.eclipse.etrice.generator.java.gen.MainGen.actorClassGen(Unknown Source)
at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:38)

Cool No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
while locating org.eclipse.xtext.parser.IEncodingProvider
for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
for field at org.eclipse.etrice.generator.java.gen.SubSystemClassGen.fileAccess(Unknown Source)
while locating org.eclipse.etrice.generator.java.gen.SubSystemClassGen
for field at org.eclipse.etrice.generator.java.gen.MainGen.subsystemClassGen(Unknown Source)
at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:38)

9) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
while locating org.eclipse.xtext.parser.IEncodingProvider
for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
for field at org.eclipse.etrice.generator.java.gen.SubSystemRunnerGen.fileAccess(Unknown Source)
while locating org.eclipse.etrice.generator.java.gen.SubSystemRunnerGen
for field at org.eclipse.etrice.generator.java.gen.MainGen.subsystemRunnerGen(Unknown Source)
at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:38)

10) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
while locating org.eclipse.xtext.parser.IEncodingProvider
for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
for field at org.eclipse.etrice.generator.generic.PrepareFileSystem.fileAccess(Unknown Source)
while locating org.eclipse.etrice.generator.generic.PrepareFileSystem
for field at org.eclipse.etrice.generator.java.gen.MainGen.prepFS(Unknown Source)
at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:38)

10 errors

Re: Unable to run gen_MyModel.launch [message #897198 is a reply to message #897163] Mon, 23 July 2012 06:42 Go to previous messageGo to next message
Henrik Rentz-Reichert is currently offline Henrik Rentz-ReichertFriend
Messages: 220
Registered: July 2009
Senior Member
Hi Anil,

we haven't been aware of this problem until last week when we realized that also our build process at eclipse.org picks up version
2.3 of Xtext.
All people who currently use eTrice have Xtext 2.1.1 installed and thus had no problems.
This is what I also recommend to you.

Please un-install the Xtext 2.3 version (you can do so by choosing Help > About Eclipse > Installation Details, then in the
"Installed Software" tab mark all Xtext, Xtend and Xbase features, then press Uninstall...).
After that you can install Xtext 2.1.1 from
http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/

Sorry for the inconvenience.

-Henrik


Am 22.07.2012 21:47, schrieb Anil Bhatia:
> Setup information:
> Installed 0.2.0 M2 release of eTrice:
> http://download.eclipse.org/etrice/updates/milestones/S-0.2.0-M2.201205211000
>
> This required 'bundle org.eclipse.xtext.xtend2.lib 2.1.1'.
>
> so, I also provided "http_colon_//download.itemis.de/updates/" and checked "Contact all update sites during install to find
> required software".
> This perhaps led to latest xtext (2.3) getting installed, but I guess that should not matter, because installation finished
> without any problem.
>
> Problem Description:
> I am attempting "Hello world" example given at http://www.eclipse.org/etrice/documentation/doc/etrice.html
> When I attempt to run gen_MyModel.launch, it is not able to locate org.eclipse.xtext.parser.IEncodingProvider implementation.
> I get the following exact error message:
>
> An internal error occurred during: "Launching gen_MyModel".
> Guice creation errors:
>
> 1) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
> while locating org.eclipse.xtext.parser.IEncodingProvider
> for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
> while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
> for field at org.eclipse.etrice.generator.base.AbstractGenerator.fileAccess(Unknown Source)
> at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:37)
>
> 2) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
> while locating org.eclipse.xtext.parser.IEncodingProvider
> for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
> while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
> for field at org.eclipse.etrice.generator.doc.gen.InstanceDiagramGen.fileAccess(Unknown Source)
> while locating org.eclipse.etrice.generator.doc.gen.InstanceDiagramGen
> for field at org.eclipse.etrice.generator.doc.gen.MainGen.instanceDiagramGen(Unknown Source)
> while locating org.eclipse.etrice.generator.doc.gen.MainGen
> for field at org.eclipse.etrice.generator.java.Main.mainDocGenerator(Unknown Source)
> at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:37)
>
> 3) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
> while locating org.eclipse.xtext.parser.IEncodingProvider
> for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
> while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
> for field at org.eclipse.etrice.generator.generic.PrepareFileSystem.fileAccess(Unknown Source)
> while locating org.eclipse.etrice.generator.generic.PrepareFileSystem
> for field at org.eclipse.etrice.generator.doc.gen.MainGen.prepFS(Unknown Source)
> while locating org.eclipse.etrice.generator.doc.gen.MainGen
> for field at org.eclipse.etrice.generator.java.Main.mainDocGenerator(Unknown Source)
> at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:37)
>
> 4) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
> while locating org.eclipse.xtext.parser.IEncodingProvider
> for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
> while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
> for field at org.eclipse.etrice.generator.doc.gen.DocGen.fileAccess(Unknown Source)
> while locating org.eclipse.etrice.generator.doc.gen.DocGen
> for field at org.eclipse.etrice.generator.doc.gen.MainGen.docGen(Unknown Source)
> while locating org.eclipse.etrice.generator.doc.gen.MainGen
> for field at org.eclipse.etrice.generator.java.Main.mainDocGenerator(Unknown Source)
> at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:37)
>
> 5) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
> while locating org.eclipse.xtext.parser.IEncodingProvider
> for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
> while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
> for field at org.eclipse.etrice.generator.java.gen.DataClassGen.fileAccess(Unknown Source)
> while locating org.eclipse.etrice.generator.java.gen.DataClassGen
> for field at org.eclipse.etrice.generator.java.gen.MainGen.dataClassGen(Unknown Source)
> at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:38)
>
> 6) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
> while locating org.eclipse.xtext.parser.IEncodingProvider
> for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
> while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
> for field at org.eclipse.etrice.generator.java.gen.ProtocolClassGen.fileAccess(Unknown Source)
> while locating org.eclipse.etrice.generator.java.gen.ProtocolClassGen
> for field at org.eclipse.etrice.generator.java.gen.MainGen.protocolClassGen(Unknown Source)
> at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:38)
>
> 7) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
> while locating org.eclipse.xtext.parser.IEncodingProvider
> for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
> while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
> for field at org.eclipse.etrice.generator.java.gen.ActorClassGen.fileAccess(Unknown Source)
> while locating org.eclipse.etrice.generator.java.gen.ActorClassGen
> for field at org.eclipse.etrice.generator.java.gen.MainGen.actorClassGen(Unknown Source)
> at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:38)
>
> 8) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
> while locating org.eclipse.xtext.parser.IEncodingProvider
> for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
> while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
> for field at org.eclipse.etrice.generator.java.gen.SubSystemClassGen.fileAccess(Unknown Source)
> while locating org.eclipse.etrice.generator.java.gen.SubSystemClassGen
> for field at org.eclipse.etrice.generator.java.gen.MainGen.subsystemClassGen(Unknown Source)
> at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:38)
>
> 9) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
> while locating org.eclipse.xtext.parser.IEncodingProvider
> for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
> while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
> for field at org.eclipse.etrice.generator.java.gen.SubSystemRunnerGen.fileAccess(Unknown Source)
> while locating org.eclipse.etrice.generator.java.gen.SubSystemRunnerGen
> for field at org.eclipse.etrice.generator.java.gen.MainGen.subsystemRunnerGen(Unknown Source)
> at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:38)
>
> 10) No implementation for org.eclipse.xtext.parser.IEncodingProvider was bound.
> while locating org.eclipse.xtext.parser.IEncodingProvider
> for field at org.eclipse.xtext.generator.JavaIoFileSystemAccess.encodingProvider(Unknown Source)
> while locating org.eclipse.xtext.generator.JavaIoFileSystemAccess
> for field at org.eclipse.etrice.generator.generic.PrepareFileSystem.fileAccess(Unknown Source)
> while locating org.eclipse.etrice.generator.generic.PrepareFileSystem
> for field at org.eclipse.etrice.generator.java.gen.MainGen.prepFS(Unknown Source)
> at org.eclipse.etrice.generator.java.setup.GeneratorModule.configure(GeneratorModule.java:38)
>
> 10 errors
>
>
Re: Unable to run gen_MyModel.launch [message #897233 is a reply to message #897198] Mon, 23 July 2012 10:18 Go to previous messageGo to next message
Anil Bhatia is currently offline Anil BhatiaFriend
Messages: 23
Registered: February 2011
Junior Member
Hi Henric,

Thanks for quick and precise response.
I am able to proceed with the example after following your recommendation.

Just another question...
While the documentation talks about being able to debug the model execution using state machine animation, I am not really able to get the exact steps on how to do it. Could you please point me to something for this as well...?

Thanks once again.
Regards
Anil
Re: Unable to run gen_MyModel.launch [message #898002 is a reply to message #897233] Wed, 25 July 2012 15:15 Go to previous message
Henrik Rentz-Reichert is currently offline Henrik Rentz-ReichertFriend
Messages: 220
Registered: July 2009
Senior Member
Hi Anil,

the documentation should definitely be clearer here.
The state machine animation is a feature we plan but which is not yet implemented and not even scheduled for implementation.

Together with data inspection/manipulation, message injection and sequence diagram generation the state machine animation is
something we will have in one of the next releases.
If you were volunteering for this we would discuss the concepts for runtime debugging support and guide you.

-Henrik


Am 23.07.2012 12:18, schrieb Anil Bhatia:
> Hi Henric,
>
> Thanks for quick and precise response. I am able to proceed with the example after following your recommendation.
>
> Just another question...
> While the documentation talks about being able to debug the model execution using state machine animation, I am not really able to
> get the exact steps on how to do it. Could you please point me to something for this as well...?
>
> Thanks once again.
> Regards
> Anil
Previous Topic:Problem Install eTrice Nightly Build
Next Topic:message of type boolean?
Goto Forum:
  


Current Time: Fri Nov 28 23:10:06 GMT 2014

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

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