Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parts editor error message does not show full path on write error. #4075

Open
botgeek opened this issue Oct 9, 2023 · 3 comments
Open

Parts editor error message does not show full path on write error. #4075

botgeek opened this issue Oct 9, 2023 · 3 comments

Comments

@botgeek
Copy link

botgeek commented Oct 9, 2023

Current Behaviour

Getting an error when trying to right click on an IC image to edit a new part.

**Build:1.01
<e.g. Version 0.9.3 (b5c895d32 2016-04-19) Cocoa [Qt 5.12.2]

Operating System:
<Windows 10>

Steps to reproduce:

  • Step 1 Right click on a part to edit that is a 40 pin IC

Expected Behaviour

Expected to start editing a new part.

FritzingPartsEditorError

@KjellMorgenstern
Copy link
Member

KjellMorgenstern commented Oct 10, 2023

I have seen that a few times now, please avoid issue titles that read like click bait.
What is "this case"? Why "at least", what are the other cases then? If there are other cases, please open separate issues.

@KjellMorgenstern
Copy link
Member

KjellMorgenstern commented Oct 10, 2023

The editor opens just fine here.

Fritzing checks for the operating systems AppDataLocation (depends on OS and OS Version). There might be multiple locations. From the possibilities, Fritzing tries to choose the first writable location.

The above error message indicates that the location used for the icon was not writable.
Unfortunately, the error message does not give the full path, only a subfolder -> this is a bug.

Please check the AppDataLocations, if there are any files, and if they are writable (user permissions?)

APPNAME is Fritzing
APPDIR is the location of the Fritzing executable

macOS
AppDataLocation	"~/Library/Application Support/<APPNAME>", "/Library/Application Support/<APPNAME>". "<APPDIR>/../Resources"

Windows
"C:/Users/<USER>/AppData/Roaming/<APPNAME>", "C:/ProgramData/<APPNAME>", "<APPDIR>", "<APPDIR>/data", "<APPDIR>/data/<APPNAME>"

Linux
"~/.local/share/<APPNAME>", "/usr/local/share/<APPNAME>", "/usr/share/<APPNAME>"

@KjellMorgenstern KjellMorgenstern changed the title Parts editor svg import on 1.0.1 is broken in at least this case. Parts editor error message does not show full path on write error. Oct 10, 2023
@vanepp
Copy link
Contributor

vanepp commented Oct 10, 2023

Windows
"C:/Users//AppData/Roaming/", "C:/ProgramData/", "", "/data", "/data/"

Note on Windows (which you appear to be on) AppData is a hidden directory so you need to enable Show hidden directories by clicking on the Folder options tag and selecting views (circled in green here) then click "Show hidden files and folders" (I run with this always enabled) to show Appdata in Explorer.

capture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants