fritzing / fritzing-app

Fritzing desktop application
http://fritzing.org
Other
4.04k stars 835 forks source link

Removing a custom part from a bin does not fully remove it #2985

Open davidperrenoud opened 10 years ago

davidperrenoud commented 10 years ago

From d...@cording.id.au on August 18, 2014 09:15:15

What steps will reproduce the problem? 1. Import a new custom part into a bin

  1. Right click on the new part and select 'Remove part'
  2. Import the same part again Attach your sketch file and/or custom part files to the bug report. What is the expected output? What do you see instead? Fritzing should import the new part a second time. Instead it reports "There is already a part with id 'XYZ' loaded into Fritzing." What version of Fritzing are you using? On what operating system? 0.9.0b - Ubuntu 2014.04 i386 Please provide any additional information below. Saving the bin after removing the part does not fix the problem.

Quitting and restarting Fritzing does clear the problem.

This is a real pain when testing new parts as you need to restart Fritzing every time you want to modify a custom part.

Original issue: http://code.google.com/p/fritzing/issues/detail?id=2987

rustyx commented 5 years ago

Restarting Fritzing won't help.

The parts needs to be deleted from the user's parts folder.

Look in ~/.config/fritzing/parts

On Windows: shell:personal\Fritzing\parts

failiz commented 3 years ago

Still an issue in 0.9.6. In addition, When the part has been removed, closing Fritzing triggers a a popup dialogue which asks you if you want to keep the imported parts. I clicked no, and then I could import the part again next time I tun Fritzing. Remove imported label, add parts and ImportExport.

KjellMorgenstern commented 3 years ago

Also related to #3789 , which is about the same problem, but when adding a part.

cod3monk3y commented 1 year ago

Still an issue in 0.9.10 (2022-07-01).

Added MKR WiFi 1010 from vanepp here - https://forum.fritzing.org/t/part-request-arduino-mkr-wifi-1010/7617/5 The part doesn't line up correctly, so I attempted to add the version by demc, but it won't add since there is already a part with the same name.

Reinstall does not fix the problem.

Tried workaround, as @rustyx described. Deleted .svg files from shell:personal\Fritzing\parts, then I got a blank white square when searching parts for 'MKR'. Realized there is a .fzp (or something like this) in Fritzing\parts\user. Deleted that. Then tried Parts | Regenerate Parts Database, which crashes the app.

At some point there was a message like MKR WiFi 1010... was not found. But, I deleted it, so why are you looking for it?

Deleted Fritzing\bins\* which had search.fzb and my_parts.fzb. At this point, the entirety of Fritzing\parts is just empty directories. Trying again to launch.

Seems like it was deleted correctly now. Successfully re-imported the version from demc, now. Maybe the search.fzb or my_parts.fzb had some leftover reference to the deleted part?