i am having a lot of trouble figuring out Haskell and ghc again, i would like to uninstall everything and start from scratch, it’s confusing for me the difference between Haskell/ghc/cabal/haskell.
Right now my VScode crashes like this:
Warning: GHCi | Loaded package environment from /Users/montoyamoraga/.ghc/x86_64-darwin-8.6.5/environments/default
Prelude> Prelude> Warning: GHCi |
Warning: GHCi | : error:
Warning: GHCi | Ambiguous module name ‘Sound.Tidal.Context’:
Warning: GHCi | it was found in multiple packages:
Warning: GHCi | tidal-1.4.7 tidal-1.4.7 tidal-1.4.7 tidal-1.4.7 tidal-1.4.7
Warning: GHCi |
Warning: GHCi | :6:39: error: Not in scope: ‘oLatency’
Warning: GHCi |
Warning: GHCi | :6:55: error: Not in scope: ‘oAddress’
Warning: GHCi |
Warning: GHCi | :6:79: error: Not in scope: ‘oPort’
And my SuperCollider like this:
*** ERROR: dlopen ‘/Users/montoyamoraga/Library/Application Support/SuperCollider/Extensions/SC3plugins/StkInst.scx’ err ‘dlopen(/Users/montoyamoraga/Library/Application Support/SuperCollider/Extensions/SC3plugins/StkInst.scx, 2): no suitable image found. Did find:
/Users/montoyamoraga/Library/Application Support/SuperCollider/Extensions/SC3plugins/StkInst.scx: code signature in (/Users/montoyamoraga/Library/Application Support/SuperCollider/Extensions/SC3plugins/StkInst.scx) not valid for use in process using Library Validation: library load disallowed by system policy’
This is an annoying and by now longstanding bug in Haskell…
You can fix it by deleting /Users/montoyamoraga/.ghc/x86_64-darwin-8.6.5/environments/default (the file mentioned at the top of the message as the ‘package environment’), and running cabal install tidal --lib again.
I’ve tried to install using the automated installations, but it seems that they are some errors. I have the version 10.15.4
Warning: Some package(s) failed to build. Try rerunning with -j1 if you can't
see the error.
Failed to build blaze-builder-0.4.1.0. The failure occurred during the
configure step.
Build log (
/Users/alfonsinamora/.cabal/logs/ghc-8.6.5/blz-bldr-0.4.1.0-af16b40d.log ):
Configuring library for blaze-builder-0.4.1.0..
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
`gcc' failed in phase `C Compiler'. (Exit code: 1)
Failed to build base-orphans-0.8.2. The failure occurred during the configure
step.
Build log (
/Users/alfonsinamora/.cabal/logs/ghc-8.6.5/bs-rphns-0.8.2-1e2a10d1.log ):
Configuring library for base-orphans-0.8.2..
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
`gcc' failed in phase `C Compiler'. (Exit code: 1)
Failed to build cabal-doctest-1.0.8. The failure occurred during the configure
step.
Build log (
/Users/alfonsinamora/.cabal/logs/ghc-8.6.5/cbl-dctst-1.0.8-e54e25ea.log ):
Configuring library for cabal-doctest-1.0.8..
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
`gcc' failed in phase `C Compiler'. (Exit code: 1)
Failed to build clock-0.8. The failure occurred during the configure step.
Build log ( /Users/alfonsinamora/.cabal/logs/ghc-8.6.5/clck-0.8-112cf969.log
):
Configuring library for clock-0.8..
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
`gcc' failed in phase `C Compiler'. (Exit code: 1)
Failed to build colour-2.3.5. The failure occurred during the configure step.
Build log ( /Users/alfonsinamora/.cabal/logs/ghc-8.6.5/clr-2.3.5-73772319.log
):
Configuring library for colour-2.3.5..
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
`gcc' failed in phase `C Compiler'. (Exit code: 1)
cabal: Failed to build blaze-builder-0.4.1.0 (which is required by
tidal-1.4.8). See the build log above for details.
Failed to build base-orphans-0.8.2 (which is required by tidal-1.4.8). See the
build log above for details.
Failed to build cabal-doctest-1.0.8 (which is required by tidal-1.4.8). See
the build log above for details.
Failed to build clock-0.8 (which is required by tidal-1.4.8). See the build
log above for details.
Failed to build colour-2.3.5 (which is required by tidal-1.4.8). See the build
log above for details.
That is one thing, the other error seems to be in SC
Fetching https://github.com/supercollider-quarks/quarks.git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: Failed to read quarks directory listing: https://github.com/supercollider-quarks/quarks.git a PrimitiveFailedError
ERROR: Quark 'SuperDirt' not found
CALL STACK:
Exception:reportError
arg this = <instance of Error>
Nil:handleError
arg this = nil
arg error = <instance of Error>
Thread:handleError
arg this = <instance of Thread>
arg error = <instance of Error>
Object:throw
arg this = <instance of Error>
Meta_Quark:new
arg this = <instance of Meta_Quark>
arg name = "SuperDirt"
arg refspec = nil
arg url = nil
arg localPath = nil
var args = nil
Meta_Quarks:install
arg this = <instance of Meta_Quarks>
arg name = "SuperDirt"
arg refspec = nil
var path = nil
var quark = nil
String:include
arg this = "SuperDirt"
< closed FunctionDef > (no arguments or variables)
Interpreter:interpretPrintCmdLine
arg this = <instance of Interpreter>
var res = nil
var func = <instance of Function>
var code = "include("SuperDirt");"SuperD..."
var doc = nil
var ideClass = nil
Process:interpretPrintCmdLine
arg this = <instance of Main>
^^ The preceding error dump is for ERROR: Quark 'SuperDirt' not found
Thank you for your help. I think it was working pretty well. No error messages until I opened Atom.
I boot tidalCycles and the window below was fine I guess:
Ghc-pkg command: /Users/alfonsinamora/.ghcup/bin/ghc-pkg
Load BootTidal.hs from /Users/alfonsinamora/.atom/packages/tidalcycles/lib/BootTidal.hs
Loaded package environment from /Users/alfonsinamora/.ghc/x86_64-darwin-8.6.5/environments/default
t>
t>Listening for controls on 127.0.0.1:6010
t>
Then when I tried to run the line d1 $ sound “bd sn” something went wrong.
Failed to send. Is the ‘SuperDirt’ target running? Network.Socket.sendBuf: does not exist (Connection refused)
Thank you once again and sorry for all the inconveniences.
Thanks a lot! There was a file of SC in a wrong location, I put it in the right place. Now everything works !! Thanks @yaxu and @heavy.lifting for your help !!! Looking forward to start