-
Notifications
You must be signed in to change notification settings - Fork 80
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
Permission Error access Denied #17
Comments
I had the same problem, try to remove your addon from blender before launching blender from vscode. |
Oh, ffs! I wasted hours on this before finding your post. |
The underlying issue here is arguably not a problem with the vscode addon but with the Blender upgrade process. When you add an addon using the VSCode addon, a link is created in the %AppData%\Bledner Foundation\Blender<version>\scripts\addons folder. You can see this in the folder view of an explorer window (here showing my addon SLender alongside speedflow) During an upgrade this "link" is not maintained, instead a deep copy is made and when the addon tries to alter this things go pear-shaped. Workarounds are:
I have added a task to the blender dev site, though whether the impact of this (just those of us using this extension) justifies the effort to change Blender upgrade behaviour is questionable, I figured it was worth raising in case there are other use cases where this might cause issues. https://developer.blender.org/T95208 It is interesting that @JacquesLucke used the _winapi.CreateJunctionPoint API call rather than a symlink, not sure that this would make any difference or whether there are other side effects if I were to change that and make a PR. |
Thanks @EvanAW , my blender bug report was closed as "not a bug" which is probably fair though arguable as to whether silently converting lnks to copies is "expected behaviour". In any case, trying to fix it here is going to be the better direction. The One option for this bug is to improve the error reporting. It doesn't fix it but helps people solve the problem themselves. |
When creating your own addon, it is important to ensure that you do not include the |
Part of the issues related to Permission error were addressed in version [0.0.22] - 2024-09-04, but some corner cases are still worked in in #184 - but the design is not obvious and fixing all corner cases required changing default behavior. |
Im running into a issue with opening up an addon im upgrading. I run blender run and it wont run in blender even when I run VS code as admin. Here is my log.
The text was updated successfully, but these errors were encountered: