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

Issue with path when generating instances #100

Open
LettError opened this issue Oct 17, 2024 · 1 comment
Open

Issue with path when generating instances #100

LettError opened this issue Oct 17, 2024 · 1 comment

Comments

@LettError
Copy link
Owner

Generating instances by hitting the Generate Instances button in the instances tab.

Traceback (most recent call last): File "lib/doodleDelegate.pyc", line 90, in sendEvent_ File "/Applications/RoboFont_4.5b.app/Contents/Resources/lib/python3.12/vanilla/vanillaBase.py", line 539, in action_ self.callback(sender) File "/Users/erik/Library/Application Support/RoboFont/plugins/DesignspaceEditor2.roboFontExt/lib/designspaceEditor/ui.py", line 1497, in instancesEditorGenerateToolsCallback GenerateInstanceSheet(self.w, self.operator, instances) File "/Users/erik/Library/Application Support/RoboFont/plugins/DesignspaceEditor2.roboFontExt/lib/designspaceEditor/ui.py", line 253, in __init__ instanceDescriptor.path = os.path.abspath(os.path.join(os.path.dirname(self.operator.path), instanceDescriptor.filename)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen posixpath>", line 90, in join File "<frozen genericpath>", line 164, in _check_arg_types TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType'

@typemytype
Copy link
Collaborator

I guess here the instance.filename is still None, dont know how this happens, every new instance will or when the filename attribute is None a new file name is generated based on the prefs, family and style name

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

No branches or pull requests

2 participants