Author Topic: The 12 January 2010 build (6080) is out.  (Read 65670 times)

Offline critic

  • Multiple posting newcomer
  • *
  • Posts: 93
Re: The 12 January 2010 build (6080) is out.
« Reply #30 on: January 15, 2010, 11:03:50 am »
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:
Code
//-----------------------------------------------------------
// File: $ACTIVE_EDITOR_STEM).$ACTIVE_EDITOR_EXT)
// Date: $WEEKDAY), $TODAY)
//
// Author: Lastname A.A.
// Email: my@email.org
//-----------------------------------------------------------
to evaluate it to (for example):
Code
//-----------------------------------------------------------
// 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:
Code
//-----------------------------------------------------------
// 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: The 12 January 2010 build (6080) is out.
« Reply #31 on: January 15, 2010, 01:18:03 pm »
But `Default code` option in editor's preferences page doesn't support such expression:
Code
//	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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline adfm

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: The 12 January 2010 build (6080) is out.
« Reply #32 on: January 15, 2010, 01:33:00 pm »
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
« Last Edit: January 15, 2010, 01:52:34 pm by adfm »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: The 12 January 2010 build (6080) is out.
« Reply #33 on: January 15, 2010, 01:55:43 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline adfm

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: The 12 January 2010 build (6080) is out.
« Reply #34 on: January 15, 2010, 02:06:07 pm »
yep... quite big project here...

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

Thanks for the clarification.

Cheers

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: The 12 January 2010 build (6080) is out.
« Reply #35 on: January 15, 2010, 04:29:24 pm »
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 ©

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: The 12 January 2010 build (6080) is out.
« Reply #36 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
Kernel Extremist - PedroM power ©

Offline koso

  • Multiple posting newcomer
  • *
  • Posts: 58
Re: The 12 January 2010 build (6080) is out.
« Reply #37 on: January 16, 2010, 11:10:08 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.

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: The 12 January 2010 build (6080) is out.
« Reply #38 on: January 16, 2010, 11:25:01 pm »
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.
« Last Edit: January 16, 2010, 11:31:30 pm by Folco »
Kernel Extremist - PedroM power ©

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: The 12 January 2010 build (6080) is out.
« Reply #39 on: January 16, 2010, 11:39:15 pm »
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 ©

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: The 12 January 2010 build (6080) is out.
« Reply #40 on: January 16, 2010, 11:56:38 pm »
Have you run the src/update script?
(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!]

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: The 12 January 2010 build (6080) is out.
« Reply #41 on: January 17, 2010, 02:06:52 am »
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 ©

Offline blueshake

  • Regular
  • ***
  • Posts: 459
Re: The 12 January 2010 build (6080) is out.
« Reply #42 on: January 17, 2010, 02:46:54 am »
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?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: The 12 January 2010 build (6080) is out.
« Reply #43 on: January 17, 2010, 06:16:45 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.
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

untio

  • Guest
Re: The 12 January 2010 build (6080) is out.
« Reply #44 on: January 19, 2010, 05:36:09 pm »
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.