Good morning everyone.If you compile C::B yourself, you can use the compiler you like, if it is recent enough and works, it's okay.
So let me get this straight people: Those who still using the traditional MinGW they should migrate to TDM's GCC? And if so, what's the purpose or the difference? My apologies if I sound totally out of subject but all this time I was synchronizing my code with svn and compiling it using MinGW 5.1.6 (g++ 3.4.5 to be more precise).
Can someone please advice?
Cheers.
@killerbotshould check, but I downloaded the 'all' installer and then stick with it's suggestions.
Which version of TDM GCC 4.4.1 did you use to build this nightly and wxWidgets library? DW2 or SJLJ ?
Thanks.
Ok, that must be SJLJ version. I use this version too.@killerbotshould check, but I downloaded the 'all' installer and then stick with it's suggestions.
Which version of TDM GCC 4.4.1 did you use to build this nightly and wxWidgets library? DW2 or SJLJ ?
Thanks.
Thanks! Great work, as always!
Two things though:
1) Would it be possible to hide the horizontal scrollbar if all lines are short enough to fit? I like my editors as minimal as possible!
2) Tab characters in Abbreviations are inserted verbatim as tabs (\t), and do not seem to respect the "Use TAB character" setting under General settings. Is this intended?
Please point me in the right direction if this the wrong place to post about these things.
Thanks again!
-tretton
All right, thanks stahta01!
Then I'd like to post this here as a potential bug: Tabs in Abbreviations do not seem to respect the "Use TAB character" setting under General settings, but instead always use tabs. This behaviour is present in many, if not all, versions.
Thanks again!
Sorry to be a pain, but do you mean a particular page or simply the entire wiki? I tried searching for "abbreviations", but that didn't yield much.
"(") // it's ok
"(")some_code // double quote mustn't be generated before some_code if there is no space between them
some_code"(") // double quote mustn't be generated after some_code if there is no space between them
Problem with automatic insertion of double quotes (") - in '(' and ')' I place autogenerated double quote:Code"(") // it's ok
"(")some_code // double quote mustn't be generated before some_code if there is no space between them
some_code"(") // double quote mustn't be generated after some_code if there is no space between them
I like this feature, but the above behaviour is noisy - I need to delete autogenerated double quote.
Did you notice this: http://forums.codeblocks.org/index.php/topic,11875.msg81723.html#msg81723 about autogeneration of scopes ({})?
Is it possible to change behavior of f11(switching between header/source) To switch to the source/header in the same namespace/directory? In any version tested, that should be all nightlies in the last 3 months, f11 seems to switch to some sort of "default" header.If I can remember, we have discussed this several months ago, and morten has done some thing in the CC's code. I think the defaualt way is switch the files in the same folder. Can you give me a specific example? Also, we have a CC's testing workspace in the SVN source, can you test it?
As allways: I love what you do:)
EDIT: @Xaviou/pasgui: Is there a reason why theres no current amd64 build in the lpg repo?
EDIT: @Xaviou/pasgui: Is there a reason why theres no current amd64 build in the lpg repo?
codeblocks: relocation error: /usr/lib/libcodeblocks.so.0: symbol _Z18wxSafeConvertWX2MBPKw, version WXU_2.8.2 not defined in file libwx_baseu-2.8.so.0 with link time reference
I don't suppose anyone is building AMD64 packages for Lucid yet? I've tried the ones from both Pasgui's and Jens' repositories both are incompatible with the wxwidgets in Lucid:Codecodeblocks: relocation error: /usr/lib/libcodeblocks.so.0: symbol _Z18wxSafeConvertWX2MBPKw, version WXU_2.8.2 not defined in file libwx_baseu-2.8.so.0 with link time reference
I don't suppose anyone is building AMD64 packages for Lucid yet? I've tried the ones from both Pasgui's and Jens' repositories both are incompatible with the wxwidgets in Lucid:Codecodeblocks: relocation error: /usr/lib/libcodeblocks.so.0: symbol _Z18wxSafeConvertWX2MBPKw, version WXU_2.8.2 not defined in file libwx_baseu-2.8.so.0 with link time reference
Try to install wxWidgets from wxWidgets.org: jaunty-wx instead of packages from lucid
Best regards, pasgui
i.e. projects those building goes through makrfile generation?The problem here is: We cannot do a lot of things using Makefiles, they are just too limited. Take scripting in pre- and post-build steps for example. So a Makefile generation will always be only a sub-set of what's actually possible.
However, I see the chance for a more generic Makefile generator plugin (one exists already, but unsupported btw) to which other plugins (like a qt plugin) could contribute. I think that's the way to go... IMHO...The way to go is a BuildSystemConverterPlugin + subplugins or something like that:)
Hello,
I don't know if this is the suitable place to post a bug report, but I've found that svn 6181 will crash when I drag the compiler toolbar off it's original position. I'm using windows 7. When I dragged the toolbar toward the bottom of the screen, the window became white and the cursor became busy style. After a while windows say the program must be terminated.
Notice the direction is to down to bottom, when I dragged it to the right, everything is OK.
I gave the report file generated by CB here. Hope someone would find the cause and fix it.
Thanks.
....Hi,
pls update the wxmsw28u_gcc_cb.dll ... files... see : http://forums.codeblocks.org/index.php/topic,3232.0.html
int CompilerGCC::DoBuild(const wxString& target, bool clean, bool build, bool clearLog)
{
wxString realTarget = target;
if (realTarget.IsEmpty())
realTarget = GetTargetString();
if (!StopRunningDebugger())
return -1;
if (!CheckProject())
{
// no active project
if (Manager::Get()->GetEditorManager()->GetActiveEditor())
return CompileFile(Manager::Get()->GetEditorManager()->GetActiveEditor()->GetFilename());
return -1;
}
if (realTarget.IsEmpty())
return -1;
if (!m_IsWorkspaceOperation)
{
DoClearErrors();
InitBuildLog(false);
// if (!m_IsWorkspaceOperation)
DoPrepareQueue(clearLog);
}
PreprocessJob(m_Project, realTarget);
if (m_BuildJobTargetsList.empty())
{
return -1;
}
InitBuildState(bjProject, realTarget);
if (DoBuild(clean, build))
{
return -2;
}
return DoRunQueue();
}
void CompilerGCC::DoPrepareQueue(bool clearLog)
{
if (m_CommandQueue.GetCount() == 0)
{
CodeBlocksEvent evt(cbEVT_COMPILER_STARTED, 0, m_Project, 0, this);
Manager::Get()->ProcessEvent(evt);
if(clearLog)
ClearLog();
DoClearErrors();
// wxStartTimer();
m_StartTimer = wxGetLocalTimeMillis();
}
Manager::Yield();
}
class Name
{
};// here
In source formatter settings there is option `Indent classes (keywords public:, protected: and private:)`
Now I use C::B and I have a lof of files opened. Drop down list in the upper-right side of editor is not sorted and it's very difficult to search file in it. I think it must be sorted.that makes sense, could you file a request (or event a bug) for it on our berlios page so this doesn't get lost.
I suggest using the open files list plugin ("View -> Open files list"), it uses a sorted list.Now I use C::B and I have a lof of files opened. Drop down list in the upper-right side of editor is not sorted and it's very difficult to search file in it. I think it must be sorted.that makes sense, could you file a request (or event a bug) for it on our berlios page so this doesn't get lost.
EDIT : note to CB developers, I have no idea how it was back in our previous release, but if back then it was sorted, we should sort it back before a new release.
codeblocks
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading toolbar...
Debugger: loaded
08:08:57 PM: Error: Can't load image from file '�����������������������������������������������������������)����������������������������������)�����������������/images/wxsmith/wxFileDialog32.png': file does not exist.
08:08:57 PM: Error: Can't load image from file '�����������������������������������������������������������)����������������������������������)�����������������/images/wxsmith/wxFileDialog16.png': file does not exist.
08:08:57 PM: Error: Can't load image from file [...]
08:08:57 PM: Error: Can't load image from file '�����������������������������������������������������������)����������������������������������)�����������������/images/wxsmith/wxButton32.png': file does not exist.
08:08:57 PM: Error: Can't load image from file '�����������������������������������������������������������)����������������������������������)�����������������/images/wxsmith/wxButton16.png': file does not exist.
08:08:57 PM: Error: Can't load image from file '�����������������������������������������������������������)����������������������������������)�����������������/images/wxsmith/wxGridSizer32.png': file does not exist.
08:08:57 PM: Error: Can't load image from file '�����������������������������������������������������������)����������������������������������)�����������������/images/wxsmith/wxGridSizer16.png': file does not exist.
08:08:57 PM: Error: Can't load image from file '�����������������������������������������������������������)����������������������������������)�����������������/images/wxsmith/wxHtmlWindow32.png': file does not exist.
08:08:57 PM: Error: Can't load image from file '�����������������������������������������������������������)����������������������������������)�����������������/images/wxsmith/wxHtmlWindow16.png': file does not exist.
08:08:57 PM: Error: Can't load image from file '�����������������������������������������������������������)����������������������������������)�����������������/images/wxsmith/wxStaticLine32.png': file does not exist.
08:08:57 PM: Error: Can't load image from file '�����������������������������������������������������������)����������������������������������)�����������������/images/wxsmith/wxStaticLine16.png': file does not exist.
08:08:57 PM: Error: Can't load image from file '�����������������������������������������������������������)����������������������������������)�����������������/images/wxsmith/wxScrolledWindow32.png': file does not exist.
08:08:57 PM: Error: Can't load image from file '�����������������������������������������������������������)����������������������������������)�����������������/images/wxsmith/wxScrolledWindow16.png': file does not exist.
Aborted (core dumped)
Why not install wxGTK-dev?
Why not install wxGTK-dev?
Because wxgtk-dev depends on the package which makes Code::Blocks crash, like I explained above.
I'm using Ubuntu 9.10.
I also tried the apt line Jens recommends at http://apt.jenslody.de/ , but the packages from that repository are incompatible too.
When I install both the wxGtk I compiled from source and the packaged versions, Code::Blocks crashes too - it seems to prefer the packaged, incompatible version.
If you want to use my packages on ubuntu 9.10 (karmic koala) you have to use the packages provided by http://apt.wxwidgets.org for jaunty, because the wx2.8.10 packages from ubuntu are not compatible with the packages from http://apt.wxwidgets.org.
There exists also a repository containing packages for ubuntu, maintained by pasgui, see here (http://lgp203.free.fr/spip/spip.php?article1) how to use it.
Did you read this note:Quote from: http://apt.jenslody.de/If you want to use my packages on ubuntu 9.10 (karmic koala) you have to use the packages provided by http://apt.wxwidgets.org for jaunty, because the wx2.8.10 packages from ubuntu are not compatible with the packages from http://apt.wxwidgets.org.
There exists also a repository containing packages for ubuntu, maintained by pasgui, see here (http://lgp203.free.fr/spip/spip.php?article1) how to use it.
In file included from ../../../src/include/sdk_precomp.h:13,
from tinywxuni.cpp:1:
../../../src/include/sdk_common.h:34:23: error: wx/wxprec.h: No such file or directory
... (but not the hardcoded-to-black Build messages text). ...Can you show me a screenshot?
Oh, I've once tried to fix this but failed... it is added to my TODO for another try...
Small point:I'm not sure what you mena with accolade, but I gues you have aproblem with auto-completion of braces and quotes ( "('[{}]')" ).
If on the last empty line of a file you type the accolade, it does not add the closing accolade.
You mean the black text in output tabs? Well, in other places, like the status line, it's done correctly, like seen in the screenshot: The text uses the default foreground color.The matter is that the error lines are red, warning lines are blue and these two colors doesn't work well on black background...
To fix the output tabs, one would have to do whatever is done in the status line code to get the default text color.
The matter is that the error lines are red, warning lines are blue and these two colors doesn't work well on black background...
Thought you're right that the normal text color should (and can easily) be fixed.
mods: can you move the post related to dark skins in another thread?
Yes, dark blue doesn't work well on dark backgrounds either, but at least it's readable. Doing this whole thing correctly would involve either making the error and warning message color configurable, or composing the colors from a mixture of the default text foreground color and the desired color. I imagine mixing 25% default text color + 75% desired color would work well.Have you used the 25% + 75% scheme somewhere?
I thought this was the right thread for discussing bugs which should be fixed before the next release. Outputting text which can't be read is a bug.I think no, there is Preparing for Release thread. Also this is not a regression, but normal bug.
Have you used the 25% + 75% scheme somewhere?
I still haven't figured out how to set the colour of the notebook tabs properly - I can't find the place where the black text colour is hardcoded. This might even be in the wx libraries.
--- tmp/tmpq4jmq6-meld/notebookstyles.cpp
+++ home/jens/codeblocks-build/codeblocks.trunk/src/src/notebookstyles.cpp
@@ -155,6 +155,7 @@
dc.SetFont(m_normal_font);
dc.GetTextExtent(caption, &textx, &texty);
// draw tab text
+ dc.SetTextForeground(wxSystemSettings::GetColour(wxSYS_COLOUR_CAPTIONTEXT));
dc.DrawText(page.caption, text_offset,
drawn_tab_yoff + drawn_tab_height / 2 - texty / 2 - 1);
@@ -323,6 +324,7 @@
dc.SetFont(m_normal_font);
dc.GetTextExtent(caption, &textx, &texty);
// draw tab text
+ dc.SetTextForeground(wxSystemSettings::GetColour(wxSYS_COLOUR_CAPTIONTEXT));
dc.DrawText(page.caption, text_offset,
drawn_tab_yoff + drawn_tab_height / 2 - texty / 2 - 1);
I hope this patch will be applied before the next release!I don't think this should be done.
I still haven't figured out how to set the colour of the notebook tabs properly - I can't find the place where the black text colour is hardcoded. This might even be in the wx libraries.
You can try this one, at least for C::B's own styles (MSVC anf FF2):
I hope this patch will be applied before the next release!I don't think this should be done.
First: we are in a feature freeze and only release-critical bugs should be fixed and even if it might be annoying for users of dark themes, it's not release-critical in my opinion, and any fixes should be tested long enough.
Second: I just tried the patch and after an error and the text: "Process terminated with status 1 (0 minutes, 0 seconds)" with a red background, the background of all newly added text in the Build log stays red.
debian 64 bit, svn r6202, wxWidgets 2.8.10, gcc 4.4.3
Jens: have you tried my patch, do you experience the same problem (red background) with it?No (I don't like dark themes, so no need to test it until now, and really not very much time at the moment), but I already fixed the red-background issue.
@@ -61,12 +78,14 @@
// might try alternatively
//italic_font.SetStyle(wxFONTSTYLE_SLANT);
+ wxColour default_text_colour = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT);
+ wxColour default_bg_colour = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
for(unsigned int i = 0; i < num_levels; ++i)
{
style[i].SetFont(default_font);
style[i].SetAlignment(wxTEXT_ALIGNMENT_DEFAULT);
- style[i].SetTextColour(*wxBLACK);
- style[i].SetBackgroundColour(*wxWHITE);
+ style[i].SetBackgroundColour(default_bg_colour);
+ style[i].SetTextColour(default_text_colour);
// is it necessary to do that?
//style[i].SetFlags(...);
No (I don't like dark themes, so no need to test it until now, and really not very much time at the moment), but I already fixed the red-background issue.I also don't like the extremely dark (black) themes, but gray themes are OK for me :)
Isn't it better to use control->GetForegroundColour()/GetBackgroundColour()?Code+ wxColour default_text_colour = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT);
+ wxColour default_bg_colour = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
Of course it should be tested, but this is a small change, which wouldn't need a long time to test. And it's not something that changes any critical internals either, so I'd say now is as good a time to fix this than ever. I'm not a Code::Blocks developer though...It is not so easy to test it, because there are lots of gtk2 themes + windows xp/vista/7...
Isn't it better to use control->GetForegroundColour()/GetBackgroundColour()?
Of course it should be tested, but this is a small change, which wouldn't need a long time to test. And it's not something that changes any critical internals either, so I'd say now is as good a time to fix this than ever. I'm not a Code::Blocks developer though...It is not so easy to test it, because there are lots of gtk2 themes + windows xp/vista/7...
... And when C::B crashes all changes are loast....C::B must not crash... Have you isolated and reported the crashes you experience?
I have a question: What codepage used by `Build log` text edit component?I also experience this kind of problem.
I have a problem with it - when I start pre/postbuild step I can't recognize output of executed binary (output is in cyrilliс codepage). I can convert output by executing `chcp` command and then execute binary in windows batch file with the same name as binary's. But to do so I need to know codepage of C::B component.
oBFusCATed, you are not right - I use nightly build (even the stable version) and it will probably crash. So the better solution in this case is to save settings when I press OK and then (if successful) to initialize IDE. In this case we can report not only stack trace, but configuration of IDE (it can be useful for developers, I think)No, I'm right, you have not reported why it crashes. :lol: 8)
you have not reported why it crashes.
OK, Live with the crashes... You can't be helped
It would be nice if anything that is saved in the config would be written to disk and flush() committed immediately, to minimize the risk of ending up with an obsolete and/or corrupted config file. I think that this is what Critic meant.Look: This would make it impossible to play with project configurations e.g. for optimisations. I personally do that quite often but if this would be saved every time I would always need to revert it back. I don't agree that this makes sense. The same would be that every time you are typing a character in the editor the editor shall be saved. This makes no sense.
I guess this can be simulated quite easily by abruptly ending the C::B process. :)Same thing here: Did you ever think when I kill a process I want exactly not to save anything?
The same would be that every time you are typing a character in the editor the editor shall be saved.The comparison doesn't hold, IMO. Typical use case doesn't show the same change rate, by several orders of magnitude. And the config changes tend to be more important because they impact the whole project, and update losses are not proofed by a compiler.
Same thing here: Did you ever think when I kill a process I want exactly not to save anything?If you consider killing C::B as a "normal" way to exit it (like a "quit without saving" menu item), then you are probably right. But as far as I'm concerned, I've never had to kill C::B (or any other IDE) for such a reason.
<shrug>Please name some of them? Visual studio isn't doing it (all versions <=2005, don't know for newer ones).
I've been using *alot* of IDEs, and I've never experienced that kind of behavior before.
Please, note that: sometimes at development process I add global variables or change them and when I close `global variables` dialog I expect they will be saved at that moment, but they don't. I think this example shows that behaviour of IDE in such situations is strange.
May be my post is not clear (my english is poor) - I mean that global variables work fine (after I add new set it is applied by IDE after closing global variables dialog), but they are not saved to file system (save to prevent losing of made changes while IDE crash).
Another way - IDE can save these all setting to temporary files and when IDE crashes config is not lost, but at the next IDE startup it diagnoses that the crash happened and suggests to restore settings from temporary files (if data restored successfully - temporary files must be deleted). If settings are not changed after IDE startup temporary files mustn't exist - they must be created when user modifies IDE config.
The same can be applied to projects.
As for multiple instances of IDE - when settings of one of the running IDEs were saved the others must new settings (by supplying a question dialog box) to prevent overwriting.
I think it's normal and useful. It's a bit like in version control systems.
r6261 | mortenmacfly | 2010-05-19 17:59:01 +0800 (Wed, 19 May 2010) | 1 linesvn log http://svn.berlios.de/svnroot/repos/codeblocks/trunk/ > changes.txt
* prepared new logo