FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Descent on x86_64 gdc

 
Post new topic   Reply to topic     Forum Index -> Descent
View previous topic :: View next topic  
Author Message
raup-tier



Joined: 12 Jul 2008
Posts: 15
Location: Germany

PostPosted: Tue May 26, 2009 2:32 am    Post subject: Descent on x86_64 gdc Reply with quote

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? Question
or is this kind of behavoir a user error Shocked
Back to top
View user's profile Send private message
raup-tier



Joined: 12 Jul 2008
Posts: 15
Location: Germany

PostPosted: Thu May 28, 2009 4:48 pm    Post subject: Reply with quote

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? Shocked
Back to top
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Fri May 29, 2009 7:18 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
raup-tier



Joined: 12 Jul 2008
Posts: 15
Location: Germany

PostPosted: Sat May 30, 2009 5:37 am    Post subject: Reply with quote

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
View user's profile Send private message
raup-tier



Joined: 12 Jul 2008
Posts: 15
Location: Germany

PostPosted: Sat May 30, 2009 5:43 am    Post subject: Reply with quote

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? Confused
Back to top
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Sat May 30, 2009 10:51 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
raup-tier



Joined: 12 Jul 2008
Posts: 15
Location: Germany

PostPosted: Mon Jun 01, 2009 2:30 am    Post subject: Reply with quote

...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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Descent All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group