I am trying to run my first .tidal file but I am having an issue.
Context:
On SuperCollider IDE, I run SuperDirt.start; then s.makeGui;, as I am following this tutorial.
These are the quarks I have installed on SuperCollider IDE:
BatLib
Dirt-Samples
FoxDot
SuperDirt
Vowel
On VSCode, I have the TidalCycles for VSCodev1.4.1 extension.
On VSCode Tidalcycles settings I have the following ghci path set:
The path or command used to run GHCi.
/home/milan/.ghcup/bin/ghci
I have version 9.4.8 of ghci
milan@milan:~$ pwd
/home/milan
milan@milan:~$ ./.ghcup/bin/ghci
GHCi, version 9.4.8: https://www.haskell.org/ghc/ :? for help
On VSCode, I try to run a .tidal file with the following code: d1 $ sound 'cp'
And I get the following error:
GHCi, version 9.4.8: https://www.haskell.org/ghc/ :? for help
ghci> ghci> Warning: GHCi |
Warning: GHCi | <no location info>: error:
Warning: GHCi | Could not find module ‘Sound.Tidal.Context’
Warning: GHCi | It is not a module in the current program, or in any known package.
Warning: GHCi |
Warning: GHCi | <interactive>:6:39: error: Not in scope: ‘oLatency’
Warning: GHCi |
Warning: GHCi | <interactive>:6:55: error: Not in scope: ‘oAddress’
Warning: GHCi |
Warning: GHCi | <interactive>:6:79: error: Not in scope: ‘oPort’
Warning: GHCi |
Warning: GHCi | <interactive>:6:111: error: Not in scope: ‘cFrameTimespan’
Warning: GHCi |
Warning: GHCi | <interactive>:21:38: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.xfadeIn’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:22:42: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.xfadeIn’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:23:42: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.histpan’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:24:39: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.wait’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:25:42: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.waitT’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:26:37: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.jump’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:27:41: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.jumpIn’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:28:42: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.jumpIn'’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:29:42: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.jumpMod’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:30:56: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.mortal’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:31:44: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.interpolate’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:32:48: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.interpolateIn’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:33:39: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.clutch’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:34:43: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.clutchIn’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:35:43: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.anticipate’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:36:47: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.anticipateIn’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:37:41: error:
Warning: GHCi | Not in scope: ‘Sound.Tidal.Transition.mortalOverlay’
Warning: GHCi | NB: no module named ‘Sound.Tidal.Transition’ is imported.
Warning: GHCi |
Warning: GHCi | <interactive>:56:12: error:
Warning: GHCi | Variable not in scope: streamSetI :: t4 -> t
Warning: GHCi |
Warning: GHCi | <interactive>:56:23: error: Variable not in scope: tidal
Warning: GHCi |
Warning: GHCi | <interactive>:57:12: error:
Warning: GHCi | Variable not in scope: streamSetF :: t3 -> t
Warning: GHCi |
Warning: GHCi | <interactive>:57:23: error: Variable not in scope: tidal
Warning: GHCi |
Warning: GHCi | <interactive>:58:12: error:
Warning: GHCi | Variable not in scope: streamSetS :: t2 -> t
Warning: GHCi |
Warning: GHCi | <interactive>:58:23: error: Variable not in scope: tidal
Warning: GHCi |
Warning: GHCi | <interactive>:59:12: error:
Warning: GHCi | Variable not in scope: streamSetI :: t1 -> t
Warning: GHCi |
Warning: GHCi | <interactive>:59:23: error: Variable not in scope: tidal
Warning: GHCi |
Warning: GHCi | <interactive>:60:12: error:
Warning: GHCi | Variable not in scope: streamSetB :: t0 -> t
Warning: GHCi |
Warning: GHCi | <interactive>:60:23: error: Variable not in scope: tidal
tidal> Warning: GHCi |
Warning: GHCi | <interactive>:64:12: error:
Warning: GHCi | • Syntax error on 'cp'
Warning: GHCi | Perhaps you intended to use TemplateHaskell or TemplateHaskellQuotes
Warning: GHCi | • In the Template Haskell quotation 'cp'
tidal>
I see that although I have the TidalCycles for VSCode extension installed, the code from .tidal files do not appear marked, it appears displayed as plain text.
I already tried reinstalling the TidalCycles for VSCode extension and restarting the IDE.
Looks like this is linked to the latest Tidalcycles package update. What worked for me was selecting Install Specific Version and then select 1.4.1 and it should work again!
The original error was from 2024, back when v1.4.1 of the extension was published. I'm skeptical that v2.0.0 is causing the error, but @blizzy seems to suddenly have issues after the v2.0.0 extension update.
Perhaps the biggest change in the extension is that it dynamically looks for Tidal's BootTidal.hs file in the cabal installation location.
@blizzy@liimxa@Milan can you provide a screenshot of the very beginning of the extension bootup process? I'm interested in seeing these lines on your systems:
hey there! so after updating the extension, oddly enough I get this error when initially trying to boot tidal, but if I evaluate a code block a second time everything seems to work & sound fine. (also, minor issue, but my code evaluation highlight color seems to have changed with the update. not sure if I'm misremembering though)
2025-05-03 12:17:08.566 [info] Custom Tidal boot path is not configured
2025-05-03 12:17:08.566 [info] Local Tidal boot file was found: /Users/may/Documents/music-tools/tidal/BootTidal.hs
2025-05-03 12:17:08.566 [info] custom GHCI base path configured at ghci
2025-05-03 12:17:08.566 [info] GHCI path: ghci
2025-05-03 12:17:08.566 [info] Tidal boot path: /Users/may/Documents/music-tools/tidal/BootTidal.hs
2025-05-03 12:17:08.703 [info] t> Loaded package environment from /Users/may/.ghc/aarch64-darwin-9.6.7/environments/default
2025-05-03 12:17:09.432 [info] t> ghci> ghci>
2025-05-03 12:17:09.497 [info] t> [TidalCycles version 1.9.5]
Installed in /Users/may/.local/state/cabal/store/ghc-9.6.7/tdl-1.9.5-54e109f8/share
Listening for external controls on 127.0.0.1:6010
ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci|C ongnheccit|e d gthoc iS|u pegrhDciir|t .
ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci|
2025-05-03 12:17:09.571 [info] t> ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci| ghci|
2025-05-03 12:17:09.580 [info] t>
2025-05-03 12:17:09.589 [info] t>
2025-05-03 12:17:09.590 [info] t>
2025-05-03 12:17:09.631 [error] t>
[GHC-58481] parse error on input ‘:’
[GHC-39999]
• No instance for ‘Show (Pattern ValueMap -> IO ())’
arising from a use of ‘print’
(maybe you haven't applied a function to enough arguments?)
• In a stmt of an interactive GHCi command: print it
[GHC-58481]
parse error on input ‘$’
Suggested fix: Perhaps you intended to use TemplateHaskell
[GHC-58481]
parse error on input ‘$’
Suggested fix: Perhaps you intended to use TemplateHaskell
[GHC-58481]
parse error on input ‘$’
Suggested fix: Perhaps you intended to use TemplateHaskell
[GHC-58481]
parse error on input ‘$’
Suggested fix: Perhaps you intended to use TemplateHaskell
[GHC-58481] parse error on input ‘#’
[GHC-58481] parse error on input ‘#’
[GHC-58481] parse error on input ‘#’
[GHC-58481] parse error on input ‘#’
[GHC-58481] parse error on input ‘#’
[GHC-58481] parse error on input ‘#’
unknown command ':}'
use :? for help.
Hmm that file works fine for me. The error message is complaining about a line print it which isn't in that file. Unless it's in /Users/may/Library/Application\ Support/SuperCollider/synthdefs/mi-ugens-params.hs ?