|
Re: [Xtext] Xtext conflits with Eclipse ANTLR IDE plugin [message #684149 is a reply to message #684027] |
Wed, 15 June 2011 04:58 |
Ed Willink Messages: 7670 Registered: July 2009 |
Senior Member |
|
|
Hi Steven
I think this is the same conflict that I've seen after checking out
Xtext plugins as projects with sources.
Xtext, or more likely com.google.inject, cannot co-exist as both
resource and plug-in.
I'd like to know the answer too. It makes debugging harder than it
should be.
Regards
Ed Willink
On 14/06/2011 22:37, Steven Derrien wrote:
> Hi,
>
> I have tried to install ANTLR IDE in my Eclipse environment
>
> http://antlrv3ide.sourceforge.net/
>
> since then I cannot use Xtext anymore, as all my MWE2/XTEXT generator
> flow end up with the folloing error :
>
> error(10): internal error:
> ../fr.irisa.cairn.gecos.s2s4hls.pragmas.xtext/src-gen/fr/irisa/cairn/gecos/s2s4hls/pragmas/parser/antlr/internal/InternalS2S4HSLPragma.g
> : java.lang.SecurityException: class
> "org.antlr.runtime.RecognizerSharedState"'s signer information does
> not match signer information of other classes in the same package.
>
> I first uninstalled the ANTLR plugin but it did not solve the problem,
> then I reinstalled a fresh Eclipse distribution without the Antlr
> plugin without more success, then rechecked out from my SVN an older
> version of my DSL project and it would still not work.
>
> The only solution I found was to switch to a new workspace and
> re-checkout my xtext project in this new workspace to make it work.
>
> Can someone shed some lights on this error, and how to dela with it ?
>
> Thanks a lot,
>
> Steven
>
>
|
|
|
Re: [Xtext] Xtext conflits with Eclipse ANTLR IDE plugin [message #684773 is a reply to message #684027] |
Thu, 16 June 2011 08:00 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Steven,
Xtext relies heavily on the internals of Antlr. That's why we require a
very specific version of the parser generator / parser runtime (3.2.0).
This bundle is shipped with Eclipse Xtext as a signed bundle. If you
have another antlr version installed and this one will be picked by
accident, chances are that the OSGi environment tries to load a class
from one bundle and another class from the other bundle, both classes
are in the same package but the second on is not signed. It is not
allowed to have signed classes and unsigned classes in the same package.
That's why you see the SecurityException.
You could try to be more explicit with the bundle dependencies. Don't
know whether that will help, though.
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 14.06.11 23:37, schrieb Steven Derrien:
> Hi,
>
> I have tried to install ANTLR IDE in my Eclipse environment
>
> http://antlrv3ide.sourceforge.net/
>
> since then I cannot use Xtext anymore, as all my MWE2/XTEXT generator
> flow end up with the folloing error :
>
> error(10): internal error:
> ../fr.irisa.cairn.gecos.s2s4hls.pragmas.xtext/src-gen/fr/irisa/cairn/gecos/s2s4hls/pragmas/parser/antlr/internal/InternalS2S4HSLPragma.g
> : java.lang.SecurityException: class
> "org.antlr.runtime.RecognizerSharedState"'s signer information does not
> match signer information of other classes in the same package.
>
> I first uninstalled the ANTLR plugin but it did not solve the problem,
> then I reinstalled a fresh Eclipse distribution without the Antlr plugin
> without more success, then rechecked out from my SVN an older version of
> my DSL project and it would still not work.
>
> The only solution I found was to switch to a new workspace and
> re-checkout my xtext project in this new workspace to make it work.
>
> Can someone shed some lights on this error, and how to dela with it ?
>
> Thanks a lot,
>
> Steven
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04205 seconds