Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable not in scope: d1 :: t0 -> t #82

Closed
ohase opened this issue Dec 17, 2019 · 10 comments
Closed

Variable not in scope: d1 :: t0 -> t #82

ohase opened this issue Dec 17, 2019 · 10 comments

Comments

@ohase
Copy link

ohase commented Dec 17, 2019

Variable not in scope: d1 :: t0 -> t

• Variable not in scope: sound :: [Char] -> t0
• Perhaps you meant ‘round’ (imported from Prelude)
@ndr-brt
Copy link
Collaborator

ndr-brt commented Dec 19, 2019

what's the command that caused this error?

@yaxu
Copy link
Member

yaxu commented Dec 19, 2019

My guess is that the tidal library wasn't installed properly. Try cabal v1-install tidal from a terminal window.

@leidundelend
Copy link

I got the same error and tested the tidal installation in ghci. It works fine. When I downgrade the atom package to 3.8.2 everything works as expected. But in 3.8.3 and 3.8.4 it seems to not load the boot file correctly: when I execute the (important) commands from the boot file manually I can make it work...

@ndr-brt
Copy link
Collaborator

ndr-brt commented Jan 2, 2020

this issue went reported when the 3.8.3 were not yet released, don't think it's the same problem

@k0nfus1us
Copy link

I got the same error; ghci + tidal (3.8.4) via CLI working fine.
Running this on Windows right now, and I suspect the ghci path might be parsed wrong somehow.
Defining the ghciPath: parameter in the config.cson (or via UI->Settings...) manually yields a bit more information in the console output:

Custom ghci path configured: C:\Program Files\Haskell Platform\8.4.3\bin\
Ghci command: C:\Program Files\Haskell Platform\8.4.3\bin\ghci
Ghc-pkg command: C:\Program Files\Haskell Platform\8.4.3\bin\ghc-pkg
Load BootTidal.hs from C:\Users\SomeUser\.atom\packages\tidalcycles\lib\BootTidal.hs
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

And of course 'C:\Program' is not recognized as a valid command...

@ndr-brt
Copy link
Collaborator

ndr-brt commented Jan 5, 2020

@k0nfus1us check out v3.8.6, should be fixed

@k0nfus1us
Copy link

@ndr-brt I updated the package in Atom to 3.8.6 and restarted, ghci now showed as loaded! But before parsing the BootTidal.hs it spit out another error: syntax: :script
It turns out the path to BootTidal.hs needs to be free of spaces as well! Once I copied the tidalcycles folder to a path without spaces and set this path in atom-tidalcycles the boot went through.

@ndr-brt
Copy link
Collaborator

ndr-brt commented Jan 7, 2020

woa! will fix this too! thanks for reporting

@ndr-brt
Copy link
Collaborator

ndr-brt commented Jan 7, 2020

there is a problem... ghci's ":script" command does not support " and ' to fold the path

@ndr-brt
Copy link
Collaborator

ndr-brt commented Feb 27, 2020

This issue is resolved, opened #95 for the space-in-path problem

@ndr-brt ndr-brt closed this as completed Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants