View previous topic :: View next topic |
Author |
Message |
raup-tier
Joined: 12 Jul 2008 Posts: 15 Location: Germany
|
Posted: Tue May 26, 2009 2:32 am Post subject: Descent on x86_64 gdc |
|
|
Hi,
i'm wondering why, descent is not able to do source browsing and syntax highlighting.
System:
Arch Linux x86_64
Eclipse 3.4.2
Descent newest
gdc-tango-dsss bundle from Tango
on my laptop
System:
Arch Linux x86
Eclipse 3.4.2
Descent newest
dmd-tango-dsss bundle from Tango
every thing works fine.
is there some problem with x86_64 systems or gdc?
or is this kind of behavoir a user error |
|
Back to top |
|
|
raup-tier
Joined: 12 Jul 2008 Posts: 15 Location: Germany
|
Posted: Thu May 28, 2009 4:48 pm Post subject: |
|
|
okay, i installed gdc on my notebook, too, and syntax highlighting
and code-browsing are gone.
after setting the compiler Version-Flags in
window->preferences->D->Compiler
syntax highlighting and code-browsing are still not working.
is there any diffierences between the dmd and gdc tango libary
that kills descents ability of sourcebrowsing and syntaxhighlighting? |
|
Back to top |
|
|
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Fri May 29, 2009 7:18 am Post subject: |
|
|
You say you don't have syntax highlighting? Mmm... You can do several things.
First, if you right click a D file and select Open With -> ... do you have the "D Editor" option? If yes, click on it. Syntax highlighting (at least for keywords!) should appear.
If that doesn't work, check if there's something in the Error Log (Window -> Show View -> General -> Error Log in Eclipse 3.4). |
|
Back to top |
|
|
raup-tier
Joined: 12 Jul 2008 Posts: 15 Location: Germany
|
Posted: Sat May 30, 2009 5:37 am Post subject: |
|
|
keywords are highlighted;
error log says nothing;
yes, d-editor option is there, and file is opened with it;
but syntax highlighting is not as importand as auto-complition/sourcebrowsing
this simple does not work.
it has to do something with the gdc-tango libary, because on x86 Eclipse Linux and X86_64 Eclipse Linux, highlighting and auto-completetion refuses to work after switching to gdc-tango libary. |
|
Back to top |
|
|
raup-tier
Joined: 12 Jul 2008 Posts: 15 Location: Germany
|
Posted: Sat May 30, 2009 5:43 am Post subject: |
|
|
muahahhah ..... found the difference between dmd-tango and gdc-tango libary:
gdc-tango has no "object.di"!
after coping dmd-tango's object.di in to gdc-tango's folder, descent works fine and no error like missing auto-completion and highlighting occures.
so, why do descent need object.di to be there for proper working? |
|
Back to top |
|
|
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Sat May 30, 2009 10:51 am Post subject: |
|
|
Because object.di (or object.d) defines the class Object and other classes (ClassInfo, TypeInfo, etc.), which are fundamental for the semantic analysis. Without these, nothing can be done.
Where is Object defined in gdc-tango? If I remember correctly in DMDs front-end code it's hardcoded to search for an "object.d" or "object.di" file for these definitions. |
|
Back to top |
|
|
raup-tier
Joined: 12 Jul 2008 Posts: 15 Location: Germany
|
Posted: Mon Jun 01, 2009 2:30 am Post subject: |
|
|
...gdc/ include /d / 4.1.2
contains object.d and object.d.phobos
...gdc/ include / d
is in buildpath,
you mentioned that the location of object.d is hardcoded, so, adding gdc/ include /d / 4.1.2 to the buildpath too, solves the problem
a non static method for object.d lookup would be nice, or a hint for gdc-tango users using decent... |
|
Back to top |
|
|
|