User forums > Nightly builds

The 12.11 RC2 (23 November 2012 build 8598) is out.

<< < (18/24) > >>

MortenMacFly:

--- Quote from: Alpha on December 05, 2012, 12:47:27 am ---Would any of the devs like to reveal what step(s) are left before RC2 becomes stable 12.11 (erm, 12.12)?

--- End quote ---
Packaging is most time consuming these days.

dmoore:

--- Quote from: daveatol on December 06, 2012, 07:19:34 am ---Another little bug I found in 8598:
* Find & replace using regex inserts newline when matching end of line pattern "$"
* Any newly defined abbreviations (Ctrl+J) insert 2 newlines for every 1 until you exit Code::Blocks (which will save to the conf file correctly); on restart it's all good.

--- End quote ---

#1 is I think a limitation of advanced reg ex with dos style newlines. The $ matches on \n instead of \r\n. Try switching on eol markers to see what I mean. If it is something else give steps to reproduce

#2 there were a bunch of recent fixes for newline handling. This may be a regression. Or maybe just breaks old snippets abbreviations? More detailed steps to reproduce would be helpful.

Alpha:

--- Quote from: dmoore on December 07, 2012, 03:26:40 am ---#2 there were a bunch of recent fixes for newline handling. This may be a regression.

--- End quote ---
Untested, but may be where the issue comes from:

--- Code: ---Index: src/plugins/abbreviations/abbreviationsconfigpanel.cpp
===================================================================
--- src/plugins/abbreviations/abbreviationsconfigpanel.cpp      (revision 8644)
+++ src/plugins/abbreviations/abbreviationsconfigpanel.cpp      (working copy)
@@ -110,7 +110,10 @@
     if (!key.IsEmpty())
     {
         AutoCompleteMap* compMap = m_Plugin->m_AutoCompLanguageMap[lang];
-        (*compMap)[key] = m_AutoCompTextControl->GetText();
+        wxString code = m_AutoCompTextControl->GetText();
+        code.Replace(wxT("\r\n"), wxT("\n"));
+        code.Replace(wxT("\r"),   wxT("\n"));
+        (*compMap)[key] = code;
     }
 }

--- End code ---

daveatol:

--- Quote from: dmoore on December 07, 2012, 03:26:40 am ---#1 is I think a limitation of advanced reg ex with dos style newlines. The $ matches on \n instead of \r\n. Try switching on eol markers to see what I mean. If it is something else give steps to reproduce
--- End quote ---
Yes, it does seem to do exactly what you said. An initial replace("\r", "") allows it to work normally.

Not sure if this is by design, but for regex replace, backslash-escaped characters in the change-to field, e.g. "\r\n" result in "rn" being inserted (unexpected), while "\\r\\n" results in the four characters '\\' 'r' '\\' 'n' being inserted (as expected).


--- Quote from: dmoore on December 07, 2012, 03:26:40 am ---#2 there were a bunch of recent fixes for newline handling. This may be a regression. Or maybe just breaks old snippets abbreviations? More detailed steps to reproduce would be helpful.
--- End quote ---
To reproduce, add an abbreviation, e.g.
--- Code: ---for(int j = 0; j < $(count); j++)
{
    |
}
--- End code ---
Now try to use it; lines will be double-spaced. On exit and restart of Code::Blocks, it's fine, as it's been written and read correctly to the conf file.

stg:
Hello,

I noted that codeblocks (this nightly 8598 on win7) crashes when launching it in batch mode using the command:


--- Quote ---Codeblocks.exe /na /nd /ns --build --target=Debug "...\Project.cbp"
--- End quote ---

(only) when the target is up to date.


Here is the extract of the crash report.
----
Error occured on Saturday, December 8, 2012 at 16:15:08.

D:\Apps\Codeblocks\Codeblocks.exe caused an Access Violation at location 004066a7 in module D:\Apps\Codeblocks\Codeblocks.exe Reading from location 00000000.

Registers:
eax=00000000 ebx=0028266a ecx=773098da edx=0000028a esi=0000000a edi=00000000
eip=004066a7 esp=0022f830 ebp=0022f928 iopl=0         nv up ei pl nz na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010206

Call stack:
004066A7  D:\Apps\Codeblocks\Codeblocks.exe:004066A7
004047D4  D:\Apps\Codeblocks\Codeblocks.exe:004047D4
0049071E  D:\Apps\Codeblocks\Codeblocks.exe:0049071E  _ZN12cbToolPlugin9BuildMenuEP9wxMenuBar
6CC705CE  D:\Apps\Codeblocks\wxmsw28u_gcc_cb.dll:6CC705CE  _Z14wxUninitializev
004B93AB  D:\Apps\Codeblocks\Codeblocks.exe:004B93AB  _ZNK8cbPlugin9CanDetachEv
004010FD  D:\Apps\Codeblocks\Codeblocks.exe:004010FD
7784377B  C:\Windows\SYSTEM32\ntdll.dll:7784377B  RtlInitializeExceptionChain
7784374E  C:\Windows\SYSTEM32\ntdll.dll:7784374E  RtlInitializeExceptionChain

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version