Bug 118294 - [launching] Renaming an External Tool Builder (set to run during Auto Builds) causes error
Summary: [launching] Renaming an External Tool Builder (set to run during Auto Builds)...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: readme
Depends on:
Blocks:
 
Reported: 2005-11-28 15:53 EST by Mark Melvin CLA
Modified: 2021-10-10 05:38 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Melvin CLA 2005-11-28 15:53:43 EST
If you rename an existing external tool builder that is configured to run during auto-builds (by clicking on the external tool builder and choosing Edit..., then changing the name and clicking OK) the external tool will be run imediately, but the information in the configuration file will not be up to date yet because you have not exited the Builders property dialog yet.  

As a result, you will receive the following error message (which will briefly appear on top and then fall below the builders property dialog, making it essentially inaccessible until you exit the builders dialog):

    Errors during build.
      Errors running builder "Integrated External Tool Builder" on project
      <PROJECT_NAME>.
      The builder launch configuration could not be found.

Now if you clikc "Cancel" to get at the error dialog, dismiss it, then go *back* into the Builders property dialog, you will see that your external tool is now marked as being an "Invalid External Tool Builder".
Comment 1 Mark Melvin CLA 2005-11-28 15:54:00 EST
Changing version to 3.1.
Comment 2 Darin Swanson CLA 2006-02-06 18:59:09 EST
Another problem here is not cancelling a name change for a builder does not role back the name change (logged as bug 126665).

The launch configuration page is immediately updated but the .project file build command is not updated until the properties dialog (and therefore the page) is OK'd

Hackish solutions I can think of for this problem: 
turn off all of the auto building external tool builders while the builder property page is open...possibly a system property?
have builders not be triggered for changes in the .externalToolBuilders folder
Comment 3 Darin Swanson CLA 2006-03-20 12:41:39 EST
Most likely for 3.2 this is going to remain an issue and will need to be doc'd in the readme/known issues.
Comment 4 Darin Swanson CLA 2006-05-10 00:19:43 EDT
Added as known issue in the Eclipse readme for 3.2

Revisit in 3.3
Comment 5 Darin Swanson CLA 2007-02-19 19:20:25 EST
leaving as a known issue for 3.3
Comment 6 ghatfan99 CLA 2010-05-07 08:32:28 EDT
i have this solution and it works,
you must go to your .project file in your work space, and you can put in comment or delete this lines

<buildCommand>
			<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
			<triggers>full,incremental,</triggers>
			<arguments>
				<dictionary>
					<key>LaunchConfigHandle</key>
				      <value>&lt;project&gt;/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch</value>
				</dictionary>
			</arguments>
</buildCommand>

and after that you can rebuild your project and it will work correctly.
Comment 7 Eclipse Webmaster CLA 2019-09-06 16:11:08 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 8 Eclipse Genie CLA 2021-10-10 05:38:23 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.