kindohm / vscode-tidalcycles

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

Could not find module ‘Sound.Tidal.Context’ (vscode + stack) #6

Closed janaipakos closed 7 years ago

janaipakos commented 7 years ago

Hi, thanks for making this. It seems like the repl is not importing tidal: Could not find module ‘Sound.Tidal.Context’

I'm successfully getting sound through SuperCollider, shift+enter highlights commands (d1 $ sound "bd sn"), and the tidalcycles repl is showing activity.

I use stack and set the path within vscode settings, and tried a boot file:

"tidalcycles": {
        "ghciPath": "/Users/home/.stack/programs/x86_64-osx/ghc-8.0.2/bin/ghci",
        "tidalBootPath": "~/path/to/tidalcyclesBoot.hs"
        }

I also tried putting import Sound.Tidal.Context at the top of the test file, and calling it with shift+enter with not luck.

Any clue why Sound.Tidal.Context isn't being imported?

kindohm commented 7 years ago

@janaipakos thanks for the info. Usually that error means that Tidal is not installed (e.g. cabal install tidal).

I'm confused about this:

I'm successfully getting sound through SuperCollider, shift+enter highlights commands (d1 $ sound "bd sn"), and the tidalcycles repl is showing activity.

So when you eval a Tidal pattern in the VS Code editor with shift+enter, SuperCollider plays the samples and plays your pattern? But you still see the error?

janaipakos commented 7 years ago

SuperCollider plays sound, but VS Code does not. When I eval a Tidal patten in VS Code editor, the snipped it 'highlighted' but there's no sound produced for the sample.

I ended up running an instance of VS Code through stack exec and it worked :man_shrugging:

This is probably a stack quirk and not related to the plugin.

kindohm commented 7 years ago

ahh, got it. can we close this issue?

janaipakos commented 7 years ago

Yup, thanks :)

pizzatero commented 4 years ago

hi brothers, i have this problem in atom when I open the packages Tidal, I see this text:

Choose ghcup default path: /Users/miguelchaparro/.ghcup/bin Ghci command: /Users/miguelchaparro/.ghcup/bin/ghci Ghc-pkg command: /Users/miguelchaparro/.ghcup/bin/ghc-pkg Load BootTidal.hs from /Users/miguelchaparro/.atom/packages/tidalcycles/lib/BootTidal.hs t>

: error: Could not find module ‘Sound.Tidal.Context’ It is not a module in the current program, or in any known package.

How can i do good?

best regards!

kindohm commented 4 years ago

Could not find module 'Sound.Tidal.Context' usually means that you do not have Tidal installed.

pizzatero commented 4 years ago

yeah bro!! I did it ! just i needed to put a code in terminal ! :)

Miguel Chaparro +49 15143418810 / Germany +57 3137322792 / Colombia

On Wed, 25 Mar 2020 at 13:29, Mike Hodnick notifications@github.com wrote:

Could not find module 'Sound.Tidal.Context' usually means that you do not have Tidal installed.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kindohm/vscode-tidalcycles/issues/6#issuecomment-603812057, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5XFBLGMASNF7LJ6FJ5ER3RJH2JXANCNFSM4DFWKXGA .