Tidal 1.7 install problems

yyeep, that was it! awesomee
I'll check out how this buses are created in superDirt to add the same behaviour to some fx I wrote

1 Like

Hi,

In SC i get that error whenever i try to run

Quarks.checkForUpdates({Quarks.install("SuperDirt", "v1.7.2"); thisProcess.recompile()})

:

Installing SuperDirt
WARNING: SuperDirt has uncommited changes, cannot checkout v1.7.2

Hey @martinmestres

I think this means you have altered files in your SuperDirt that the installer doesn't want to overwrite.

This is most easily fixed on the command line. From the SuperDirt folder (you can find the location in the Language > Quarks interface) in a terminal window you can run git status to see which files changed and git diff to see the changes. You can also run git stash to revert your changes (they are backed up/stashed away somewhere). While you're there you can do the upgrade from the commandline too.. With git pull then git checkout v1.7.2.

Same here just got
t>
• Variable not in scope: d1 :: Pattern ControlMap -> t
• Perhaps you meant ‘dt’ (imported from Sound.Tidal.Context)

Variable not in scope:
  press :: Pattern ControlMap -> Pattern ControlMap

Do you get any errors when you start tidal? What happens when you run tidal_version?

i went back and cleaned it out and started fresh. I think i had just done the install last week the old way after getting SC working on Big Sur but i am good now

TY!

1 Like

Ok i fixed that thing with a fresh SC install :relaxed:

Now i get an issue when trying to install 1.7 from terminal...

C:\Users\Martin>cabal v1-install tidal
Resolving dependencies...
Starting network-3.1.2.1
Building network-3.1.2.1
Failed to install network-3.1.2.1
Build log ( C:\Users\Martin\AppData\Roaming\cabal\logs\ghc-8.8.3\network-3.1.2.1-G9HYsK8KyFEBFYumDTTCVn.log ):
Preprocessing library for network-3.1.2.1..
Building library for network-3.1.2.1..

Access violation in generated code when writing 0x0

Attempting to reconstruct a stack trace...

Frame Code address

  • 0x461da80 0x37f7b66 C:\ProgramData\chocolatey\lib\ghc\tools\ghc-8.8.3\bin\ghc.exe+0x33f7b66
  • 0x461da88 0x3277bb9 C:\ProgramData\chocolatey\lib\ghc\tools\ghc-8.8.3\bin\ghc.exe+0x2e77bb9
  • 0x461da90 0x5
  • 0x461da98 0x5
  • 0x461daa0 0x3d7dc22 C:\ProgramData\chocolatey\lib\ghc\tools\ghc-8.8.3\bin\ghc.exe+0x397dc22
  • 0x461daa8 0x6952c80

er... yes
checking whether C:\PROGRA~3\CHOCOL~1\lib\ghc\tools\GHC-88~1.3\lib../mingw/bin\gcc.exe accepts -g... yes
checking for C:\PROGRA~3\CHOCOL~1\lib\ghc\tools\GHC-88~1.3\lib../mingw/bin\gcc.exe option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking how to run the C preprocessor... C:\PROGRA~3\CHOCOL~1\lib\ghc\tools\GHC-88~1.3\lib../mingw/bin\gcc.exe -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/types.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/uio.h usability... no
checking sys/uio.h presence... no
checking for sys/uio.h... no
checking sys/socket.h usability... no
checking sys/socket.h presence... no
checking for sys/socket.h... no
checking netinet/in.h usability... no
checking netinet/in.h presence... no
checking for netinet/in.h... no
checking netinet/tcp.h usability... no
checking netinet/tcp.h presence... no
checking for netinet/tcp.h... no
checking sys/un.h usability... no
checking sys/un.h presence... no
checking for sys/un.h... no
checking arpa/inet.h usability... no
checking arpa/inet.h presence... no
checking for arpa/inet.h... no
checking netdb.h usability... no
checking netdb.h presence... no
checking for netdb.h... no
checking net/if.h usability... no
checking net/if.h presence... no
checking for net/if.h... no
checking netioapi.h usability... yes
checking netioapi.h presence... yes
checking for netioapi.h... yes
checking for struct ucred... no
checking for gai_strerror... no
checking for gethostent... no
checking for accept4... no
checking for getpeereid... no
checking whether AI_ADDRCONFIG is declared... no
checking whether AI_ALL is declared... no
checking whether AI_NUMERICSERV is declared... no
checking whether AI_V4MAPPED is declared... no
checking whether IPV6_V6ONLY is declared... yes
checking whether IPPROTO_IP is declared... yes
checking whether IPPROTO_TCP is declared... yes
checking whether IPPROTO_IPV6 is declared... yes
checking whether SO_PEERCRED is declared... no
checking for struct msghdr.msg_control... no
checking for struct msghdr.msg_accrights... no
checking for struct sockaddr.sa_len... no
configure: creating ./network.buildinfo
configure: creating ./config.status
config.status: creating include/HsNetworkConfig.h
configure: WARNING: unrecognized options: --with-compiler
cabal: Leaving directory 'C:\Users\Martin\AppData\Local\Temp\cabal-tmp-13368\network-3.1.2.1'
cabal.exe: Error: some packages failed to install:
hosc-0.18.1-CpSQZIOqfMB9ggEyYzZUht depends on hosc-0.18.1 which failed to
install.
network-3.1.2.1-G9HYsK8KyFEBFYumDTTCVn failed during the building phase. The
exception was:
ExitFailure 11
tidal-1.7-BiEhUXd7Cw21TWUQdXhMHF depends on tidal-1.7 which failed to install.

Hm searching that up it seems that it's a bug in ghc 8.8.3 on windows. Upgrading ghc e.g. via choco should hopefully sort it

I upgraded to 8.8.4 via choco and get that :

PS C:\WINDOWS\system32> cabal v1-update
Downloading the latest package list from hackage.haskell.org
To revert to previous state run:
cabal update --index-state='2021-02-03T04:36:54Z'
PS C:\WINDOWS\system32> cabal v1-install tidal

Access violation in generated code when writing 0x0

Attempting to reconstruct a stack trace...

Frame Code address

  • 0x461da80 0x37f7b66 C:\ProgramData\chocolatey\lib\ghc\tools\ghc-8.8.3\bin\ghc.exe+0x33f7b66
  • 0x461da88 0x3277bb9 C:\ProgramData\chocolatey\lib\ghc\tools\ghc-8.8.3\bin\ghc.exe+0x2e77bb9
  • 0x461da90 0x5
  • 0x461da98 0x5
  • 0x461daa0 0x3d7dc22 C:\ProgramData\chocolatey\lib\ghc\tools\ghc-8.8.3\bin\ghc.exe+0x397dc22
  • 0x461daa8 0x68121f0

It seems there are a lot of bugs going around 8.8.x in windows:

Try 8.10.3? https://chocolatey.org/packages/ghc/8.10.3

That one worked :smiley: Tnx Alex !

1 Like

HELLO!

been updating tidal, now I'm getting this error-message: (mac/big sur)

Choose ghcup default path: /Users/michaelstark/.ghcup/bin

Ghci command: /Users/michaelstark/.ghcup/bin/ghci Ghc-pkg command: /Users/michaelstark/.ghcup/bin/ghc-pkg

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

t> Loaded package environment from /Users/michaelstark/.ghc/x86_64-darwin-8.8.4/environments/default

Cannot browse tidal to obtain informations for autocomplete: Error: Command failed: echo ":browse Sound.Tidal.Context" | "/Users/michaelstark/.ghcup/bin/ghci" Loaded package environment from /Users/michaelstark/.ghc/x86_64-darwin-8.8.4/environments/default xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun gcc' failed in phase gcc'. (Exit code: 1)

t> xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun gcc' failed in phase gcc'. (Exit code: 1)

would really appreciate any help! thanks a million!

Hi @Michael_Stark,
I think the top answer here should sort it:
https://apple.stackexchange.com/questions/254380/why-am-i-getting-an-invalid-active-developer-path-when-attempting-to-use-git-a

1 Like

HEY @yaxu, THANKS A MILLION!

1 Like

hi, everything seems to be installed but this error appears when i boot tidal:

Prelude> Prelude> Warning: GHCi | Listening for controls on 127.0.0.1:6010
Warning: GHCi | *** Exception: Network.Socket.sendBufTo: failed (Network is unreachable (WSAENETUNREACH))
Warning: GHCi |
Warning: GHCi | :14:14: warning: [-Wmissing-fields]
Warning: GHCi | * Fields of Target' not initialised: oBusPort, oHandshake Warning: GHCi | * In the expression: Warning: GHCi | Target Warning: GHCi | {oName = "visualiser", oAddress = "192.168.1.1", oPort = 2020, Warning: GHCi | oLatency = 0.2, oSchedule = Live, oWindow = Nothing} Warning: GHCi | In an equation for target':
Warning: GHCi | target
Warning: GHCi | = Target
Warning: GHCi | {oName = "visualiser", oAddress = "192.168.1.1", oPort = 2020,
Warning: GHCi | oLatency = 0.2, oSchedule = Live, oWindow = Nothing}

Then the stream and d1 etc variables are not in scope.

I think you probably have an out of date custom BootTidal.hs . You can start from the latest version here https://github.com/tidalcycles/Tidal/blob/fb9a251f1524d0e76bde71d241b92fa863f783c3/BootTidal.hs

Mine looks pretty much the same as that except with this custom osc target malarkey added on:

-- Send main OSC stream to Supercollder and Processing on PC
tidal <- startStream defaultConfig [(superdirtTarget {oAddress = "192.168.1.1", oPort = 57120, oLatency = 0.11}, [superdirtShape]), (superdirtTarget {oAddress = "192.168.1.1", oPort = 2020, oLatency = 0.1, oSchedule = Live}, [superdirtShape])]


let target = Target {oName = "visualiser", oAddress = "192.168.1.1", oPort = 2020, oLatency = 0.2, oSchedule = Live, oWindow = Nothing}
         
:{
let oscplay = OSC "/play" $ ArgList [("s", Nothing),
                                    ("vowel", Just $ VS "a"),
                                    ("pan", Just $ VF 0.5),
                                    ("volume", Just $ VF 1),
                                    ("cut", Just $ VI 1),
                                    ("intensity", Just $ VI 0),
                                    ("sec", Just $ VF 0),
                                    ("usec", Just $ VF 0),
                                    ("cps", Just $ VF 0),
                                    ("cycle", Just $ VF 0),
                                    ("delta", Just $ VF 0)]
:}

intensity = pF "intensity"


--multiple OSC mappings
let oscmap = [(target, [oscplay]), (superdirtTarget, [superdirtShape])]


stream <- startStream (defaultConfig {cCtrlListen = False}) oscmap

-- Additional OSC messages can be sent with x
:{
let x1 = streamReplace stream 1
    x2 = streamReplace stream 2
    x3 = streamReplace stream 3
    x4 = streamReplace stream 4
    x5 = streamReplace stream 5
    x6 = streamReplace stream 6
    x7 = streamReplace stream 7
    x8 = streamReplace stream 8
:}

I see, trying changing the target config to this:

I've updated this wiki page with the additional config items too:
https://tidalcycles.org/Custom_OSC#Complex_targets_with_multiple_message_formats

I am on macOS 10.13.6 and just updated SuperDirt & TidalCycles & Atom. At first I was getting sound to work in a recent .tidal project but then when rebooting SuperCollider the previously playing .tidal would keep running on startup.

So I tried updating the BootTidal.hs that you linked to above @yaxu and now when booting TidalCycles I get the following error:

t> /Users/magnautica/Documents/TidalCycles/BootTidal.hs:15:111: error: Not in scope: ‘cVerbose’ | 15 | tidal <- startTidal (superdirtTarget {oLatency = 0.1, oAddress = "127.0.0.1", oPort = 57120}) (defaultConfig {cVerbose = True, cFrameTimespan = 1/20})

Ah sorry @gavcloud, the version of BootTidal.hs in that link is too new and has an option not available in the released version of tidal.

I'll update the original post but the correct BootTidal.hs for the latest tidal is here:
https://github.com/tidalcycles/Tidal/blob/fb9a251f1524d0e76bde71d241b92fa863f783c3/BootTidal.hs

1 Like