View previous topic :: View next topic |
Author |
Message |
rsl
Joined: 04 Jan 2006 Posts: 47
|
Posted: Tue Jan 24, 2006 10:23 pm Post subject: |
|
|
if I put code something like "pragma(lib,"test");"
It cause following warning message.
>test.lib
> Warning 2: File Not Found test.lib"
Current VSpluginD can't distinguish first Line and treated as Error.
and when this warning happened, dmd return success code, and it generate executable. it cause problem. |
|
Back to top |
|
|
drkIIRaziel
Joined: 21 Jan 2006 Posts: 15 Location: Athens,GR
|
Posted: Mon Feb 06, 2006 5:12 pm Post subject: |
|
|
TWState.cs file missing from svn |
|
Back to top |
|
|
rsl
Joined: 04 Jan 2006 Posts: 47
|
Posted: Tue Feb 07, 2006 12:57 am Post subject: |
|
|
Sorry, I added it.
TWState is passed to DSymbol::walk method, to gather module scope declaration. |
|
Back to top |
|
|
drkIIRaziel
Joined: 21 Jan 2006 Posts: 15 Location: Athens,GR
|
Posted: Tue Feb 07, 2006 3:25 am Post subject: |
|
|
After testing a bit the new intellisense i noticed that while imports for other
modules work , for modules you are in your project (no d std lib ect) you have to open em to get their functions/variables on the ctrl+space list.
Seems like the files are not parsed on project open but olny when the user opens em |
|
Back to top |
|
|
rsl
Joined: 04 Jan 2006 Posts: 47
|
Posted: Tue Feb 07, 2006 7:05 am Post subject: |
|
|
I know it's problem need to be solved.
Currently all source code under ImportPath is parsed in DLanguageServiceImpl constructor.
I'll add project file parsing operation here.
This parsing operation is executed when open d file first time.
it need to parse over 100 files. and it is burden.
It need to implement delay parsing mechanism.
only parse module declaration, and parse entire file when needed. |
|
Back to top |
|
|
drkIIRaziel
Joined: 21 Jan 2006 Posts: 15 Location: Athens,GR
|
Posted: Sat Feb 11, 2006 9:42 am Post subject: |
|
|
100 files ?you can parse em one time and then save the parsed result and some information to detect if the file chainged this will work perfectly for d stdlib and more..
Quote: |
This parsing operation is executed when open d file first time.
it need to parse over 100 files. and it is burden.
It need to implement delay parsing mechanism.
only parse module declaration, and parse entire file when needed.
|
How about using a background thread to do the parsing ? since many computers have hyperhtreading and soon dualcores this will icrease performace too [/quote] |
|
Back to top |
|
|
rsl
Joined: 04 Jan 2006 Posts: 47
|
Posted: Sat Feb 11, 2006 10:29 am Post subject: |
|
|
As you say, it don't need to parse entire phobos source every time , it rarely changed. so, it is enough to parse source once and save parse tree.
On my machine 171 files are parsed It takes,
DebugMode : 1723 milli second
ReleaseMode: 600 milli second
It'll be expected, If project, it contains over 1000 files or large file are opened, it 'll take more times to initial parse operation.
It need some mechanism in future that save parse tree data to file. like .ncb file.
Quote: | How about using a background thread to do the parsing ? since many computers have hyperhtreading and soon dualcores this will icrease performace too Smile |
Normal parsing operation is executed background thread already. |
|
Back to top |
|
|
drkIIRaziel
Joined: 21 Jan 2006 Posts: 15 Location: Athens,GR
|
Posted: Sat Feb 11, 2006 10:52 am Post subject: |
|
|
Quote: |
Normal parsing operation is executed background thread already.
|
Use more threads , Cpu usage doesn't go over 56? here (dualcore)
From what i understund you parse one file each time , you should try to parse 2-3 (on diferent thread each).
I hope this weekend i'l finaly have some more free time so i can actualy commint something... |
|
Back to top |
|
|
rsl
Joined: 04 Jan 2006 Posts: 47
|
Posted: Thu Feb 16, 2006 1:57 pm Post subject: |
|
|
Bug:
Wrong syntax colorization for string something like "__\"__".
it need to take into account escape sequence. |
|
Back to top |
|
|
rsl
Joined: 04 Jan 2006 Posts: 47
|
Posted: Sun Feb 19, 2006 7:01 am Post subject: |
|
|
Bug:
When run app from IDE. always executed under bin\Debug\ exe.
it need to be fixed. |
|
Back to top |
|
|
|