Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » warnings when importing xbase
warnings when importing xbase [message #759130] Sat, 26 November 2011 16:22 Go to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
Hi

I imported xbase in my DSL grammar (and deriving the grammar from xbase
as well), as suggested in the documentation:

import "http://www.eclipse.org/xtext/xbase/Xbase" as xbase

but I get this warning

The imported package is not on the classpath of this project which may
lead to follow up errors.

actually I have the dep in my project (it's basically the project
created through the wizard) and then I don't get problems either during
the generation... why this warning then?

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: warnings when importing xbase [message #759133 is a reply to message #759130] Sat, 26 November 2011 16:34 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

i cannot reproduce this with 2.1.0 nor with 2.1.1

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: warnings when importing xbase [message #759135 is a reply to message #759133] Sat, 26 November 2011 17:08 Go to previous messageGo to next message
Meinte Boersma is currently offline Meinte BoersmaFriend
Messages: 434
Registered: July 2009
Location: Leiden, Netherlands
Senior Member
Christian, are you on a nightly build? This is a bug that was introduced with 2.1.1 (I think): http://bugs.eclipse.org/bugs/show_bug.cgi?id=364522

Re: warnings when importing xbase [message #759136 is a reply to message #759135] Sat, 26 November 2011 17:25 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
No i am using org.eclipse.xtext_2.1.1.v201111141332.jar and it works on both mac and windows

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: warnings when importing xbase [message #759174 is a reply to message #759136] Sun, 27 November 2011 11:09 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 11/26/2011 06:25 PM, Christian Dietrich wrote:
> No i am using org.eclipse.xtext_2.1.1.v201111141332.jar and it works on
> both mac and windows

Christian, I'm using the same jar; could you please share the project
where you do not experience this behavior?

thanks
Lore

--
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: warnings when importing xbase [message #759176 is a reply to message #759174] Sun, 27 November 2011 11:19 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

just created a new project with the wizard and changed the grammar to

grammar org.xtext.example.mydsl5.MyDsl with org.eclipse.xtext.xbase.Xbase

import "http://www.eclipse.org/xtext/xbase/Xbase" as xbase

generate myDsl "http://www.xtext.org/example/mydsl5/MyDsl"

Model:
	greetings+=Greeting*;
	
Greeting:
	'Hello' name=ID "and" "do" do=XBlockExpression'!'


~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: warnings when importing xbase [message #759196 is a reply to message #759176] Sun, 27 November 2011 14:54 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 11/27/2011 12:19 PM, Christian Dietrich wrote:
> Hi,
>
> just created a new project with the wizard and changed the grammar to
>
> grammar org.xtext.example.mydsl5.MyDsl with org.eclipse.xtext.xbase.Xbase
>
> import "http://www.eclipse.org/xtext/xbase/Xbase" as xbase
>
> generate myDsl "http://www.xtext.org/example/mydsl5/MyDsl"
>
> Model:
> greetings+=Greeting*;
>
> Greeting:
> 'Hello' name=ID "and" "do" do=XBlockExpression'!'
>

Done! and get the warning... the only difference is that I'm running Linux?

cheers
Lore


--
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: warnings when importing xbase [message #759204 is a reply to message #759196] Sun, 27 November 2011 15:58 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
hmm works for me with linux x64 opendsk 6 as well

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: warnings when importing xbase [message #759384 is a reply to message #759204] Mon, 28 November 2011 14:08 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 11/27/2011 04:58 PM, Christian Dietrich wrote:
> hmm works for me with linux x64 opendsk 6 as well

mh... then I really don't know what it might be... probably because
I've upgraded from Xtext 2.0...Xtext 2.1...Xtext 2.1.1?

by the way, my linux is 32bit

Lore

--
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:Standalone Setup
Next Topic:Problem in Scoping with getting left side of a XBinaryOperation
Goto Forum:
  


Current Time: Tue Apr 16 21:42:32 GMT 2024

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

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

Back to the top