greasemonkey/greasemonkey — Issue #1520: config.js line 146 throws an exception(NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) 
Author: arantius
Created: 2012-02-19 02:32:18+00:00
State: open

Source: http://groups.google.com/group/greasemonkey-dev/msg/db9b4c587e66707c?hl=en

On Sat, Feb 18, 2012 at 9:20 PM, mjh563 wrote:
> As far as I can tell, the exception in config.js line 146 happens if
> you update a script twice without restarting Firefox in between.
>
> Detailed STR:
>
> 1. In GM prefs, turn off "Automatically install updates when found"
> and "Require secure updates" (not sure if this step is necessary)
> 2. Create a new script on userscripts.org and install it, or use an
> existing script
>
> 3. Update the script on userscripts.org
> 4. In the Add-ons Manager, right-click the script name and "Find
> updates". When the update is found, an "Update now" button will appear
> (this may take 10-15 minutes after step 3)
> 5. Press the "Update now" button, and the script should update to the
> new version
>
> 6. Restart Firefox
> 7. Repeat steps 3-5 to update the script a second time - the update
> again works as expected
>
> 8. **Don't restart Firefox**
> 9. Repeat steps 3-5 again. This time the update fails due to an
> exception in config.js line 146, and the script is uninstalled. I
> think this is because you didn't restart Firefox after doing the
> previous update

Referencing 0.9.18.beta1.