Skip to content

Instantly share code, notes, and snippets.

@thundernixon
Last active March 25, 2021 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thundernixon/588273076abfee345ad17c21a6b70389 to your computer and use it in GitHub Desktop.
Save thundernixon/588273076abfee345ad17c21a6b70389 to your computer and use it in GitHub Desktop.
Run RoboFont script from VS Code
{
"version": "2.0.0",
"tasks": [
{
"label": "Run in RoboFont",
"type": "shell",
"command": "robofont",
"args": [
"-p",
"${file}"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
@thundernixon
Copy link
Author

If you wish to bring up the RoboFont Output Window when you run the script (for instance, to view the result of print() statements), update the task's args list to:

"args": [
            "-p",
            "${file}",
            "-c",
            "from mojo.UI import OutputWindow",
            "-c",
            "OutputWindow().show()"
        ],

@eduairet
Copy link

Hi Stephen, I'm attempting to use this command and I'm getting this result:

zsh: parse error near `()'
The terminal process "/bin/zsh '-c', 'robofont -p '/Users/eat/Library/Application Support/RoboFont/scripts/info.py' -c 'from mojo.UI import OutputWindow' -c OutputWindow().show()'" terminated with exit code: 1.

Do you know what does it mean?

Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment