Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » The most annoying CDT bug
The most annoying CDT bug [message #217960] Thu, 26 June 2008 10:06 Go to next message
Eclipse UserFriend
Originally posted by: schabi.logix-tt.com

Hi,

I'm using eclipse 3.3.2 with CDT 4.0.3 and some other plugins.

The project is configured to run a custom build command (which runs our
scons based build with some additional parameters), and "build
automatically" is activated in the project menu.

Now, wenever I modify more than one file before saving, and then press
Ctrl-Shift-S to save all those files, it saves one file and starts
building. After building, it saves the next file, and builds again
etc., and it shows a window that the save operation is waiting for the
build to finish.

Stopping the build operation sometimes allows one or two files to be
saved before the next build starts.

The JDK part does handle this much nicer, there all files are saved
before the build starts.

My current workaround is to disable autobuild at all, and run manual
builds every time I save. But I think that this is ugly.

My wish would be that all files are saved before the build starts, and
when editing and saving a file while a build runs, that the build is
interrupted instead of having the save operation wait and bloking the
whole UI.


Is there any solution for my problem?
Thanks,
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org
Re: The most annoying CDT bug [message #217985 is a reply to message #217960] Fri, 27 June 2008 07:56 Go to previous messageGo to next message
Eclipse UserFriend
Markus Schaber wrote:
> Hi,
>
> I'm using eclipse 3.3.2 with CDT 4.0.3 and some other plugins.
>
> The project is configured to run a custom build command (which runs our
> scons based build with some additional parameters), and "build
> automatically" is activated in the project menu.
>
> Now, wenever I modify more than one file before saving, and then press
> Ctrl-Shift-S to save all those files, it saves one file and starts
> building. After building, it saves the next file, and builds again
> etc., and it shows a window that the save operation is waiting for the
> build to finish.
>
> Stopping the build operation sometimes allows one or two files to be
> saved before the next build starts.
>
> The JDK part does handle this much nicer, there all files are saved
> before the build starts.
>
> My current workaround is to disable autobuild at all, and run manual
> builds every time I save. But I think that this is ugly.
>
> My wish would be that all files are saved before the build starts, and
> when editing and saving a file while a build runs, that the build is
> interrupted instead of having the save operation wait and bloking the
> whole UI.
>
>
> Is there any solution for my problem?
> Thanks,

It is true that Build Automatically does not scale well for C/C++ projects.

How about the following:

In the Preferences under General > Workspace
- Disable Build automatically
- Enable Save automatically before build

User Ctrl+B to start a build and have all files saved before the build
starts.

HTH
--
Anton Leherbauer
Wind River CDT Team, Austria
Re: The most annoying CDT bug [message #218201 is a reply to message #217985] Mon, 30 June 2008 07:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: schabi.logix-tt.com

Hi, Anton,

Anton Leherbauer <anton.leherbauer@windriver.com> wrote:

> It is true that Build Automatically does not scale well for C/C++ projects.
>
> How about the following:
>
> In the Preferences under General > Workspace
> - Disable Build automatically
> - Enable Save automatically before build
>
> User Ctrl+B to start a build and have all files saved before the build
> starts.

That seems to be a good workaround. I'll also try the new Eclipse
relase in the next days, and see whether it's better there.

IMHO the correct solution would be that saving of multiple files takes
some kind of mutex/lock to block autobuilding to kick in.

Regards,
Markus

--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org
Re: The most annoying CDT bug [message #218455 is a reply to message #218201] Thu, 03 July 2008 06:54 Go to previous message
Eclipse UserFriend
Markus Schaber wrote:

> IMHO the correct solution would be that saving of multiple files takes
> some kind of mutex/lock to block autobuilding to kick in.

This is not controlled by CDT. See also
https://bugs.eclipse.org/bugs/show_bug.cgi?id=76228

--
Anton Leherbauer
Wind River CDT Team, Austria
Previous Topic:CDT-Add global variables - Shows empty list
Next Topic:Saving a resource from a project when building another project
Goto Forum:
  


Current Time: Sun Nov 09 23:03:08 EST 2025

Powered by FUDForum. Page generated in 0.04027 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top