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

Linked Cura Settings (SymLink), Plugin not working #21

Closed
bbraeu opened this issue Oct 21, 2022 · 6 comments
Closed

Linked Cura Settings (SymLink), Plugin not working #21

bbraeu opened this issue Oct 21, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@bbraeu
Copy link

bbraeu commented Oct 21, 2022

Hi,

unfortunately the plugin is not working when the directory for the cura settings is linked via a symlink.
I created the link to be able to sync the settings via OneDrive:
mklink /d C:\Users<Username>\AppData\Roaming\cura C:\Users<Username>\OneDrive\3DDruck\CuraSettings

With this setup i get the following error when i try to create a custom tower:

image

@kartchnb
Copy link
Owner

That is unfortunate. That appears to be an issue with OpenSCAD itself.

There may be something I can do to work around the issue. I'll give it some thought.

Thank you for letting me know!

@kartchnb kartchnb self-assigned this Oct 22, 2022
@kartchnb kartchnb added the bug Something isn't working label Oct 22, 2022
kartchnb added a commit that referenced this issue Nov 1, 2022
If OpenScad source files are in symlinked dirs, they are copied to
a temporary directory before being passed to OpenScad
kartchnb added a commit that referenced this issue Nov 1, 2022
@kartchnb
Copy link
Owner

kartchnb commented Nov 1, 2022

Okay, I think I've figured out a fix for this.

Although I can't fix the underlying problem with OpenSCAD, I've tried to implement a work-around. If an OpenSCAD source file is in a symlink directory, my plugin will now copy it to the system's temporary directory and have OpenSCAD process it from there. This should fix the issue, although I can't test it on my system to be sure.

If you get a moment, please try version 2.4.2 of my plugin, which you can find here: https://github.com/kartchnb/AutoTowersGenerator/releases/tag/v2.4.2

If you just download the .curapackage file that matches your version of Cura, you can install it by dragging and dropping it onto a running Cura window.

If you don't mind letting me know if it works, I would appreciate it.

Thank you again!

@bbraeu
Copy link
Author

bbraeu commented Nov 7, 2022

Hi, unfortunately i still get the same error :-(
Maybe it is because my whole Cura settings directory is a link and nur just the directory with the scad files?

@kartchnb
Copy link
Owner

Maybe, but it seems like that shouldn't be an issue. I'll have to spend some time trying to duplicate the problem and write a proper fix for it.

@kartchnb
Copy link
Owner

I finally found time to duplicate the issue and I think I have a fix.

The problem occurs if any of the folders in the plugin path are symlinks. My plugin now checks for this and copies OpenScad scripts to a temporary location, which seems to work now. I would appreciate a second set of eyes on this, though.

The fix is in release 2.6.1, which you can find here: https://github.com/kartchnb/AutoTowersGenerator/releases/tag/v2.6.1

Just download the .curapackage that corresponds to your version of Cura and drag and drop it onto a running Cura Window to install it.

@kartchnb
Copy link
Owner

I believe this is fixed. Closing it for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants