AdobeXD / design-system-package-dsp

DSP Documentation
MIT License
335 stars 38 forks source link

[HELP] Error generating tokens: /bin/sh: line 0: cd: No such file or directory #10

Closed doga2308 closed 4 years ago

doga2308 commented 4 years ago

I am trying to add additional tokens within VS Code to a set of tokens which have been pulled from a Creative Cloud library. However, after editing VS Code is (constantly) notifying me to install Style-Dictionary locally. After doing so, nothing happens and as mentioned in the title, after adding an additional token (within VS Code) I receive the error Error generating tokens:

/bin/sh: line 0: cd: /Users//Documents//GitHub: No such file or directory

I don't have any folder called "GitHub" locally and don't understand why the Extension always trying to look for that particular directory! There are no settings within the VS Code Extension, the dsp.json file or any other (available) config file to change the path, which seems to cause this error.

Could you please help me solving this issue?

Much appreciated and keep the great work!

doga2308 commented 4 years ago

I have found the issue myself! 😬 it seems like the token generator is unable to work with folder names that uses spaces .

I used an underscore instead and now it works like a charm. (working on macOS Catalina). Maybe this behaviour could be fixed to make more convenient for the end user.