tidalcycles / vscode-tidalcycles

Support for TidalCycles in VSCode
GNU General Public License v3.0
35 stars 11 forks source link

Ghci path check #24

Closed kindohm closed 5 years ago

kindohm commented 5 years ago

fixes #23. This feature enhances the way that the extension looks for the user's ghci command:

  1. Try to use user's configured path in their settings
    • expand "~" to home directory, if used
  2. If that doesn't exist, check for user's configured command on PATH
  3. If that doesn't exist, look for ghci on PATH
  4. If that doesn't exist, look for ghci in other known locations:
    • /usr/local/bin/ghci
    • $HOME/.ghcup/bin/ghci
  5. If that doesn't exist, throw error.

Errors are displayed in a VSCode pop-up and also in the TidalCycles output window:

Screen Shot 2019-10-18 at 11 55 17 AM