News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

The 07 January 2012 build (7678) is out.

Started by killerbot, January 07, 2012, 07:21:39 PM

Previous topic - Next topic

MortenMacFly

Quote from: LETARTARE on January 26, 2012, 04:12:10 PM
and on my pc too ...(r7715)
Right, I checked again and (apologies) I had it modified in my version, already addressing this behaviour. I've committed my changes now to SVN, try again with r7717. I was under the impression, Jens' commit addressed this issue, too.
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]

Jenna

Quote from: MortenMacFly on January 26, 2012, 03:45:27 PM
Quote from: stefanos_ on January 26, 2012, 03:37:16 PM
Just finished compiling the latest revision (7715)
Are you sure this revision:
http://svn.berlios.de/wsvn/codeblocks/?op=revision&rev=7655&peg=7715
...is incorporated? Because this is the actual fix. It works on windows. Maybe this is a platform related issue?
It works here on linux without problems.

LETARTARE

CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

Jenna

Quote from: MortenMacFly on January 26, 2012, 04:34:59 PM
Quote from: LETARTARE on January 26, 2012, 04:12:10 PM
and on my pc too ...(r7715)
Right, I checked again and (apologies) I had it modified in my version, already addressing this behaviour. I've committed my changes now to SVN, try again with r7717. I was under the impression, Jens' commit addressed this issue, too.

Our posts crossed.
As I wrote it has worked here on debian with the old code (without commit 7717), opening files with and stepping through the tree with the arrow-keys (up, down, left and right)
I compile the newest trunk and test whether it's still working.

neo1691

Any updates on my problems with the code completion problem?
i posted it a few days before?

MortenMacFly

Quote from: jens on January 26, 2012, 05:27:03 PM
I compile the newest trunk and test whether it's still working.
That would be wise, because after committing I realised why I didn't do it before: Because of the untested WXGTK part. Feel free to remove that if needed, the Windows part should be correct. I am working with this very long now. Keep in mind it's really not related to your commit, because it emulates an "item activated" event on ENTER. It may be (however), that in wx2.9.x this is supported natively.
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]

Jenna

Quote from: MortenMacFly on January 26, 2012, 08:18:21 PM
Quote from: jens on January 26, 2012, 05:27:03 PM
I compile the newest trunk and test whether it's still working.
That would be wise, because after committing I realised why I didn't do it before: Because of the untested WXGTK part. Feel free to remove that if needed, the Windows part should be correct. I am working with this very long now. Keep in mind it's really not related to your commit, because it emulates an "item activated" event on ENTER. It may be (however), that in wx2.9.x this is supported natively.
It still works, and a quick check don't show any differences.

ollydbg

Quote from: neo1691 on January 24, 2012, 08:01:47 PM
I am having problems with Code Completion.

Sometimes it shows the code, sometimes it does not.
For eg, if i include a header file it will show all the structures when i type them, then suddenly it will stop working!!

It also happens many time when i switch to default perspective!

We need code snippets and exact steps to produce such bugs (Also OS? Compiler? CB version? ...... Please ask a Good Question). Otherwise, I can do nothing. :)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Agetian

I also have problems with code completion on MS Windows Vista 32-bit, using Mingw GCC 4.6.1 (tdm-gcc) with the 7th January 2012 C::B SVN nightly (from this thread), under various circumstances - mostly either with custom GCC features or with complex C++ template classes. Here's one test case (with custom GCC extensions) in which it won't work:


typedef struct __attribute__((packed)) _PSTRUCT
{
   char a;
   char b;
   int c;
   char d;
} PSTRUCT;

int main()
{
   PSTRUCT p;
   p.


After typing the last dot after p, code completion box should open up, but it doesn't.
It looks like this particular case is a problem with parsing the GCC __attribute__ tag. Excluding it from the typedef makes the code completion work.

I also had an issue with code completion not popping up for certain complex (I think template-based) class declarations in C++, but sadly I can't reproduce them at the moment, I'll post a test case if and when I'm able to reproduce it again, it happened only once to me and I didn't bother too much cause I considered it to be minor enough.

- Agetian

MortenMacFly

Quote from: Agetian on January 27, 2012, 08:53:51 AM
Here's one test case (with custom GCC extensions) in which it won't work:

typedef struct __attribute__((packed)) _PSTRUCT

Should be fixed in SVN head. Thanks for providing a test case.
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]

xawari

I hate to say it, but...
I pressed ENTER in file browser tree on a file, "How do we open" dialog appeared, I've chosen "open inside cb editor" and... nothing happens. Moreover, pressing ENTER stops working at this moment. Forever. Double-clicking works.

Plus I have to favours to ask...
1. the "current file close" button at the top-right corner like in normal MDI apps - PELASE! :_( I'm so tired that I can't aim at those tiny tabs every time!  :'(

2. Is it possible to make the entire output window (the bottom panel) hide when ESC key is pressed in the editor (when no text is selected, no completion or other stuff is active)? (F2 is okay, but still...)
┌──────────────────────────────────────────────────────╖
in another thousand years we'll be machines or gods█
╘══════════════════════════════════════════════════════╝

Jenna

Quote from: xawari on January 27, 2012, 03:14:16 PM
I hate to say it, but...
I pressed ENTER in file browser tree on a file, "How do we open" dialog appeared, I've chosen "open inside cb editor" and... nothing happens. Moreover, pressing ENTER stops working at this moment. Forever. Double-clicking works.

Which version of C::B (this nightly ?), which OS ?
Works fine here on linux.

Quote from: xawari on January 27, 2012, 03:14:16 PM
Plus I have to favours to ask...
1. the "current file close" button at the top-right corner like in normal MDI apps - PELASE! :_( I'm so tired that I can't aim at those tiny tabs every time!  :'(
What do you want to say ?

Quote from: xawari on January 27, 2012, 03:14:16 PM
2. Is it possible to make the entire output window (the bottom panel) hide when ESC key is pressed in the editor (when no text is selected, no completion or other stuff is active)? (F2 is okay, but still...)

Does not make sense for me and I think this usage of the ESC key would not be obvious to anyone (except you).

stefanos_

Cannot compile the latest svn (7725) under GNU / Linux Debian wheezy.

In file included from parser/cclogger.cpp:10:0:
parser/cclogger.h:68:23: error: 'auto_ptr' is not a template
parser/cclogger.h:68:23: error: 'auto_ptr' in namespace 'std' does not name a type
parser/cclogger.h:68:5: error: friend declaration does not name a class or function
parser/cclogger.h:69:12: error: 'auto_ptr' in namespace 'std' does not name a type
parser/cclogger.h: In static member function 'static CCLogger* CCLogger::Get()':
parser/cclogger.h:29:14: error: 's_Inst' was not declared in this scope
parser/cclogger.h:31:16: error: 's_Inst' was not declared in this scope
parser/cclogger.cpp: At global scope:
parser/cclogger.cpp:12:1: error: 'auto_ptr' in namespace 'std' does not name a type
make[4]: *** [cclogger.lo] Error 1
make[4]: Leaving directory `/home/stefanos/svn_code/CodeBlocks/src/plugins/codecompletion'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/stefanos/svn_code/CodeBlocks/src/plugins/codecompletion'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/stefanos/svn_code/CodeBlocks/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/stefanos/svn_code/CodeBlocks/src'
make: *** [all-recursive] Error 1


Can someone please fix this issue and let me know so I can compile it?

Cheers

MortenMacFly

Quote from: stefanos_ on January 27, 2012, 05:25:50 PM
In file included from parser/cclogger.cpp:10:0:
parser/cclogger.h:68:23: error: 'auto_ptr' is not a template

Can someone please fix this issue and let me know so I can compile it?
Can you tell me what happens if you put the following line:
#include <memory> // auto_ptr
...in between:
#include <wx/string.h>
...and:
#include <prep.h> // nullptr
in cclogger.h?
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]

Biplab

Quote from: MortenMacFly on January 27, 2012, 05:38:21 PM
Quote from: stefanos_ on January 27, 2012, 05:25:50 PM
In file included from parser/cclogger.cpp:10:0:
parser/cclogger.h:68:23: error: 'auto_ptr' is not a template

Can someone please fix this issue and let me know so I can compile it?
Can you tell me what happens if you put the following line:
#include <memory> // auto_ptr
...in between:
#include <wx/string.h>
...and:
#include <prep.h> // nullptr
in cclogger.h?

Hi Morten,

I have already committed a fix for this in rev 7727. Just noticed it during compilation and immediately I committed that fix.
Be a part of the solution, not a part of the problem.