tidalcycles / vscode-tidalcycles

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

Could not find module 'Sound.Tidal.Context' #32

Closed tjex closed 2 years ago

tjex commented 2 years ago

After installing everything via the curl install script on the TidalCycles website and installing the VS code extension, I get this error when trying to evaluate a line:

GHCi, version 8.10.7: https://www.haskell.org/ghc/ :? for help Prelude> Prelude> Warning: GHCi | Warning: GHCi | : 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.

I also get this warning: Configured GHCI path was not found: ghci

I know I may well need to input the location in my PATH, but I can't find any direction on where to find the ghci file. I've tried setting in vs code json settings: "tidalcycles.ghciPath" : "ghci" but it didnt work.

Any help would be great.

yaxu commented 2 years ago

Hi @tillmanjex, it seems your editor is configured fine, and haskell is loading, but somehow the tidal library itself is missing. You can install it from a commandline in a terminal window with these commands:

cabal v1-update
cabal v1-install tidal
tjex commented 2 years ago

Hi @yaxu . So the builds are failing for some reason. I've attached a txt file with the full terminal output. It didnt actually like v1-update and suggested I tried v2-update which I did. It did however accept both v1* and v2-install tidal but both resulted in build errors.

Looks like a lot about an LLVM version not being found.

buildfail.txt

tjex commented 2 years ago

installing llvm via homebrew now (not sure if it was included in the main install...) and will try again then report back

tjex commented 2 years ago

no luck @yaxu . still getting the same errors that LLVM cannot be found.

It is however in my $PATH. I've tried /usr/local/opt/llvm@13 and /usr/local/opt/llvm , both to no avail...

I'm on an Apple Silicon machine for reference.

yaxu commented 2 years ago

I'm not a mac user so can't help too much. Have a search on the forum for llvm, maybe a few fellow travellers might have the same issue there: https://club.tidalcycles.org/

tjex commented 2 years ago

fixed it and made a post for others if needed. It came down to mac not seeing the native llvm install as well as clang compilation problems, that I think stemmed from an clang target / architecture missmatch. https://club.tidalcycles.org/t/apple-silicon-llvm-clang-installation-issues-fix/4018