acarabott / supercollider-sublime

Sublime Text 3 Package for SuperCollider
MIT License
17 stars 4 forks source link

.loadRelative doesn't work #9

Closed tesla9 closed 6 years ago

tesla9 commented 6 years ago

loadRelative function always causes an error: "ERROR: can't load relative to an unsaved"

acarabott commented 6 years ago

This is because loadRelative calls thisProcess.nowExecutingPath which according to the docs...

This method is supported in the SuperCollider IDE, the Macintosh-only SuperCollider.app, and the scel (SuperCollider-Emacs-Lisp) environment. In other editor environments, it will return nil.

So unfortunately this is not possible from within Sublime.

tesla9 commented 6 years ago

super!, thank you for quick response and explanation.