No configured ghc path

Hi,
I’ve tried to update tidal, but got this message:

No configured ghc path

Ghci command: ghci

Ghci-pkg command: ghc-pkg

Load BootTidal.hs from /Users/Mila/ .atom/ packages/tidalcycles/lib/BootTidal.hs

What should I do?
Thanks!

Hi @milabart, although it doesn’t sound friendly, “No configured ghc path” isn’t actually an error, so perhaps it’s all OK, or maybe there’s something else wrong… Do you see any more messages?

Yeah, there is also this message:
t>
Some flags have not been recognized: prompt-cont,

Variable not in scope: hush

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

Variable not in scope: palindrome :: t1 -> t0


• Variable not in scope: sound :: [Char] -> t1
• Perhaps you meant ‘round’ (imported from Prelude)

t>

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

• Variable not in scope: linger :: [Char] -> t1 -> t0
• Perhaps you meant ‘lines’ (imported from Prelude)


Variable not in scope: loopAt :: Integer -> t2 -> t1


Variable not in scope: chop :: Integer -> t3 -> t2


• Variable not in scope: sound :: [Char] -> t3
• Perhaps you meant ‘round’ (imported from Prelude)

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

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

I forgot to say I use a Mac
OSX El Capitan 10.11.6

I also got this message (in Supercollider), while updating SuperDirt:

CALL STACK:
DoesNotUnderstandError:reportError 0x115404b18
arg this =
< closed FunctionDef > 0x11574c308
arg error =
Integer:forBy 0x1163674e8
arg this = 0
arg endval = 4
arg stepval = 2
arg function =
var i = 4
var j = 2
SequenceableCollection:pairsDo 0x11527c508
arg this = [*6]
arg function =
Scheduler:seconds_ 0x115baf5b8
arg this =
arg newSeconds = 117.830853667
Meta_AppClock:tick 0x115e709b8
arg this =
var saveClock =
Process:tick 0x115bc2428
arg this =
^^ The preceding error dump is for ERROR: Message ‘sanitize’ not understood.
RECEIVER: [ [ a HPF, a HPF ], [ a HPF, a HPF ], [ a HPF, a HPF ], [ a HPF, a HPF ], [ a HPF, a HPF ], [ a HPF, a HPF ], [ a HPF, a HPF ], [ a HPF, a HPF ] ]

exception in GraphDef_Recv: exceeded number of interconnect buffers.
SCDoc: Indexed 1863 documents in 49.71 seconds

1 Like

My guess is that you’ve upgraded the tidal library (via cabal) fine, but that the tidalcycles package in atom also needs upgrading to match. You can do this via the menus in atom, I think it’s edit -> preferences -> packages, and search for tidalcycles.

I think this means your copy of supercollider is a bit out of date: https://github.com/musikinformatik/SuperDirt/issues/143

Could you try upgrading that please?

1 Like

Hi, Yaxu!

Thanks for your help.

I’m afraid I have two different problems here:

I checked the tidal package on atom and it is already updated. However, the message persists.

I also tried to update the SuperCollider, but it says my operating system is very outdated.

As I can’t update the IOS system (my computer it is too old…), could this be the cause of both problems?

Any suggestions on how to proceed?

For supercollider, did you try version 3.9.3 ? https://supercollider.github.io/download

For atom, is that the full error message?

Can you share the contents of this file? /Users/Mila/.atom/packages/tidalcycles/lib/BootTidal.hs

Yeah I managed to update to the version 3.9.3!
But now a new error appeared :slight_smile:

ERROR: API version mismatch: /Users/Mila/Library/Application Support/SuperCollider/Extensions/VOSIMUGens/VOSIM.scx
    This plugin is not compatible with SuperCollider >=3.9.0
    The plugin has not been loaded; please find or compile a newer version.
    (Plugin's API version: 2. Expected: 3)

exception in GraphDef_Load: UGen 'FM7' not installed.
while reading file: '/Users/Mila/Library/Application Support/SuperCollider/synthdefs/superfm.scsyndef'Number of Devices: 2
   0 : "Built-in Input"
   1 : "Built-in Output"

"Built-in Input" Input Device
   Streams: 1
      0  channels 2

"Built-in Output" Output Device
   Streams: 1
      0  channels 2

SC_AudioDriver: sample rate = 44100.000000, driver's block size = 512
SuperCollider 3 server ready.
Requested notification messages from server 'localhost'
localhost: server process's maxLogins (1) matches with my options.
localhost: keeping clientID (0) as confirmed by server process.
Shared memory server interface initialized
loading synthdefs in /Users/Mila/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/core-modules.scd
exception in GraphDef_Recv: UGen 'SwitchDelay' not installed.
---- core synth defs loaded ----
loading synthdefs in /Users/Mila/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/core-synths-global.scd
loading synthdefs in /Users/Mila/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/core-synths.scd
loading synthdefs in /Users/Mila/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/default-synths.scd
exception in GraphDef_Recv: UGen 'MdaPiano' not installed.
exception in GraphDef_Recv: UGen 'MembraneHexagon' not installed.
exception in GraphDef_Recv: UGen 'SawDPW' not installed.
exception in GraphDef_Recv: UGen 'SawDPW' not installed.
exception in GraphDef_Recv: UGen 'AY' not installed.
exception in GraphDef_Recv: UGen 'BMoog' not installed.
exception in GraphDef_Recv: exceeded number of interconnect buffers.
WARNING: SynthDef superfm too big for sending. Retrying via synthdef file
exception in GraphDef_Load: UGen 'FM7' not installed.
while reading file: '/Users/Mila/Library/Application Support/SuperCollider/synthdefs/superfm.scsyndef'exception in GraphDef_Load: UGen 'FM7' not installed.
while reading file: '/Users/Mila/Library/Application Support/SuperCollider/synthdefs/superfm.scsyndef'exception in GraphDef_Recv: UGen 'WaveLoss' not installed.
exception in GraphDef_Recv: UGen 'Squiz' not installed.
exception in GraphDef_Recv: UGen 'CrossoverDistortion' not installed.
exception in GraphDef_Recv: UGen 'PV_Freeze' not installed.
loading synthdefs in /Users/Mila/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/try-load-extra-synths.scd
exception in GraphDef_Recv: UGen 'PV_SpectralEnhance' not installed.
loading synthdefs in /Users/Mila/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/tutorial-synths.scd

loading 251 sample banks:
808 (6) 808bd (25) 808cy (25) 808hc (5) 808ht (5) 808lc (5) 808lt (5) 808mc (5) 808mt (5) 808oh (5) 808sd (25) 909 (1) ab (12) ade (10) ades2 (9) ades3 (7) ades4 (6) alex (2) alphabet (26) amencutup (32) armora (7) arp (2) arpy (11) asa (5) auto (11) baa (7) baa2 (7) bass (4) bass0 (3) bass1 (30) bass2 (5) bass3 (11) bassdm (24) bassfoo (3) battles (2) bd (24) bend (4) ber (1) bev (2) bin (2) birds (10) birds3 (19) bleep (13) blip (2) blue (2) bottle (13) breaks125 (2) breaks152 (1) breaks157 (1) breaks165 (1) breath (1) bubble (8) can (14) casio (3) cb (1) cc (6) chin (4) chink (1) circus (3) clak (2) click (4) clubkick (5) co (4) control (2) cosmicg (15) cp (2) cr (6) crow (4) d (4) db (13) diphone (38) diphone2 (12) dist (16) doido (2) dont (1) dork2 (4) dorkbot (2) dr (42) dr2 (6) dr55 (4) dr_few (8) drum (6) drumtraks (13) e (8) east (9) electro1 (13) erk (1) f (1) feel (7) feelfx (8) fest (1) fire (1) flick (17) fm (17) foo (27) future (17) gab (10) gabba (4) gabbaloud (4) gabbalouder (4) glasstap (3) glitch (8) glitch2 (8) golpista (5) gretsch (24) grit (8) h (7) hand (17) hardcore (12) hardkick (6) haw (6) hc (6) hein (1) hh (13) hh27 (13) hit (6) hmm (1) ho (6) hoover (6) house (8) ht (16) if (5) ifdrums (3) incoming (8) industrial (32) insect (3) invaders (18) jazz (8) jungbass (20) jungle (13) jvbass (13) kicklinn (1) koy (2) kurt (7) latibro (8) led (1) less (4) lighter (33) linnhats (6) lpen (5) lt (16) made (7) made2 (1) mash (2) mash2 (4) metal (10) miniyeah (4) moan (1) monsterb (6) moog (7) mouth (15) mp3 (4) msg (9) mt (16) mute (28) nao (3) newnotes (15) no (1) noise (1) noise2 (8) notes (15) numbers (9) oc (4) odx (15) off (1) outdoor (6) own (1) pad (3) padlong (1) pd (2) pdhi (1) pdhilo (9) pdlo (8) pdslap (6) pe (1) pebbles (1) perc (6) peri (15) pluck (17) poets (1) popkick (10) print (11) proc (2) procshort (8) psr (30) pulsa (11) putin (2) quem (1) rave (8) rave2 (4) ravemono (2) realclaps (4) reverbkick (1) rhy (3) rm (2) rq (3) rs (1) sax (22) sd (2) seawolf (3) sequential (8) sf (18) sheffield (1) short (5) sid (12) sim (7) sine (6) sitar (8) sn (52) space (18) speakspell (12) speech (7) speechless (10) speedupdown (9) stab (23) stomp (10) subroc3d (11) sugar (2) sundance (6) ta (1) tabla (26) tabla2 (46) tablex (3) tacscan (22) tech (13) techno (7) tem (2) tink (5) tok (4) toys (13) trump (11) tss (5) tu (1) tut (2) tutano (3) tymp (8) ul (10) ulgab (5) uxay (3) v (6) voa (12) voa_test (7) voo (2) voodoo (5) what (1) wind (10) wobble (1) words (2) world (3) xmas (1) yeah (31) 
... file reading complete. Required 539 MB of memory.

SuperDirt: listening to Tidal on port 57120
*** ERROR: SynthDef dirt_delay2 not found
FAILURE IN SERVER /s_new SynthDef not found
*** ERROR: SynthDef dirt_delay2 not found
FAILURE IN SERVER /s_new SynthDef not found

Is this the content? Sorry, a little bit lost here…

:set -XOverloadedStrings
:set prompt ""
:set prompt-cont ""

import Sound.Tidal.Context
import System.IO (hSetEncoding, stdout, utf8)
hSetEncoding stdout utf8

-- total latency = oLatency + cFrameTimespan
tidal <- startTidal (superdirtTarget {oLatency = 0.1, oAddress = "127.0.0.1", oPort = 57120}) (defaultConfig {cFrameTimespan = 1/20})

:{
let p = streamReplace tidal
    hush = streamHush tidal
    list = streamList tidal
    mute = streamMute tidal
    unmute = streamUnmute tidal
    solo = streamSolo tidal
    unsolo = streamUnsolo tidal
    once = streamOnce tidal
    first = streamFirst tidal
    asap = once
    nudgeAll = streamNudgeAll tidal
    all = streamAll tidal
    resetCycles = streamResetCycles tidal
    setcps = asap . cps
    xfade i = transition tidal True (Sound.Tidal.Transition.xfadeIn 4) i
    xfadeIn i t = transition tidal True (Sound.Tidal.Transition.xfadeIn t) i
    histpan i t = transition tidal True (Sound.Tidal.Transition.histpan t) i
    wait i t = transition tidal True (Sound.Tidal.Transition.wait t) i
    waitT i f t = transition tidal True (Sound.Tidal.Transition.waitT f t) i
    jump i = transition tidal True (Sound.Tidal.Transition.jump) i
    jumpIn i t = transition tidal True (Sound.Tidal.Transition.jumpIn t) i
    jumpIn' i t = transition tidal True (Sound.Tidal.Transition.jumpIn' t) i
    jumpMod i t = transition tidal True (Sound.Tidal.Transition.jumpMod t) i
    mortal i lifespan release = transition tidal True (Sound.Tidal.Transition.mortal lifespan release) i
    interpolate i = transition tidal True (Sound.Tidal.Transition.interpolate) i
    interpolateIn i t = transition tidal True (Sound.Tidal.Transition.interpolateIn t) i
    clutch i = transition tidal True (Sound.Tidal.Transition.clutch) i
    clutchIn i t = transition tidal True (Sound.Tidal.Transition.clutchIn t) i
    anticipate i = transition tidal True (Sound.Tidal.Transition.anticipate) i
    anticipateIn i t = transition tidal True (Sound.Tidal.Transition.anticipateIn t) i
    forId i t = transition tidal False (Sound.Tidal.Transition.mortalOverlay t) i
    d1 = p 1 . (|< orbit 0)
    d2 = p 2 . (|< orbit 1)
    d3 = p 3 . (|< orbit 2)
    d4 = p 4 . (|< orbit 3)
    d5 = p 5 . (|< orbit 4)
    d6 = p 6 . (|< orbit 5)
    d7 = p 7 . (|< orbit 6)
    d8 = p 8 . (|< orbit 7)
    d9 = p 9 . (|< orbit 8)
    d10 = p 10 . (|< orbit 9)
    d11 = p 11 . (|< orbit 10)
    d12 = p 12 . (|< orbit 11)
    d13 = p 13
    d14 = p 14
    d15 = p 15
    d16 = p 16
:}

:{
let setI = streamSetI tidal
    setF = streamSetF tidal
    setS = streamSetS tidal
    setR = streamSetR tidal
    setB = streamSetB tidal
:}

:set prompt "tidal> "

@milabart I think you have some files left over from a previous install. Maybe delete /Users/Mila/Library/Application Support/SuperCollider completely, before re-installing sc 3.9.3?

You’ll also need to install sc3-plugins - sorry forgot about this!
Instructions are here: https://github.com/supercollider/sc3-plugins

For 3.9.3 it’ll be version 3.9.1 of the plugins that you’ll need, downloaded from this page: https://github.com/supercollider/sc3-plugins/releases

Yes that’s the content of BootTidal.hs. I can see that it’s a little out of date - have you updated the ‘tidalcycles’ package in Atom to the latest version?

Either do that, or just remove the :set prompt-cont "" line from the BootTidal.hs file. It doesn’t work with your older version of haskell.

Hope we’re getting close!

Yeahhhhh! It works!!!
Thanks a lot, Yaxu!

1 Like

Although all works fine, when I open Supercollider, there is this message. Does it mean that I haven’t installed SC3 plugins correctly?

Compiling class library…
Found 714 primitives.
Compiling directory ‘/Applications/SuperCollider 2/SuperCollider.app/Contents/Resources/SCClassLibrary’
Compiling directory ‘/Users/Mila/Library/Application Support/SuperCollider/Extensions’
ERROR: Could not resolve symlink: /Users/Mila/Library/Application Support/SuperCollider/Extensions/SC3plugins
Compiling directory ‘/Users/Mila/Library/Application Support/SuperCollider/downloaded-quarks/Vowel’
Compiling directory ‘/Users/Mila/Library/Application Support/SuperCollider/downloaded-quarks/Dirt-Samples’
Compiling directory ‘/Users/Mila/Library/Application Support/SuperCollider/downloaded-quarks/SuperDirt’
numentries = 826025 / 12137304 = 0.068
5361 method selectors, 2264 classes
method table size 12797784 bytes, big table size 97098432
Number of Symbols 12104
Byte Code Size 370292
compiled 334 files in 5.74 seconds
compile done
localhost : setting clientID to 0.
internal : setting clientID to 0.
Class tree inited in 0.02 seconds

*** Welcome to SuperCollider 3.9.3. *** For help press Cmd-D.

Hi Everyone,

I have a similar issue. For the sample row
d1 $ sound "bd sn"
Error message is

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

* Variable not in scope: sound :: [Char] -> t1 -> t0
* Perhaps you meant `round' (imported from Prelude)

I have 1.45.0 Atom with fresh TidalCycles, 3.11.0 SuperCollider and 8.4.3. GHCi. According to SuperCollider logs, SuperDirt is running just fine & dandy. Weird abort port 57120. Do these processes, running on my local desktop, communicate with each other through a service port of my router? :open_mouth:

Also, my system is 64-bit Windows 10 with i5-2520M CPU @ 2.50 GHz and 4 gigs of RAM. When I'm running Atom & SuperCollider my computer gets way too slow to google issues comfortably. Like this textbox display has up to 1500 ms delay when I'm typing this message. Do you have something more lightweight setup to run Tidal on?

Thanks for the help!!

1 Like

It looks like sc3-plugins might not be installed.

If d1 $ n "c a f e" # sound "supermandolin" works, then it's fine. If it doesn't, then you'll need to install the sc3-plugins that matches your version of supercollider.

Either way, I think you can safely delete /Users/Mila/Library/Application Support/SuperCollider/Extensions/SC3plugins to get rid of that error message, if it bothers you :slight_smile:

Hi,
It looks like everything is installed fine, except the tidal library itself. Try running this from the commandline:

cabal update
cabal v2-install tidal --lib

If that last command doesn’t work, then do this instead:

cabal install tidal

Supercollider listens on that port, but only for local connections, inside your computer. It’s for tidal to send it trigger messages, and won’t be available to the outside world.

Can you have a look at your process list to see what seems to be causing the problem? E.g. how much memory and/or cpu is being used and by what. Maybe there are other apps/services that you could close.

Otherwise I think the VS code editor is a lighter alternative to atom:
https://tidalcycles.org/index.php/VS_Code

There are also emacs and vim, but they are a bit difficult to get into:
https://tidalcycles.org/index.php/List_of_tidal_editors

Hi Yaxu,

I’ve already had tidal-1.4.8 installed with cabal, so I went with --reinstall. No changes in behavior.

I think Boot Tidal is not working in Atom. It says in error red:

syntax: :script

If I run the BootTidal.hs script manually in GHCi, I can get the sounds playing. I think I’ll go with emacs/vim at this point…

Win 10 OS eats 2 gigs, making 2 available in task manager. Atom+SuperCollider+Chrome eats up 0.5 gigs respectively. Rest is background system tasks.

Ah yes - I think that's a bug in ghci, where it can't load scripts with spaces in the path. :confused: If you copy BootTidal.hs somewhere without a space in the path, and then change the settings for the atom TidalCycles package so it looks there, it should work.

I don't think it is spaces in paths - I have the same symptoms as DJgUTpERfORaTiON and no spaces in any paths.

Is the recommendation to switch editors then? If so, what alternatives have been tested on Linux?

Would it be preferable to downgrade back to 1.4.8 so I don't fall further behind (I haven't even started week 2 yet)?