News:

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

Main Menu

The 03 June 2012 build (8024) is out.

Started by killerbot, June 03, 2012, 07:18:43 PM

Previous topic - Next topic

MortenMacFly

Quote from: carra on June 11, 2012, 11:04:04 AM
- Reportedly there is now an option to set a new maximum for Aligner entries, but I cannot find it anywhere. I still get 4 entries and the rest are cropped (same as before).
See settings -> Editor -> Editor Tweaks Settings
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]

carra

Oh man, I was looking for a submenu and you guys made a whole new settings tab for it! Found it, and it works as intended. Thanks!

MortenMacFly

Quote from: carra on June 11, 2012, 12:15:44 PM
Oh man, I was looking for a submenu and you guys made a whole new settings tab for it!
Yes, because as EditorTweaks has many functions, there may be more options more to come...
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]

xunxun

#18
Found a CC plugin bug.

When loading a new project, CC plugin will decode the variable's declaration and show one time, but if you want to show again, it will show many times.

The demo project is in the attachment.
Regards,
xunxun

oBFusCATed

I've seen this, too, but I was not sure how to reproduce it.
(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!]

MortenMacFly

Quote from: oBFusCATed on June 13, 2012, 06:59:35 PM
I've seen this, too, but I was not sure how to reproduce it.
I have a patch for this already in my local copy... just didn't commit so far. Don't worry about this.
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]

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!]

ollydbg

Good, I review the commit, I see this is the quite good fix:

@@ -1807,7 +1815,7 @@ size_t NativeParser::MarkItemsByAI(ccSearchData* searchData, TokenIdxSet& result

     CC_LOCKER_TRACK_TT_MTX_UNLOCK(s_TokensTreeMutex)

-    RemoveLastFunctionChildren(tree, m_LastFuncTokenIdx);
+    RemoveLastFunctionChildren(m_Parser->GetTokensTree(), m_LastFuncTokenIdx);

     // find "using namespace" directives in the file
     TokenIdxSet search_scope;


The old way "tree" is a temporary Tokenstree, and already cleared before. What we need to clean is the normal Tokenstree.
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.

MortenMacFly

Quote from: ollydbg on June 14, 2012, 05:24:50 AM
The old way "tree" is a temporary Tokenstree, and already cleared before. What we need to clean is the normal Tokenstree.
Yes, I think this was my fault in the end... ::) :-[ :-[ :-[
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]

xunxun

Quote from: MortenMacFly on June 13, 2012, 07:34:37 PM
Quote from: oBFusCATed on June 13, 2012, 06:59:35 PM
I've seen this, too, but I was not sure how to reproduce it.
I have a patch for this already in my local copy... just didn't commit so far. Don't worry about this.

Thanks @MortenMacFly.
:)
Regards,
xunxun

carra

Hi again, I have had some unexpected behavior with relative directories under C::B and I wonder if I should consider this a bug in C::B project system??

* Project base folder: C:\Programacion\KTools\Sources\LogStream
* Output folder for objects:  ..\..\Objects  (i.e.: "C:\Programacion\KTools\Objects")
* 3 Files in project:
    - ..\..\Headers\General.hpp       (i.e.: "C:\Programacion\KTools\Headers\General.hpp")
    - ..\..\Headers\LogStream.hpp   (i.e.: "C:\Programacion\KTools\Headers\LogStream.hpp")
    - LogStream.cpp                     (i.e.: "C:\Programacion\KTools\Sources\LogStream\LogStream.cpp")

No matter what I try, instead of the intended Objects directory, my objwect files end up in the following directory:

"C:\Programacion\KTools\Objects\Sources\LogStream"

Seeing the resulting command line, it seems as if C::B is doing the following folder concatenation for some reason:

(1) In the Project Explorer, the source file appears listed as "Sources\LogStream\LogStream.cpp" (why all that route? it's in the project's base directory!!)

(2) What seems to be happening is:
"C:\Programacion\KTools\Objects" + "Sources\LogStream\LogStream.cpp" ==> "C:\Programacion\KTools\Objects\Sources\LogStream\LogStream.o"

carra

OK, since the project file is very simple I thought I might post it here.
For simplicity, I have parameterized folders with an env var KTOOLS_FOLDER which in my case is: C:\Programacion\KTools

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="LogStream" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Release">
<Option output="$(KTOOLS_FOLDER)\Libraries\LogStream" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="$(KTOOLS_FOLDER)\Objects" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-Wall" />
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Unit filename="..\..\Headers\General.hpp" />
<Unit filename="..\..\Headers\LogStream.hpp" />
<Unit filename="LogStream.cpp" />
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>


If I had to guess, I'd say that C::B is trying to set a "common base folder" for all the project files. As if it didn't properly support routes with "\.." in them.

saidus

Hello.
Is there any ready to download package for windows (codeblocks-setup-10.05.8024.exe) with the current svn release.
Thank you .

gd_on

Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

carra

It's curious... the problem I reported earlier with relative paths seems not to be present in nightly 7925. The very same project I posted produces the object in the correct folder. A regression?