News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

The 20 February 2011 build (7017) is out.

Started by killerbot, February 20, 2011, 02:09:26 PM

Previous topic - Next topic

killerbot

Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml

Before you use a nightly make sure you understand how it works.

A link to the unicode windows wxWidget dll for Code::Blocks : http://prdownload.berlios.de/codeblocks/wxmsw28u_gcc_cb_wx2810_gcc451-TDM.7z

For those who might need this one (when no MingW installed on your system) : the mingw10m.dll : http://prdownload.berlios.de/codeblocks/mingwm10_gcc451-TDM.7z

The 20 February 2011 build is out.
  - Windows :
   http://prdownload.berlios.de/codeblocks/CB_20110220_rev7017_win32.7z
  - Linux :
   none

Resolved Fixed:


Regressions/Confirmed/Annoying/Common bugs:




Phenom


Jenna

Debian packages (binaries and sources) for 32-bit and 64-bit systems can be found in my repo.

Borr

added to the file line (/// TODO (Borr#1#): Test or // TODO: Test) and save the file.
click the Refresh button
to do list is still empty. although the 10.05 everything works

jccddd

A bug still exists with the message output.When you open a project and run cppcheck plugin or other tools,the output messages run out of the message window and cover up the editor area,you have to resize the ide to make everything clear.

Jenna

Quote from: jccddd on February 23, 2011, 08:59:55 AM
A bug still exists with the message output.When you open a project and run cppcheck plugin or other tools,the output messages run out of the message window and cover up the editor area,you have to resize the ide to make everything clear.
Which OS are you on ?
Can you provide a screenshot ?

jccddd

My os is windows 7 ultimate 32 bit.A snapshot is attached.

[attachment deleted by admin]

oBFusCATed

Hm, the problem with different aui style is present on windows, too, very strange.
Jens have you tried to understand why it is happening?
The bug is that the log's notebook uses different style, than the other two notebooks (see the attached screenshot).
(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!]

Jenna

Quote from: oBFusCATed on February 23, 2011, 02:44:48 PM
Hm, the problem with different aui style is present on windows, too, very strange.
Jens have you tried to understand why it is happening?
The bug is that the log's notebook uses different style, than the other two notebooks (see the attached screenshot).

I never saw this, are there any steps to reproduce this ?

oBFusCATed

I get this all the time with my gtk styled notebook, but I think the normal styles have the same problem.
(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!]

Phenom

Bug with CC:
Type a function declaration, e.g.:

void foo(int arg1, int arg2)


Inside the function body, type an argument's name and an '(' character. The call tip for that function is shown.

ollydbg

Quote from: Phenom on February 24, 2011, 08:53:18 PM
Bug with CC:
Type a function declaration, e.g.:

void foo(int arg1, int arg2)


Inside the function body, type an argument's name and an '(' character. The call tip for that function is shown.
confirm, I will check this bug. :D
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.

ollydbg

Ok, I found the bug. the sample code is:

void foo(int arg1, int arg2)
{
    arg1(
}



you enter the "(" here, and finally, it will call ShowCallTip() function

it seems there are something wrong in this function call (nativeparser.cpp line 1874)

            else
            {
                wxString s;
                wxString full;
                if(!PrettyPrintToken(full, *token, *tokens))
                    full = wxT("Error while pretty printing token!");
                BreakUpInLines(s, full, chars_per_line);
                m_CallTips.Add(s);
            }


the *token is actually  "arg1", see:
Quote
> p *token
$2 = {
  <BlockAllocated<Token, 50000u, false>> = {
    static allocator = {
      allocBlocks = std::vector of length 1, capacity 1 = {0xdaa0020},
      first = 0xdb565a0,
      ref_count = 0,
      max_refs = 0,
      total_refs = 0
    }
  },
  members of Token:
  m_Type = "int",
  m_ActualType = "int",
  m_Name = "arg1",
  m_Args = "",
  m_BaseArgs = "",
  m_AncestorsString = "",
  m_TemplateArgument = "",
  m_FileIdx = 6,
  m_Line = 10,
  m_ImplFileIdx = 0,
  m_ImplLine = 0,
  m_ImplLineStart = 0,
  m_ImplLineEnd = 0,
  m_Scope = tsUndefined,
  m_TokenKind = tkVariable,
  m_IsOperator = false,
  m_IsLocal = false,
  m_IsTemp = true,
  m_IsConst = false,
  m_ParentIndex = 429,
  m_Children = std::set with 0 elements,
  m_Ancestors = std::set with 0 elements,
  m_DirectAncestors = std::set with 0 elements,
  m_Descendants = std::set with 0 elements,
  m_Aliases = 0 count of wxArrayString,
  m_TemplateType = 0 count of wxArrayString,
  m_TemplateMap = std::map with 0 elements,
  m_TemplateAlias = "",
  m_UserData = 0x0,
  m_TokensTree = 0x6939f30,
  m_Self = 3111,
  m_Ticket = 3383
}

But after running this function, the string "full" is below:

> p full
$3 = "void foo(int arg1, int arg2)"
>>>>>>cb_gdb:


So, my guess is there is something wrong with "PrettyPrintToken try to print arg1". :D :D
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.

oBFusCATed

This patch fixes the problem for me, but I've not done extensive testing, so there are chances for other bugs...


Index: src/plugins/codecompletion/nativeparser.cpp
===================================================================
--- src/plugins/codecompletion/nativeparser.cpp (revision 7025)
+++ src/plugins/codecompletion/nativeparser.cpp (working copy)
@@ -1727,7 +1727,9 @@

bool PrettyPrintToken(wxString &result, Token const &token, TokensTree const &tokens, bool root = true)
{
-    if (token.m_ParentIndex != -1)
+    if (token.m_ParentIndex != -1 &&
+        ((token.m_TokenKind == tkConstructor) || (token.m_TokenKind == tkFunction)
+         || (token.m_TokenKind == tkClass) || (token.m_TokenKind == tkNamespace)))
     {
         if (!PrettyPrintToken(result, *tokens.at(token.m_ParentIndex), tokens, false))
             return false;
(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!]

stahta01

Patch needed for NON-PCH Type Build under Windows (CB_PRECOMP and WX_PRECOMP not defined and NOPCH is defined)

Tim S.


Index: src/sdk/projectfileoptionsdlg.cpp
===================================================================
--- src/sdk/projectfileoptionsdlg.cpp (revision 7028)
+++ src/sdk/projectfileoptionsdlg.cpp (working copy)
@@ -12,6 +12,7 @@
#ifndef CB_PRECOMP
     #include "cbproject.h"
     #include "compilerfactory.h"
+    #include "editormanager.h"
     #include "logmanager.h"
     #include "projectmanager.h"
     #include <wx/xrc/xmlres.h>
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]