www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Settings in CodeBlocks -- D Language

reply David Wang <osx.david live.com> writes:
Dear all,

The CodeBlocks IDE supports DMD compiler and I've described the proper
settings for Codeblocks using in D Language.

Please visit the WiKi page here:

http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler


BTW, the "Code Completion for D" isn't quite good now, and in future it will
be improved.



Best regards.
David.
Apr 05 2011
next sibling parent reply Andrew Wiley <debio264 gmail.com> writes:
On Tue, Apr 5, 2011 at 11:47 PM, David Wang <osx.david live.com> wrote:
 Dear all,

 The CodeBlocks IDE supports DMD compiler and I've described the proper
 settings for Codeblocks using in D Language.

 Please visit the WiKi page here:

 http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler


 BTW, the "Code Completion for D" isn't quite good now, and in future it will
 be improved.
My understanding is that Code::Blocks only supports code completion for D because their fuzzy C++ parser can sometimes parse D successfully, and that they don't plan to support D directly. Has this changed?
Apr 05 2011
parent reply David Wang <osx.david live.com> writes:
==============
My understanding is that Code::Blocks only supports code
completion for D because their fuzzy C++ parser can sometimes
parse D successfully, and that they don't plan to support D
directly. Has this changed?
==============

Acturally everytime when CodeBlocks parses D will be failed.  :(

And for there is no code developer of CodeBlocks using and familar
with D Language, so the support for D will stop here and there's
no further plan in a time.

(CodeBlocks was written in C++ with wxWidgets libraries.)

So, I made a personal decision that I'll start to learn C++
language (I only knows a littel bit C Language :) ), and when I
achive the providing patches level, I'll try to submit patches to
Codeblocks core develop team to improve the D Language support.

I think the biggest problem in CodeBlocks for D Language now is
the 'Code Completion' problem.

I've communicated with them, and I got the feedback as bellow:

**********
There are two major parts of CC(Code Completion), the first part
(we say part A) was collecting tags. we use the parser class and
other helper classes(all the code was under parser- subfolder as
you said) to analyze all the source code, then we store all the
tags(some times, we call Tokens).

The second part( we say Part B) was doing the completion and other
UI tips( eg, when the mouse hover on some ids, there is a function
tip or when you enter some text, then there is a completion list
prompt below your caret), it need to resolve the current code
statement syntax.

Currently CC's code is quite mixing. So, if you want to implement
a D language, you need to implement a part A for D language, and
only modify some code in Part B.
**********

So, if someone be kindly and have the ability to modify the
CodeBlocks source code (svn checkout
http://svn.berlios.de/svnroot/repos/codeblocks/trunk), will be a
great help in extending D's IDE for cross-platform area.
(CodeBlocks supports Linux, Windows, OS X, FreeBSD, etc.)



Best reagards.
David.
Apr 05 2011
next sibling parent reply Sam Hu <samhudotsamhu gmail.com> writes:
David Wang Wrote:

 ==============
 My understanding is that Code::Blocks only supports code
 completion for D because their fuzzy C++ parser can sometimes
 parse D successfully, and that they don't plan to support D
 directly. Has this changed?
 ==============
 
 Acturally everytime when CodeBlocks parses D will be failed.  :(
 
 And for there is no code developer of CodeBlocks using and familar
 with D Language, so the support for D will stop here and there's
 no further plan in a time.
 
 (CodeBlocks was written in C++ with wxWidgets libraries.)
 
 So, I made a personal decision that I'll start to learn C++
 language (I only knows a littel bit C Language :) ), and when I
 achive the providing patches level, I'll try to submit patches to
 Codeblocks core develop team to improve the D Language support.
 
 I think the biggest problem in CodeBlocks for D Language now is
 the 'Code Completion' problem.
 
 I've communicated with them, and I got the feedback as bellow:
 
 **********
 There are two major parts of CC(Code Completion), the first part
 (we say part A) was collecting tags. we use the parser class and
 other helper classes(all the code was under parser- subfolder as
 you said) to analyze all the source code, then we store all the
 tags(some times, we call Tokens).
 
 The second part( we say Part B) was doing the completion and other
 UI tips( eg, when the mouse hover on some ids, there is a function
 tip or when you enter some text, then there is a completion list
 prompt below your caret), it need to resolve the current code
 statement syntax.
 
 Currently CC's code is quite mixing. So, if you want to implement
 a D language, you need to implement a part A for D language, and
 only modify some code in Part B.
 **********
 
 So, if someone be kindly and have the ability to modify the
 CodeBlocks source code (svn checkout
 http://svn.berlios.de/svnroot/repos/codeblocks/trunk), will be a
 great help in extending D's IDE for cross-platform area.
 (CodeBlocks supports Linux, Windows, OS X, FreeBSD, etc.)
 
 
 
 Best reagards.
 David.
Which version of C::B do you mean support d2 complier?I use C::B svn 7040 but it failed to compile a test d2 program following instructioin your provided in the link.Nothing happened to C::B,no compiler found. I don't know y.
Apr 05 2011
parent David Wang <osx.david live.com> writes:
Now I'm using the svn7075 (the latest is svn7076) in my Fedora14
x86_64 system(sometimes I also using it in XP).

If you use Windows, please follow the instruction:
http://wiki.codeblocks.org/index.php?
title=Installing_a_supported_compiler#Digital_Mars_D_Compiler_for_W
indows

If you use Linux, please follow the instruction:
http://wiki.codeblocks.org/index.php?
title=Installing_a_supported_compiler#Digital_Mars_D_Compiler_for_L
inux



Best regards.
David.
Apr 05 2011
prev sibling parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
David Wang wrote:
 ==============
 My understanding is that Code::Blocks only supports code
 completion for D because their fuzzy C++ parser can sometimes
 parse D successfully, and that they don't plan to support D
 directly. Has this changed?
 ==============

 Acturally everytime when CodeBlocks parses D will be failed.  :(

 And for there is no code developer of CodeBlocks using and familar
 with D Language, so the support for D will stop here and there's
 no further plan in a time.
This was discussed earlier on the Code::Blocks forum, too: http://forums.codeblocks.org/index.php/topic,12246.0.html It should still "work" with D and GDC, but will need to be developed and extended further to better support D2 and DMD.
 So, if someone be kindly and have the ability to modify the
 CodeBlocks source code (svn checkout
 http://svn.berlios.de/svnroot/repos/codeblocks/trunk), will be a
 great help in extending D's IDE for cross-platform area.
 (CodeBlocks supports Linux, Windows, OS X, FreeBSD, etc.)
Basically the first step is to introduce a "D" language, since it currently only knows C/C++... (The D support is treating itself like a "strange variant of a C++ compiler") Then write lexing/codecompletion/wizard code to handle it. --anders
Apr 06 2011
prev sibling parent reply Matthias Pleh <jens konrad.net> writes:
Am 06.04.2011 06:47, schrieb David Wang:
 Dear all,

 The CodeBlocks IDE supports DMD compiler and I've described the proper
 settings for Codeblocks using in D Language.

 Please visit the WiKi page here:

 http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler


 BTW, the "Code Completion for D" isn't quite good now, and in future it will
 be improved.



 Best regards.
 David.
Really cool, if someone could improve CodeBlocks in this direction. We would have a good crossplatform IDE. BTW: Would be good, if you also can keep our wiki for CodeBlocks up to date. http://prowiki.org/wiki4d/wiki.cgi?EditorSupport http://prowiki.org/wiki4d/wiki.cgi?EditorSupport/CodeBlocks °Matthias
Apr 06 2011
parent reply David Wang <osx.david live.com> writes:
===============
BTW:
Would be good, if you also can keep our wiki for CodeBlocks up to
date.


http://prowiki.org/wiki4d/wiki.cgi?EditorSupport
http://prowiki.org/wiki4d/wiki.cgi?EditorSupport/CodeBlocks

===============

Because I have a user ID in codeblocks.forum, so I can add the
settings for D into codeblocks's WiKi page.

I don't have a wiki4d ID, so I think the better way is to copy the
corresponding sections os codeblocks's WiKi page into the wiki4d
page by yourself or someone whom has an ID of wiki4d.


Best regards.
David.
Apr 06 2011
parent Matthias Pleh <jens konrad.net> writes:
Am 06.04.2011 09:32, schrieb David Wang:
 ===============
 BTW:
 Would be good, if you also can keep our wiki for CodeBlocks up to
 date.


 http://prowiki.org/wiki4d/wiki.cgi?EditorSupport
 http://prowiki.org/wiki4d/wiki.cgi?EditorSupport/CodeBlocks

 ===============

 Because I have a user ID in codeblocks.forum, so I can add the
 settings for D into codeblocks's WiKi page.

 I don't have a wiki4d ID, so I think the better way is to copy the
 corresponding sections os codeblocks's WiKi page into the wiki4d
 page by yourself or someone whom has an ID of wiki4d.


 Best regards.
 David.
There is no ID needed for wiki4d. Just enter your name as CamelCase (e.g.: DavidWang) without any password. °Matthias
Apr 06 2011