News:

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

Main Menu

The 12 January 2010 build (6080) is out.

Started by killerbot, January 12, 2010, 07:14:38 PM

Previous topic - Next topic

critic

Thanks for CC improvements. Go on in the same way, it's hard, but very useful work  :P.

I have some problems  :(.
I want automatical insertion of default code in new H and CPP files like in Anjuta IDE and others.
But `Default code` option in editor's preferences page doesn't support such expression:

//-----------------------------------------------------------
// File: $ACTIVE_EDITOR_STEM).$ACTIVE_EDITOR_EXT)
// Date: $WEEKDAY), $TODAY)
//
// Author: Lastname A.A.
// Email: my@email.org
//-----------------------------------------------------------

to evaluate it to (for example):

//-----------------------------------------------------------
// File: header_file.h
// Date: friday, 2010-01-15
//
// Author: Lastname A.A.
// Email: my@email.org
//----------------------------------------------------------


By the way, some of these items can be stored in project or IDE (the last is better, because only one developer use this copy of IDE):

  • author name
  • email
  • etc

Now I use the following abbreviation, but it doesn't work properly - problem with cursor positioning after insertion:

//-----------------------------------------------------------
// File: $ACTIVE_EDITOR_STEM).$ACTIVE_EDITOR_EXT)
// Date: $WEEKDAY), $TODAY)
//
// Author: Lastname A.A.
// Email: my@email.org
//-----------------------------------------------------------
|


Cursor appears in 5 symbols earlier, that is on the delimiter line.
But this variant is not handy - every time I create new file I need insert manually header. I think IDE can do this better.

Later. With regards, Mihail.

MortenMacFly

Quote from: critic on January 15, 2010, 11:03:50 AM
But `Default code` option in editor's preferences page doesn't support such expression:

// File: $ACTIVE_EDITOR_STEM).$ACTIVE_EDITOR_EXT)

The next nightly will have this implemented. It's committed to SVN trunk.
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]

adfm

#32
Hey

I have the same problem as binom25. When I upgraded to this build, the editor is very slow. I can't type 4 letters before it hangs for a couple of seconds! But it's not all, all the application is slow and it hangs often for some seconds....

I tried to downgrade it (copied the last build over this one - I know, I know!), but it kept the same behaviour.

Then I installed a fresh copy and upgraded it to this build and the results are the same.

Ideas? Some autocomplete feature of some sort? What kind of parsing is being done as I write in the editor!?

Cheers

MortenMacFly

Quote from: binom25 on January 14, 2010, 09:16:32 PM
editor works a bit slowly(it hangs) than early version of Codeblocks.
That's because of the new CC functionality "parse while typing". This can be configured in the next nightly. For large projects / files this can be turned off then.
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]

adfm

yep... quite big project here...

I'll wait (eagerly) for the next build .

Thanks for the clarification.

Cheers

Folco

I have seen that two options for TinyC Compiler seem to be the same : both set the -w switch. Is it normal ?

Kernel Extremist - PedroM power ©

Folco

I use Fedora 12, 64 bits.

I have recompiled Codeblocks using codeblocks version release, using the .cbp file of the current svn. No error neither warning.
Now I get a systematic crash when I try to open the dialog box Settings -> Compiler and Debugger.

Here's the log file generated by Codeblocks itself : http://www.mirari.fr/BGKI
Kernel Extremist - PedroM power ©

koso

Quote from: Folco on January 16, 2010, 10:51:25 PM
I use Fedora 12, 64 bits.

I have recompiled Codeblocks using codeblocks version release, using the .cbp file of the current svn. No error neither warning.
Now I get a systematic crash when I try to open the dialog box Settings -> Compiler and Debugger.

Here's the log file generated by Codeblocks itself : http://www.mirari.fr/BGKI

Try to backup and delete you profile config file (probably default.conf). Also have you recompiled all plugins? -> if there is not some version missmatch between recompiled, and previos versions of C::B or plugins.

Folco

#38
Ok, I do that and give feedback.

edit -> OK, I have deleted my ~/.codeblocks folder.
Then I run codeblocks. It detects correctly GCC/G++ (official Fedora package). I open an existing and very simple project. But I get always the same systematic crash when opening this dialog box.

I have installed the same nighty build on my Debian Lenny, using the repo provided by a member of this staff (?). I try with it and give feedback.


PS -> I hadn't recompiled any plugin. After having compiled, I just put the executable 'codeblocks' in /usr/bin, the two dll in /usr/lib64, and the 'share' folder in /usr/share. Then I have rebooted.
Kernel Extremist - PedroM power ©

Folco

I get a normal behavior under Debian Lenny 32 bits (Codeblocks build 6077).
But I always get this crash on my Fedora (Codeblocks build 6088), even after a reboot.

ps -> I have edited the post above, about the plug-in compilation and my way of installation.
Kernel Extremist - PedroM power ©

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Folco

No. Really sorry :(

I have downloaded fresh sources from svn, run the src/update script, compiled in the IDE, and now it works fine.
I think I didn't see that in the documentation. Thank you and sorry again
Kernel Extremist - PedroM power ©

blueshake

Quote from: MortenMacFly on January 15, 2010, 01:55:43 PM
Quote from: binom25 on January 14, 2010, 09:16:32 PM
editor works a bit slowly(it hangs) than early version of Codeblocks.
That's because of the new CC functionality "parse while typing". This can be configured in the next nightly. For large projects / files this can be turned off then.

@morten

when we type codes in the same line,the parser do not work in real-time except in different line.So the issue(a bit slowly) happened in the same line,I don't think it is someting related to real-time parse but something else.

Edit:
maybe we can use a timer here to avoid this issue.what is your comment?
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

MortenMacFly

Quote from: blueshake on January 17, 2010, 02:46:54 AM
So the issue(a bit slowly) happened in the same line,I don't think it is someting related to real-time parse but something else.
Quote from: binom25 on January 14, 2010, 09:16:32 PM
I'm doing copy and paste a large block code, editor works a bit slowly(it hangs) than early version of Codeblocks.
He said he's pasting a huge block of code. So for me it's not the same line... (and matches my experience, btw...)?!
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]

untio

Hello,
An issue that I see in the code completion is that if you declare a pointer to a struct in its definition:
typedef struct {
  int field;
  int field2;
} mystruct, *pmystruct;
Code completion does not work with variables of pmystruct type.
Forgive me if I have mistaken.