Giter VIP home page Giter VIP logo

Comments (10)

JacquesLucke avatar JacquesLucke commented on August 11, 2024

I think I fixed this in Blender at some point, maybe the fix is not working in your specific case.

https://developer.blender.org/rBe6ba760ce8fda5cf2e18bf26dddeeabdb4021066

from blender_vscode.

Zyl9393 avatar Zyl9393 commented on August 11, 2024

It's good to fix it on that end, but I also believe it should not have been symlinked in the first place.

from blender_vscode.

ecke101 avatar ecke101 commented on August 11, 2024

There is another problem with symlinks. I can't seem to have my project files on a network folder. I have all my files at a network folder at work and use VPN to access them at home as well. Is there something I can do to fix this? (using win10)

from blender_vscode.

gerroon avatar gerroon commented on August 11, 2024

@ecke101 that is a Samba related setting if you are on Linux. Symlinks are not served by default.

@Zyl9393

Symlinking the entire development directory into production is probably the most mental thing I have come across this year. Please reconsider this design decision.

That is your personal opinion. Please do not call people mental because they do not follow your mental model. Symlinks on Windows require heightened permissions, that is why Blender throws an error. Junctions are the recommended way for Windows.

There is no problem using symlinks/junctions (depending on your OS) to use for addon development. That is your personal opinion, since you did not even bother to explain why it was a bad idea properly. You used this development tool without paying attention to how it functioned then came here to call people who developed it mental and ask for immediate action.

from blender_vscode.

Kein avatar Kein commented on August 11, 2024

I'm having the same issue, any solution?

 File "d:\Unlinked\Users\Kein\.vscode\extensions\jacqueslucke.blender-development-0.0.12\pythonFiles\include\blender_vscode\load_addons.py", line 39, in create_link_in_user_addon_directory
    os.remove(link_path)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\Kein\\AppData\\Roaming\\Blender Foundation\\Blender\\2.80\\scripts\\addons\\MyAddon'
Saved session recovery to 'D:\TempC\quit.blend'

My VScode extensions folder symlinked to another drive but that is not the issue here, it tries to symlink in 'C:\Users\Kein\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\MyAddon'

from blender_vscode.

gerroon avatar gerroon commented on August 11, 2024

Use junctions instead of symlinks for folder

from blender_vscode.

Kein avatar Kein commented on August 11, 2024

For what folder? I'm not using any symlinks for blender addons, I've already mentioned it. And this is where it tries to symlink:
C:\\Users\\Kein\\AppData\\Roaming\\Blender Foundation\\Blender\\2.80\\scripts\\addons\\MyAddon
Nothing here is symlinked. Nothing inside as well.

from blender_vscode.

Kein avatar Kein commented on August 11, 2024

Okay, I figured it out. Junction had nothing to do with it. Apaprently you cant have addon installed in Blender and debug it, you can only debug working project. This is fine and makes sense, but it could have been stressed out more clearly in README.

from blender_vscode.

Zyl9393 avatar Zyl9393 commented on August 11, 2024

We really need a fix for this. Today the addon recursively nuked my project directory when trying to launch into a new download of Blender 3.2.1 portable, bringing all files down to 0 bytes in size and deleting .git, destroying 3 days of work. This is not okay.

I get that my anecdotal telling can be seen as an eyesore, but I would hope for it to be taken as representative of the priority of the issue rather than as a personal attack.

from blender_vscode.

justus-hildebrand avatar justus-hildebrand commented on August 11, 2024

@Zyl9393 I have run into the same problem as you, and did some digging:

For me, the issue occurs when I install my addon into a fully fresh installation of Blender (i.e. I had no previous setup of preferences) by hitting "Build and Start" through the VSCode extension, and then pressing the "Load Settings" button on the Quick Setup splash screen, AND having the add-on installed in the old version of Blender already. Blender then copies the Junctions created by VSCode from the old Preferences folder to the new one, and overwrites the files that the newly installed (by VSCode) junctions point at - which would be your Git clone, which is why your data is gone, but the file structure isnt. Yay!

Would be nice if you can confirm if this is also what might have happened for you, or if you can even reproduce it and let us know how it went.

With this in mind: For now its probably best to stay away from the combination of "Build and Start", a new Blender version and the "Load old version Settings" button for now, until I or someone else has written a fix and it has been pushed and released into Blender's downstream.

This way we can have the debate on whether Symlinks/Junctions are a good or bad idea without having to worry of losing all our work, which should be nice. Personally I think it's neither a good or a bad choice. If you have a big plugin that you want to have working on different versions, it's certainly nice to be able to push your updates to all your installations at once, and not having to deal with multiple copies of large assets that your add-on might use is also a nice bonus. But you also have to deal with problems like this issue if you don't use the tech right. I guess, as with any project, it comes down to: Use git, use a remote repo, and push often. Backups are good. They make these bugs much less catastrophic, whenever they do occur, which I have found to be more often than one would think.

from blender_vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.