Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » no syntax highlighting and no code completion(in some eclipse installations there is no syntax highlighting and no code completion for xtext grammars)
no syntax highlighting and no code completion [message #552042] Tue, 10 August 2010 15:43 Go to next message
Hendrik Jan van Randen is currently offline Hendrik Jan van RandenFriend
Messages: 11
Registered: July 2009
Location: Netherlands
Junior Member
There's no syntax highlighting and no code completion for the xtext grammars that I create, not even for the default out-of-the-box example grammar (Greeting Hello).

This problem occurs in the Helios distribution
eclipse-SDK-3.6-xtext-1.0.0-win32.zip
which I downloaded 19 August 2010 from
http://xtext.itemis.com/xtext-language-development-framework /language=en/23947/downloads
Re: no syntax highlighting and no code completion [message #552068 is a reply to message #552042] Tue, 10 August 2010 16:40 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Did you try one of the examples, or the simple stub generated by the
wizard? Did you agree with downloading the addition antlr generator?

Sven

Am 8/10/10 5:43 PM, schrieb Hendrik Jan:
> There's no syntax highlighting and no code completion for the xtext
> grammars that I create, not even for the default out-of-the-box example
> grammar (Greeting Hello).
>
> This problem occurs in the Helios distribution
> eclipse-SDK-3.6-xtext-1.0.0-win32.zip
> which I downloaded 19 August 2010 from
> http://xtext.itemis.com/xtext-language-development-framework /language=en/23947/downloads
>
>


--
--
Need professional support for Xtext or other Eclipse Modeling technologies?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : http://blog.efftinge.de
Re: no syntax highlighting and no code completion [message #552089 is a reply to message #552068] Tue, 10 August 2010 18:54 Go to previous messageGo to next message
Hendrik Jan van Randen is currently offline Hendrik Jan van RandenFriend
Messages: 11
Registered: July 2009
Location: Netherlands
Junior Member
The problem occurs in the simple stub generated by the
wizard.

What can I do to agree with downloading the addition antlr generator?
Re: no syntax highlighting and no code completion [message #552103 is a reply to message #552042] Tue, 10 August 2010 20:57 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi,

where did you unzip your Eclipse distro. Please make sure that the
filenames don't get to long. Windows will not warn you if unzipping is
unsuccessful.

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

Am 10.08.10 17:43, schrieb Hendrik Jan:
> There's no syntax highlighting and no code completion for the xtext
> grammars that I create, not even for the default out-of-the-box example
> grammar (Greeting Hello).
>
> This problem occurs in the Helios distribution
> eclipse-SDK-3.6-xtext-1.0.0-win32.zip
> which I downloaded 19 August 2010 from
> http://xtext.itemis.com/xtext-language-development-framework /language=en/23947/downloads
>
>
Re: no syntax highlighting and no code completion [message #552151 is a reply to message #552103] Wed, 11 August 2010 06:20 Go to previous messageGo to next message
Hendrik Jan van Randen is currently offline Hendrik Jan van RandenFriend
Messages: 11
Registered: July 2009
Location: Netherlands
Junior Member
I unzipped it to f:\eclipse, thus that's not the cause of the problem.
Re: no syntax highlighting and no code completion [message #552157 is a reply to message #552151] Wed, 11 August 2010 06:40 Go to previous messageGo to next message
Hendrik Jan van Randen is currently offline Hendrik Jan van RandenFriend
Messages: 11
Registered: July 2009
Location: Netherlands
Junior Member
On my windows installation I resolved the problem by adding the Xtext nature to the project.

However, on my Linux installation (
eclipse-SDK-3.6-xtext-1.0.0-linux-gk.tar.gz
installed in /home/hj/eclipse)
the problem persists, even if I add the Xtext nature to the project.

What can/should I do to (agree with) download(ing) the addition antlr generator, which Sven mentioned?
Re: no syntax highlighting and no code completion [message #552176 is a reply to message #552157] Wed, 11 August 2010 07:19 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Henrik,

I'ld recommend to try the getting started guide from the docs.

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

Am 11.08.10 08:40, schrieb Hendrik Jan van Randen:
> On my windows installation I resolved the problem by adding the Xtext
> nature to the project.
>
> However, on my Linux installation (
> eclipse-SDK-3.6-xtext-1.0.0-linux-gk.tar.gz
> installed in /home/hj/eclipse)
> the problem persists, even if I add the Xtext nature to the project.
>
> What can/should I do to (agree with) download(ing) the addition antlr
> generator, which Sven mentioned?
Re: no syntax highlighting and no code completion [message #552188 is a reply to message #552176] Wed, 11 August 2010 08:11 Go to previous messageGo to next message
Hendrik Jan van Randen is currently offline Hendrik Jan van RandenFriend
Messages: 11
Registered: July 2009
Location: Netherlands
Junior Member
In
http://wiki.eclipse.org/Xtext/GettingStarted
there's no hint how to (agree with) download(ing) the addition antlr generator and how to configure it.

Where can I find that specific information?
Re: no syntax highlighting and no code completion [message #552192 is a reply to message #552188] Wed, 11 August 2010 08:16 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

if it works using windows and doesn't using linux - have you checked if Crtl+Space is highjacked by another application? Does Content Assist work in Java Files? I Know of some people that face this Problem on Linix in general with eclipse - not specific to Xtext.

Regards
Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: no syntax highlighting and no code completion [message #552342 is a reply to message #552188] Wed, 11 August 2010 19:10 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Hendrik,

you will be asked to download the antlr stuff when you first run the
language generator. Do you have the PDE installed?

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

Am 11.08.10 10:11, schrieb Hendrik Jan van Randen:
> In
> http://wiki.eclipse.org/Xtext/GettingStarted
> there's no hint how to (agree with) download(ing) the addition antlr
> generator and how to configure it.
>
> Where can I find that specific information?
Re: no syntax highlighting and no code completion [message #552521 is a reply to message #552192] Thu, 12 August 2010 13:16 Go to previous messageGo to next message
Hendrik Jan van Randen is currently offline Hendrik Jan van RandenFriend
Messages: 11
Registered: July 2009
Location: Netherlands
Junior Member
When through Help : Install New Software... I try to install from
http://download.itemis.com/updates/milestones
xtext-antlr 1.0.0RC4 S201006081336
Xtext Antlr Runtime Feature 1.0.0.v201006081336
Xtext Antlr SDK Feature 1.0.0.v201006081336
Xtext Antlr Source Feature 1.0.0.v201006081336
Eclipse gives the message
Cannot complete the request. See the error log for details.
"Xtext Antlr Runtime Feature" will be ignored because a newer version is already installed.
"Xtext Antlr SDK Feature" will be ignored because a newer version is already installed.
"Xtext Antlr Source Feature" will be ignored because a newer version is already installed.

And in the installation details I see:
Xtext Antlr SDK Feature 1.0.0.v201006151527 de.itemis.xtext.antlr.sdk.feature.group
Xtext Antlr Runtime Feature 1.0.0.v201006151527 de.itemis.xtext.antlr.feature.feature.group
Xtext Antlr Source Feature 1.0.0.v201006151527 de.itemis.xtext.antlr.feature.source.feature.group

Thus apparently it is not the missing antlr that causes the problem. Or should I use another update site?

Further, code completion and syntax highlighting work fine in the Eclipse Java editors on my Linux installation.
What else could be wrong...?
Re: no syntax highlighting and no code completion [message #555412 is a reply to message #552521] Thu, 26 August 2010 14:21 Go to previous messageGo to next message
Robin  is currently offline Robin Friend
Messages: 25
Registered: August 2010
Junior Member
Hi,

I have the same problem. I have installed eclipse-SDK-3.6-xtext-1.0.0-win32 and did the Getting Started Guide ( http://www.eclipse.org/Xtext/documentation/latest/xtext.html #getting-started) to the point "Run the Generated IDE Plug-in", where it says:

"Try it a bit and discover the default functionality for code completion ( CTRL SPACE even for cross-references), syntax highlighting, syntactic validation, linking errors, outline, find references etc."

Well, all of that doesn't work. Sad I followed the Getting Started guide word by word. What am I doing wrong?

I checked my Eclipse installation whether or not it has the Antlr feature and it says: Xtext Antlr SDK Feature 1.0.0.v201006151527.

Here's my complete Eclipse configuration:
http://dl.dropbox.com/u/5602365/eclipe-configuration.txt

Please help!

Regards,

Robin
Re: no syntax highlighting and no code completion [message #555442 is a reply to message #555412] Thu, 26 August 2010 15:19 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
Hi,

have you also tried starting off with the domain model example shipped
with Xtext?

Alex


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Re: no syntax highlighting and no code completion [message #555453 is a reply to message #555442] Thu, 26 August 2010 16:21 Go to previous messageGo to next message
Hendrik Jan van Randen is currently offline Hendrik Jan van RandenFriend
Messages: 11
Registered: July 2009
Location: Netherlands
Junior Member
When running the following scenario (on Mac OS X snow leopard) it works fine:

1. from http://xtext.itemis.com/xtext/language=en/23947/downloads download eclipse-SDK-3.6-xtext-1.0.0-macosx-cocoa.tar.gz
2. unpack it into dir applications
3. run eclipse, following instructions on http://wiki.eclipse.org/Xtext/GettingStarted:
default workspace /Users/hj/Documents/workspace
new : other... : text project, keep defaults
run GenerateMyDsl.mwe2, which gives the following output on the console in file gendsl log
export as deployable plugins
restart eclipse
open file Example.mydsl.
It asks ' Do you want the Xtext nature to be added to this project?', click Yes
Code completion and syntax highlighting work fine.
Re: no syntax highlighting and no code completion [message #555456 is a reply to message #555442] Thu, 26 August 2010 16:28 Go to previous message
Robin  is currently offline Robin Friend
Messages: 25
Registered: August 2010
Junior Member
Hi,

why - yes! I think I played around first with some example at first before I did the tutorial.

I have another project called
org.xtext.example.mydsl.MyDsl
org.xtext.example.mydsl.MyDsl.generator
org.xtext.example.mydsl.MyDsl.ui
in my workspace. I cannot remember how I created this actually. :/

Hmm, should a fresh workspace fix the problem then??

Regards,

Robin
Previous Topic:XText nature icon cannot be superseded
Next Topic:xText Grammer Scoping for SQL SELECT statement
Goto Forum:
  


Current Time: Fri Apr 19 21:55:44 GMT 2024

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

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

Back to the top