Author Topic: The 16 November 2013 build (9455) is out.  (Read 108289 times)

ToApolytoXaos

  • Guest
Re: The 16 November 2013 build (9455) is out.
« Reply #45 on: November 29, 2013, 06:25:57 pm »
Question: Why after I close a project from C::B, then close C::B itself, and reopen it each file's end-of-line mode converts to Windows? That's happening only under GNU / Linux :/

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: The 16 November 2013 build (9455) is out.
« Reply #46 on: November 29, 2013, 06:42:57 pm »
Can you describe the exact steps needed to reproduce this with a hello world project?
(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!]

ToApolytoXaos

  • Guest
Re: The 16 November 2013 build (9455) is out.
« Reply #47 on: November 29, 2013, 06:54:55 pm »
Yeah, just create a simple project, add a file naming it main.c or main.cpp, add some code in it, compile it, run it, save / close the project, then close codeblocks, reopen it and see the balloon tip at bottom right corner saying about opening different line ending.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: The 16 November 2013 build (9455) is out.
« Reply #48 on: November 29, 2013, 07:06:22 pm »
This tooltip warns you that the file has mixed EOLs.
Can you enable the visibility of the EOL characters and to check what is the default style, and on which lines the EOLs differ.
(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!]

ToApolytoXaos

  • Guest
Re: The 16 November 2013 build (9455) is out.
« Reply #49 on: November 29, 2013, 07:37:18 pm »
Indeed with C header / source files the header name includes UNIX end of line, whereas the body and the C++ files are using Windows end of line.

In settings / editor is set to auto.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: The 16 November 2013 build (9455) is out.
« Reply #50 on: November 29, 2013, 08:35:22 pm »
Are the line with wrong EOL typed by you or are they autogenerated by a wizard (file or project)?
(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!]

ToApolytoXaos

  • Guest
Re: The 16 November 2013 build (9455) is out.
« Reply #51 on: November 29, 2013, 08:55:51 pm »
Are the line with wrong EOL typed by you or are they autogenerated by a wizard (file or project)?
I don't mess with EOL at all; it's the wizard's job to handle such things. Also, I went to Tweaks and changed the EOL and upon close and reopen the file, it still holds the old EOL :/
« Last Edit: November 29, 2013, 09:03:18 pm by ToApolytoXaos »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: The 16 November 2013 build (9455) is out.
« Reply #52 on: November 29, 2013, 09:35:32 pm »
Set "Ensure consistent EOL" in the editor settings and you're ready to go.
Probably the wizards doesn't change the EOLs for template files.
(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: 7576
    • My Best Post
Re: The 16 November 2013 build (9455) is out.
« Reply #53 on: December 03, 2013, 01:45:48 pm »
Windows NON PCH (Precompiled Header) build issue.

I am testing some rarely built projects for wxWidgets 3.0 issues and got error building ModPoller Optional Plugin.

Tim S.

Code
Index: src/plugins/modpoller/ModPoller.h
===================================================================
--- src/plugins/modpoller/ModPoller.h (revision 9479)
+++ src/plugins/modpoller/ModPoller.h (working copy)
@@ -13,6 +13,7 @@
 #endif
 
 #include <cbplugin.h>
+#include <editormanager.h>
 
 class ModPoller : public cbPlugin
 {
« Last Edit: December 03, 2013, 01:48:02 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: The 16 November 2013 build (9455) is out.
« Reply #54 on: December 03, 2013, 08:38:30 pm »
In svn...
(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!]

ToApolytoXaos

  • Guest
Re: The 16 November 2013 build (9455) is out.
« Reply #55 on: December 06, 2013, 03:37:38 pm »
Set "Ensure consistent EOL" in the editor settings and you're ready to go.
Probably the wizards doesn't change the EOLs for template files.
Done so; the issue remains the same. Oh well, I will try to ignore it then, unless it becomes really annoying.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: The 16 November 2013 build (9455) is out.
« Reply #56 on: December 06, 2013, 03:39:45 pm »
You have to change the file in order for the "ensure eol" logic to trigger. It won't fix all files in the project.
(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 dirk_1980

  • Multiple posting newcomer
  • *
  • Posts: 25
Re: The 16 November 2013 build (9455) is out.
« Reply #57 on: December 07, 2013, 06:03:39 pm »
Hi,

maybe it is a bug or i have forgotten to turn something on.

After i have made a update i have seen this, maybe it was the same in the last version i used


If i write code like:
#define TEST
#ifdef TEST
....   // this code is not active in the Editor (wrong colour)
#endif

If i write this:
#define TEST 1
#if (TEST == 1)
....   // this code is active in the Editor (right colour)
#endif

Is it a Bug or is it my mistake?
Dirk
« Last Edit: December 07, 2013, 06:12:48 pm by dirk_1980 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: The 16 November 2013 build (9455) is out.
« Reply #58 on: December 07, 2013, 06:12:02 pm »
Works for me with both variants. Are you using this nightly build?
(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 dirk_1980

  • Multiple posting newcomer
  • *
  • Posts: 25
Re: The 16 November 2013 build (9455) is out.
« Reply #59 on: December 07, 2013, 06:13:59 pm »
Yes of course.