News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

New code completion plugin w/ refactoring

Started by artoj, February 08, 2006, 11:55:19 AM

Previous topic - Next topic

Ptomaine

Quote from: Takeshi Miya on March 21, 2006, 11:12:16 PM
Quote from: Ptomaine on March 21, 2006, 10:58:51 PM
Ok, guys.

First, I'm sorry, guys, for my offensive words towards Arto. I'm really sorry. I didn't mean that.

Well, let's imagine my situation.
I've started using CB about a half year ago. I've created a project and been working on it. I update CB bona fide, time to time with the nightly builds. And continue working. An IDE for me is a kind of a tool that helps me to EDIT my source code, BUILD it and DEBUG it in a convenient way. Generally, it must help me to work. When I said that there was no difference between RC2 and the most recent build then I've ment that the new versions hadn't facilitate eighter my EDITing or BUILDing or DEBUGing processes. For me, CB has changed visually for me but its new features didn't reflect on my work. For instance, I use cups to drink and I really do not care how it looks like. The main thing, the cup lets me drink - it is its general usage (it does the work it's supposed to do) :). So, here it is.

Anyway, guys, I love what you are doing. And sure, you want to turn CB into something amazing.
All my strict words were said because I want CB become something amazing and I care it.
I've just been frightened of myself when I wanted to change the IDE I love (CB) to UPP... so, I've seethed up...

I understand all the features you might want, but you must understand two things:
-C::B is under heavy development.
-Lack of human resources (time). All of this is being done by few people in spare time and in a free way.

What you can do from your position is: spread the word, so more developers can join the effort, report bugs, send patches, etc.

Particularly on CodeCompletion, right now, the only devs working (coding) on redesign it are TDragon and ddiego (in separate ways).

You might know that C++ parsing is hell, and so is CodeCompletion, along with threading, performance issues, etc.
It's not an easy topic.

Agreed (partially).

Takeshi Miya, look what only two men could create in a short time. Can you compare it to CB, please? (http://upp.sourceforge.net)

thomas

Well, one could argue a lot about UPP, not only the IDE but also the toolkit. There are quite a few things in UPP which give me a cold shiver... but that is far, far off-topic.

Actually this thread relates to the CC plugin. :)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

takeshimiya

Quote from: Ptomaine on March 21, 2006, 11:39:45 PM
Agreed (partially).

Takeshi Miya, look what only two men could create in a short time. Can you compare it to CB, please? (http://upp.sourceforge.net)

Sorry, but the only thing that Ultimate++ haves better than C::B is Code Completion/Code Navigation.
But it's only better, it's not the best. Their hand-crafted C++ parser (Assist++) is not the best, ie. one of the limitations is that it does not expand macro definition and scans only project sources (means standard platform headers are not scanned).

I've researched some months ago on full c++ parsers, and the only ones I have hopes for C::B are:
-CodeStore (currently developed by ddiego, using ANTLR++ and CTags, along with SQLite).
-TDragon's parser (current status unknown, but I think he's still developing it according a few mails with him).
-Eranif's parser (based on CTags and SQLite, already developed, would need porting to GCC and adaptation as a C::B plugin).

Regards,
Takeshi Miya

TDragon

Quote from: Takeshi Miya on March 22, 2006, 12:07:45 AM
-TDragon's parser (current status unknown, but I think he's still developing it according a few mails with him).
While I'm thinking about it, this seems an appropriate place for a quick update on that. :)

Yes, I'm still working on that as much as I can. I've currently retreated to considering everything that would be involved in writing a full incremental parser for C and C++, but as that would take many moons to reach a useful state I've also got a quick-fix on the burner that would be ready in a shorter time frame.

I also think that if a list were made of people's peeves with the current state of code completion, it would boil down to a majority of relatively easy fixes, plus
- templates and namespaces support, and
- system headers support,
which two could then be left for a later iteration.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Game_Ender

Full linux/threading stability is also a must.


TDragon

You mean, what about an incomplete structure that hasn't seen a release since 2004-08? :lol:
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Michael

Quote from: TDragon on March 23, 2006, 12:51:23 AM
You mean, what about an incomplete structure that hasn't seen a release since 2004-08? :lol:

Lack of volunteers :)?

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

mikeandmore

any how
Quote from: NELLYi really like it
i'll like it
i really like it
i really really like.

artoj

OK, time for another update.

I'm feeling a lot better now and I had the courage to drive a car again (which I thought I would never do).

I will start working with the code completion plugin after I've finished my current school projects (2 Java projects and 1 PHP & SQL project).

Since I haven't touched C/C++ code in about two months I need some time to get familiar with the code base again. I'll maybe start by fixing couple of those interface bugs that I've found ages ago.

I also need to read at least one book about refactoring to get better idea of the whole process.

        Arto

MortenMacFly

Quote from: artoj on April 20, 2006, 07:02:47 PM
I'm feeling a lot better now and I had the courage to drive a car again (which I thought I would never do). [...]
I'm glad you recovered well (I know what it's like after a car accident).
I'm even more glad you take another shot on the CC plugin. Just take your time - a good design is probably most important here which can only be achived by knowledge and good planning.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Michael

Quote from: artoj on April 20, 2006, 07:02:47 PM
I'm feeling a lot better now and I had the courage to drive a car again (which I thought I would never do).

I am also glad that you feel better :).

Quote from: artoj on April 20, 2006, 07:02:47 PM
I also need to read at least one book about refactoring to get better idea of the whole process.

A couple of links on refactoring that could help you:

http://developer.berlios.de/projects/cpprt/
http://www.refactoring.com/
http://en.wikipedia.org/wiki/Refactoring
http://www-128.ibm.com/developerworks/library/os-ecref/
http://www.cs.wayne.edu/~vip/RefactoringTools/
http://www.cis.uab.edu/info/faculty/bryant/ldta2003/3.pdf

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]