Author Topic: The 20 February 2011 build (7017) is out.  (Read 50458 times)

Online killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5267
The 20 February 2011 build (7017) is out.
« on: February 20, 2011, 02:09:26 pm »
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:



    Offline Phenom

    • Multiple posting newcomer
    • *
    • Posts: 57
    Re: The 20 February 2011 build (7017) is out.
    « Reply #1 on: February 20, 2011, 08:23:19 pm »
    The new call tip is really cool!

    Offline jens

    • Administrator
    • Lives here!
    • *****
    • Posts: 7255
    Re: The 20 February 2011 build (7017) is out.
    « Reply #2 on: February 20, 2011, 11:44:30 pm »
    Debian packages (binaries and sources) for 32-bit and 64-bit systems can be found in my repo.

    Offline Borr

    • Multiple posting newcomer
    • *
    • Posts: 29
    Re: The 20 February 2011 build (7017) is out.
    « Reply #3 on: February 21, 2011, 03:10:52 pm »
    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

    Offline jccddd

    • Single posting newcomer
    • *
    • Posts: 4
    Re: The 20 February 2011 build (7017) is out.
    « Reply #4 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.

    Offline jens

    • Administrator
    • Lives here!
    • *****
    • Posts: 7255
    Re: The 20 February 2011 build (7017) is out.
    « Reply #5 on: February 23, 2011, 10:00:54 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 ?

    Offline jccddd

    • Single posting newcomer
    • *
    • Posts: 4
    Re: The 20 February 2011 build (7017) is out.
    « Reply #6 on: February 23, 2011, 02:16:45 pm »
    My os is windows 7 ultimate 32 bit.A snapshot is attached.

    [attachment deleted by admin]

    Offline oBFusCATed

    • Developer
    • Lives here!
    • *****
    • Posts: 13007
      • Travis build status
    Re: The 20 February 2011 build (7017) is out.
    « Reply #7 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).
    (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 jens

    • Administrator
    • Lives here!
    • *****
    • Posts: 7255
    Re: The 20 February 2011 build (7017) is out.
    « Reply #8 on: February 23, 2011, 03:12:46 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 ?

    Offline oBFusCATed

    • Developer
    • Lives here!
    • *****
    • Posts: 13007
      • Travis build status
    Re: The 20 February 2011 build (7017) is out.
    « Reply #9 on: February 23, 2011, 03:50:59 pm »
    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!]

    Offline Phenom

    • Multiple posting newcomer
    • *
    • Posts: 57
    Re: The 20 February 2011 build (7017) is out.
    « Reply #10 on: February 24, 2011, 08:53:18 pm »
    Bug with CC:
    Type a function declaration, e.g.:
    Code: [Select]
    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.

    Offline ollydbg

    • Developer
    • Lives here!
    • *****
    • Posts: 5295
    • OpenCV and Robotics
      • Chinese OpenCV forum moderator
    Re: The 20 February 2011 build (7017) is out.
    « Reply #11 on: February 25, 2011, 01:48:19 am »
    Bug with CC:
    Type a function declaration, e.g.:
    Code: [Select]
    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.

    Offline ollydbg

    • Developer
    • Lives here!
    • *****
    • Posts: 5295
    • OpenCV and Robotics
      • Chinese OpenCV forum moderator
    Re: The 20 February 2011 build (7017) is out.
    « Reply #12 on: February 25, 2011, 02:27:51 am »
    Ok, I found the bug. the sample code is:
    Code: [Select]
    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)
    Code: [Select]
                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:
    Code: [Select]
    > 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.

    Offline oBFusCATed

    • Developer
    • Lives here!
    • *****
    • Posts: 13007
      • Travis build status
    Re: The 20 February 2011 build (7017) is out.
    « Reply #13 on: February 25, 2011, 08:59:22 am »
    This patch fixes the problem for me, but I've not done extensive testing, so there are chances for other bugs...

    Code: [Select]
    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!]

    Offline stahta01

    • Lives here!
    • ****
    • Posts: 7056
      • My Best Post
    Re: The 20 February 2011 build (7017) is out.
    « Reply #14 on: February 25, 2011, 07:07:10 pm »
    Patch needed for NON-PCH Type Build under Windows (CB_PRECOMP and WX_PRECOMP not defined and NOPCH is defined)

    Tim S.

    Code: [Select]
    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++ and Git.
    On Windows 7 64 bit and Windows 10 32 bit.
    On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
    --
    When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org