Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Description Resource Path Location Type Bound mismatch: The generic method create(Class<T>) of
Description Resource Path Location Type Bound mismatch: The generic method create(Class<T>) of [message #1723434] Mon, 15 February 2016 16:18 Go to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
i have a problem with my dsl i think that it's an error with ( *)* please any help
i have this error
Description Resource Path Location Type Bound mismatch: The generic method create(Class<T>) of type
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class<T> [message #1723440 is a reply to message #1723434] Mon, 15 February 2016 17:33 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
Can you please give more context on how to reproduce this

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class<T> [message #1723527 is a reply to message #1723440] Tue, 16 February 2016 11:53 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
I write my DSL when i call an expression in an other on my DSL i got this error
error(10): internal error: Can't get property javaCompressedTransition using method get/isJavaCompressedTransition from org.antlr.analysis.DFA instance : java.lang.OutOfMemoryError: Java heap space
java.lang.String.<init>(Unknown Source)
java.lang.StringBuffer.toString(Unknown Source)
org.antlr.analysis.DFA.encodeIntAsCharEscape(DFA.java:728)
org.antlr.analysis.DFA.getRunLengthEncoding(DFA.java:447)
org.antlr.analysis.DFA.getJavaCompressedTransition(DFA.java:399)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.antlr.stringtemplate.language.ASTExpr.invokeMethod(ASTExpr.java:563)
org.antlr.stringtemplate.language.ASTExpr.rawGetObjectProperty(ASTExpr.java:513)
org.antlr.stringtemplate.language.ASTExpr.getObjectProperty(ASTExpr.java:420)
org.antlr.stringtemplate.language.ActionEvaluator.attribute(ActionEvaluator.java:346)
org.antlr.stringtemplate.language.ActionEvaluator.expr(ActionEvaluator.java:131)
org.antlr.stringtemplate.language.ActionEvaluator.templateApplication(ActionEvaluator.java:211)
org.antlr.stringtemplate.language.ActionEvaluator.expr(ActionEvaluator.java:121)
org.antlr.stringtemplate.language.ActionEvaluator.action(ActionEvaluator.java:79)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:152)
org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:714)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:722)
org.antlr.stringtemplate.language.ASTExpr.writeAttribute(ASTExpr.java:659)
org.antlr.stringtemplate.language.ActionEvaluator.action(ActionEvaluator.java:81)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:152)
org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:714)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:722)
org.antlr.stringtemplate.language.ASTExpr.writeAttribute(ASTExpr.java:659)
org.antlr.stringtemplate.language.ActionEvaluator.action(ActionEvaluator.java:81)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:152)
org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:714)
org.antlr.codegen.CodeGenerator.write(CodeGenerator.java:1132)
org.antlr.codegen.Target.genRecognizerFile(Target.java:94)
org.antlr.codegen.CodeGenerator.genRecognizer(CodeGenerator.java:439)
91214 [main] INFO .emf.mwe2.runtime.workflow.Workflow - Done.
i don't no what is the problem but i think that is with antlr
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class<T> [message #1723528 is a reply to message #1723527] Tue, 16 February 2016 11:56 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
please any help
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class<T> [message #1723529 is a reply to message #1723528] Tue, 16 February 2016 12:02 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
this error looks like your heap is to low.
did you try to increase xmx


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class<T> [message #1723537 is a reply to message #1723529] Tue, 16 February 2016 13:35 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
I'm a beginner so I don't no how to solve the problem Mr. Christian Dietrich who oncrese the xmx
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class<T> [message #1723545 is a reply to message #1723537] Tue, 16 February 2016 14:07 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
if you go to the launch config of the mwe2
you will find a -Xmx512m in Arguments/vm arguments.

increase that e.g. to -Xmx1G


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class<T> [message #1723573 is a reply to message #1723545] Tue, 16 February 2016 16:13 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
in Arguments/vm I find no argument
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&lt;T [message #1723574 is a reply to message #1723573] Tue, 16 February 2016 16:17 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
salha salha <forums-noreply@xxxxxxxx> wrote:
> in Arguments/vm I find no argument
>

Did you go to
Run
Runconfigurations...
Select the mwe2 in the tree
Arguments tab

Can you post a screenshot of this


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&lt;T [message #1723576 is a reply to message #1723574] Tue, 16 February 2016 16:32 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
i can't insert a screenshot because when I click insert image he asks image URL http://
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&lt;T [message #1723578 is a reply to message #1723576] Tue, 16 February 2016 16:34 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
No Message Body
  • Attachment: mwe2.png
    (Size: 91.56KB, Downloaded 111 times)

[Updated on: Tue, 16 February 2016 16:42]

Report message to a moderator

Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&lt;T [message #1723580 is a reply to message #1723578] Tue, 16 February 2016 16:42 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
find screenshots attached

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&lt;T [message #1723583 is a reply to message #1723580] Tue, 16 February 2016 16:47 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
yes i do that in the previous message i send the image i found the Arguments/vm but it's empty
  • Attachment: mwe2.png
    (Size: 91.56KB, Downloaded 99 times)

[Updated on: Tue, 16 February 2016 16:52]

Report message to a moderator

Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&lt;T [message #1723585 is a reply to message #1723583] Tue, 16 February 2016 16:51 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
yes but you can type -Xmx512M or -Xmx1G

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&lt;T [message #1723587 is a reply to message #1723585] Tue, 16 February 2016 16:54 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
what is the best -Xmx512M or -Xmx1G ?
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&lt;T [message #1723589 is a reply to message #1723587] Tue, 16 February 2016 16:55 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
try -Xmx512M first

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&lt;T [message #1723590 is a reply to message #1723589] Tue, 16 February 2016 16:56 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
512M = 512 megabyte
1G = 1 Gigabye

(RAM)


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&lt;T [message #1723621 is a reply to message #1723590] Tue, 16 February 2016 20:30 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
thanks a lot Mr. Christian Dietrich
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&lt;T [message #1723872 is a reply to message #1723621] Thu, 18 February 2016 16:14 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
in the first -Xmx512M works well but when i changed my grammer i get this error
warning(200): ../org.xtext.example.armani/src-gen/org/xtext/example/mydsl3/parser/antlr/internal/InternalMyDsl.g:1820:1: Decision can match input such as "';'" using multiple alternatives: 1, 2, 3
As a result, alternative(s) 3,2 were disabled for that input
warning(201): ../org.xtext.example.armani/src-gen/org/xtext/example/mydsl3/parser/antlr/internal/InternalMyDsl.g:1820:1: The following alternatives are unreachable: 2

warning(208): ../org.xtext.example.armani/src-gen/org/xtext/example/mydsl3/parser/antlr/internal/InternalMyDsl.g:7692:1: The following token definitions are unreachable: RULE_FLOAT,RULE_BOOLEAN,RULE_LONG,RULE_INT
41077 [main] INFO or.validation.JavaValidatorFragment - executing generate for org.eclipse.xtext.generator.validation.JavaValidatorFragment
warning(200): ../org.xtext.example.armani.ui/src-gen/org/xtext/example/mydsl3/ui/contentassist/antlr/internal/InternalMyDsl.g:7071:51: Decision can match input such as "';'" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
warning(208): ../org.xtext.example.armani.ui/src-gen/org/xtext/example/mydsl3/ui/contentassist/antlr/internal/InternalMyDsl.g:21149:1: The following token definitions are unreachable: RULE_FLOAT,RULE_BOOLEAN,RULE_LONG,RULE_INT
49262 [main] INFO .emf.mwe2.runtime.workflow.Workflow - Done.
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1723875 is a reply to message #1723872] Thu, 18 February 2016 16:23 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
This means you grammar is ambiguous. So you have to fix that

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1723991 is a reply to message #1723875] Fri, 19 February 2016 14:56 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
the problem is in the past it work fine but now no i don't indrestand it can be an error technique??
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724041 is a reply to message #1723991] Sat, 20 February 2016 06:50 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
hi can you share a minimal grammar that reproduces your problem?

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724078 is a reply to message #1724041] Sat, 20 February 2016 19:48 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
what is more good determinate the error or used ANTLRWORKS for derterminate the error??
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724079 is a reply to message #1724078] Sat, 20 February 2016 19:54 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
it always help to strip down the grammar to a mininmal set that reproduces the error

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724081 is a reply to message #1724079] Sat, 20 February 2016 20:12 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
i don't know how i detecte the error please have you a Link how to install the antlrworks ?
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724082 is a reply to message #1724081] Sat, 20 February 2016 20:18 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
i dont know any tutorial.
http://www.antlr3.org/works/


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724084 is a reply to message #1724082] Sat, 20 February 2016 21:48 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
i install antlrworks and i have this error

[Updated on: Sat, 20 February 2016 21:50]

Report message to a moderator

Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724085 is a reply to message #1724084] Sat, 20 February 2016 21:53 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
Sry i cannot help you with the usage or error marker in antlrworks. But i recommend to generate and use the debug grammar in antlrworks since it is a pure grammar

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724086 is a reply to message #1724085] Sat, 20 February 2016 21:54 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
Btw which xtext Version do you use

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724087 is a reply to message #1724086] Sat, 20 February 2016 21:59 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
PS and make sure you use antlrworks 3 . i dont remember this was a eclipse Plugin. I remember a standalone swing APP delivered AS jar

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724088 is a reply to message #1724086] Sat, 20 February 2016 22:00 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
Eclipse SDK

Version: 3.6.2
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724089 is a reply to message #1724088] Sat, 20 February 2016 22:02 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
I mean the Version Of xtext

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724090 is a reply to message #1724089] Sat, 20 February 2016 22:07 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
Xtext Runtime 1.0.2.v201102150722
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724091 is a reply to message #1724090] Sat, 20 February 2016 22:09 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
Hi i dont know if
fragment = parser.antlr.debugantlrgeneratorfragment {}
Already works in that Version to generate the debug grammar.

Is there a reason you use sich an old version


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724092 is a reply to message #1724091] Sat, 20 February 2016 22:13 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
ok i going to try reduce the version else i going to search the solution without antlrworks thanks

[Updated on: Sat, 20 February 2016 22:16]

Report message to a moderator

Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724093 is a reply to message #1724092] Sat, 20 February 2016 22:16 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
And AS said before. If you can post a grammar that reproduces the Probleme someone can have a look

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724094 is a reply to message #1724093] Sat, 20 February 2016 22:24 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
it's a big grammar


PropertyDeclaration:
'Property' parse_PropertyDescription=Parse_PropertyDescription ';'
;



Parse_PropertyDescription:
('Property')? P=ID
':' propertyTypeDescription+=PropertyTypeDescription
( '=' propertyValueDeclaration=PropertyValueDeclaration )?
( parse_PropertyDescription+=Parse_PropertyDescription
(';' parse_PropertyDescription+=Parse_PropertyDescription | ';' )*


)?
;



PropertyTypeDescription:
'Int' | 'Long' | 'Float' | 'Double' | 'String'
| 'true' | 'false' | nomm=ID
;

ParseRecordFieldDescription:
nomParseRecordField=ID (',' nnomParseRecordField+=ID )*
( ':' prop=PropertyTypeDescription )?
;



PropertyValueDeclaration:
INT | FLOAT | STRING
| acmeSetValue=AcmeSetValue | acmeSequenceValue=AcmeSequenceValue |
acmeRecordValue=AcmeRecordValue | nn=ID
;

[Updated on: Mon, 22 February 2016 11:47]

Report message to a moderator

Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724095 is a reply to message #1724094] Sat, 20 February 2016 22:30 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
No Message Body

[Updated on: Mon, 22 February 2016 11:44]

Report message to a moderator

Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724096 is a reply to message #1724095] Sat, 20 February 2016 22:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
Hi,

there are some things you should not do:

- use whitespace in keywords 'a b' => 'a' 'b'
- combine multiple keywords together '};' => '}' ';'

have a look at this grammar:


PropertiesBlock:
'Properties {'
( parse_PropertyDescription+=Parse_PropertyDescription
( ';' parse_PropertyDescription+=Parse_PropertyDescription | ';' )*
)?
'}' ( ';' )?
;

Parse_PropertyDescription:
('Property')? P=ID
':' propertyTypeDescription+=PropertyTypeDescription
( '=' propertyValueDeclaration=PropertyValueDeclaration )?
( parse_PropertyDescription+=Parse_PropertyDescription
(';' parse_PropertyDescription+=Parse_PropertyDescription | ';' )*


)?
;

PropertyValueDeclaration:
INT | STRING
;

PropertyTypeDescription:
'Int' | 'Long' | 'Float' | 'Double' | 'String'
| 'true' | 'false' | nomm=ID
;


and this debugantlrgrammar

/*
 * generated by Xtext 2.9.1
 */
grammar DebugInternalMyDsl;

// Rule PropertiesBlock
rulePropertiesBlock:
	'Properties {'
	(
		ruleParse_PropertyDescription
		(
			';'
			ruleParse_PropertyDescription
			    |
			';'
		)*
	)?
	'}'
	';'?
;

// Rule Parse_PropertyDescription
ruleParse_PropertyDescription:
	'Property'?
	RULE_ID
	':'
	rulePropertyTypeDescription
	(
		'='
		rulePropertyValueDeclaration
	)?
	(
		ruleParse_PropertyDescription
		(
			';'
			ruleParse_PropertyDescription
			    |
			';'
		)*
	)?
;

// Rule PropertyValueDeclaration
rulePropertyValueDeclaration:
	(
		RULE_INT
		    |
		RULE_STRING
	)
;

// Rule PropertyTypeDescription
rulePropertyTypeDescription:
	(
		'Int'
		    |
		'Long'
		    |
		'Float'
		    |
		'Double'
		    |
		'String'
		    |
		'true'
		    |
		'false'
		    |
		RULE_ID
	)
;

RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;

RULE_INT : ('0'..'9')+;

RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\'');

RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/' {skip();};

RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')? {skip();};

RULE_WS : (' '|'\t'|'\r'|'\n')+ {skip();};

RULE_ANY_OTHER : .;



Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724097 is a reply to message #1724096] Sat, 20 February 2016 22:59 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
all the optional ';' in PropertiesBlock and Parse_PropertyDescription
where do they belong to?


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724098 is a reply to message #1724096] Sat, 20 February 2016 23:00 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
why in the second grammar i don't have a problem and in the first i have??
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724099 is a reply to message #1724098] Sat, 20 February 2016 23:02 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
i post the second when i don't have problem and i use a false syntax 'aa' not 'aa 'a'
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724100 is a reply to message #1724099] Sat, 20 February 2016 23:09 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
he belongs to no party
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724101 is a reply to message #1724099] Sat, 20 February 2016 23:11 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
the keyword thing is just a general hint.

the important difference is

'>>'

in the Parse_PropertyDescription,
it is a clear terminating signal


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724102 is a reply to message #1724101] Sat, 20 February 2016 23:12 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
p.s. that is all i can do for you. for the rest you you to digg yourself
(e.g. by using the debug grammar in antlrworks)


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724103 is a reply to message #1724102] Sat, 20 February 2016 23:17 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
ok thanks a lot
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724107 is a reply to message #1724103] Sat, 20 February 2016 23:56 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
just a last question it's normal thing that same time given an errror when i ran the grammar and other times time no it's innomal thing !!!
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724115 is a reply to message #1724107] Sun, 21 February 2016 08:59 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
hi it depends on the situation. under some circumstances antlr decides to go the first path and mark the other paths as warning

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724233 is a reply to message #1724115] Mon, 22 February 2016 12:18 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
what is the type of this error?
2209 [main] ERROR erator.parser.antlr.AntlrToolFacade - de.itemis.xtext.antlr.toolrunner.AntlrToolRunner
java.lang.ClassNotFoundException: de.itemis.xtext.antlr.toolrunner.AntlrToolRunner
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.xtext.xtext.generator.parser.antlr.AntlrToolFacade.getToolClass(AntlrToolFacade.java:76)
at org.eclipse.xtext.xtext.generator.parser.antlr.AntlrToolFacade.isWorkable(AntlrToolFacade.java:164)
at org.eclipse.xtext.xtext.generator.parser.antlr.AbstractAntlrGeneratorFragment2.checkConfiguration(AbstractAntlrGeneratorFragment2.java:107)
at org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2.checkConfiguration(XtextAntlrGeneratorFragment2.java:1345)
at org.eclipse.xtext.xtext.generator.CompositeGeneratorFragment2.checkConfiguration(CompositeGeneratorFragment2.java:39)
at org.eclipse.xtext.xtext.generator.XtextGenerator.checkConfigurationInternal(XtextGenerator.java:126)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2.checkConfiguration(AbstractWorkflowComponent2.java:21)
at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.preInvoke(Mwe2Bridge.java:65)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.preInvoke(AbstractWorkflowComponent.java:197)
at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.preInvoke(AbstractCompositeWorkflowComponent.java:29)
at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:18)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:78)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:36)
2232 [main] ERROR erator.parser.antlr.AntlrToolFacade - de.itemis.xtext.antlr.toolrunner.AntlrToolRunner
java.lang.ClassNotFoundException: de.itemis.xtext.antlr.toolrunner.AntlrToolRunner
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.xtext.xtext.generator.parser.antlr.AntlrToolFacade.getToolClass(AntlrToolFacade.java:76)
at org.eclipse.xtext.xtext.generator.parser.antlr.AntlrToolFacade.isWorkable(AntlrToolFacade.java:164)
at org.eclipse.xtext.xtext.generator.parser.antlr.AbstractAntlrGeneratorFragment2.checkConfiguration(AbstractAntlrGeneratorFragment2.java:107)
at org.eclipse.xtext.xtext.generator.CompositeGeneratorFragment2.checkConfiguration(CompositeGeneratorFragment2.java:39)
at org.eclipse.xtext.xtext.generator.XtextGenerator.checkConfigurationInternal(XtextGenerator.java:126)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2.checkConfiguration(AbstractWorkflowComponent2.java:21)
at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.preInvoke(Mwe2Bridge.java:65)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.preInvoke(AbstractWorkflowComponent.java:197)
at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.preInvoke(AbstractCompositeWorkflowComponent.java:29)
at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:18)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:78)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:36)
2235 [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher - Problems running workflow org.xtext.example.mydsl.GenerateMyDsl:
[ERROR]:

*ATTENTION*
It is highly recommended to use ANTLR's parser generator (get it from 'http://xtext.itemis.com/').
As an alternative to ANTLR you could also use the alternative implementation shipped with Xtext.
To do so use the generator fragment 'org.eclipse.xtext.generator.parser.packrat.PackratParserFragment' in your mwe2 file instead.(Element: -UNKNOWN-; Reported by: XtextGenerator)
[ERROR]:

*ATTENTION*
It is highly recommended to use ANTLR's parser generator (get it from 'http://xtext.itemis.com/').
As an alternative to ANTLR you could also use the alternative implementation shipped with Xtext.
To do so use the generator fragment 'org.eclipse.xtext.generator.parser.packrat.PackratParserFragment' in your mwe2 file instead.(Element: -UNKNOWN-; Reported by: XtextGenerator)
java.lang.RuntimeException: Problems running workflow org.xtext.example.mydsl.GenerateMyDsl:
[ERROR]:

*ATTENTION*
It is highly recommended to use ANTLR's parser generator (get it from 'http://xtext.itemis.com/').
As an alternative to ANTLR you could also use the alternative implementation shipped with Xtext.
To do so use the generator fragment 'org.eclipse.xtext.generator.parser.packrat.PackratParserFragment' in your mwe2 file instead.(Element: -UNKNOWN-; Reported by: XtextGenerator)
[ERROR]:

*ATTENTION*
It is highly recommended to use ANTLR's parser generator (get it from 'http://xtext.itemis.com/').
As an alternative to ANTLR you could also use the alternative implementation shipped with Xtext.
To do so use the generator fragment 'org.eclipse.xtext.generator.parser.packrat.PackratParserFragment' in your mwe2 file instead.(Element: -UNKNOWN-; Reported by: XtextGenerator)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:104)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:78)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:36)
Caused by: java.lang.RuntimeException:
[ERROR]:

*ATTENTION*
It is highly recommended to use ANTLR's parser generator (get it from 'http://xtext.itemis.com/').
As an alternative to ANTLR you could also use the alternative implementation shipped with Xtext.
To do so use the generator fragment 'org.eclipse.xtext.generator.parser.packrat.PackratParserFragment' in your mwe2 file instead.(Element: -UNKNOWN-; Reported by: XtextGenerator)
[ERROR]:

*ATTENTION*
It is highly recommended to use ANTLR's parser generator (get it from 'http://xtext.itemis.com/').
As an alternative to ANTLR you could also use the alternative implementation shipped with Xtext.
To do so use the generator fragment 'org.eclipse.xtext.generator.parser.packrat.PackratParserFragment' in your mwe2 file instead.(Element: -UNKNOWN-; Reported by: XtextGenerator)
at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.handleIssues(Mwe2Bridge.java:56)
at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.preInvoke(Mwe2Bridge.java:66)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.preInvoke(AbstractWorkflowComponent.java:197)
at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.preInvoke(AbstractCompositeWorkflowComponent.java:29)
at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:18)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
... 4 more
Re: Description Resource Path Location Type Bound mismatch: The generic method create(Class&amp; [message #1724237 is a reply to message #1724233] Mon, 22 February 2016 12:52 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
this means antlr sdk/generator cannot be downloaded. it should ask for it and you can answer with y on console do download.
alternatively you can install it from p2 update site http://download.itemis.com/updates/releases/2.1.1/

(which xtext version do you use)


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:xtext 2.8 dependencies list
Next Topic:Understanding Rule Priority
Goto Forum:
  


Current Time: Mon Sep 20 11:13:47 GMT 2021

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

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

Back to the top