Skip to content
This repository has been archived by the owner on Mar 10, 2019. It is now read-only.

Installing with stack #38

Open
jeffswitzer opened this issue May 13, 2017 · 5 comments
Open

Installing with stack #38

jeffswitzer opened this issue May 13, 2017 · 5 comments

Comments

@jeffswitzer
Copy link

I'm on mac os and have tidal installed and working via stack however I'm having trouble getting tidal-midi installed.

Per the prereq instructions I did
brew install portmidi

Then when I ran stack install tidal-midi I got the following message:

In the dependencies for tidal-midi-0.9.4:
    PortMidi must match ==0.1.6.0, but the stack configuration has no specified version (latest applicable is 0.1.6.0)
    tidal-0.1.0.0 must match >=0.9.4 (latest applicable is 0.9.4)

Recommended action: try adding the following to your extra-deps in /Users/jeff/Development/tidal/stack.yaml:
- PortMidi-0.1.6.0

So I added - PortMidi-0.1.6.0 to my stack.yaml

Then when I run stack install tidal-midi I still get:


Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for tidal-midi-0.9.4:
    tidal-0.1.0.0 must match >=0.9.4 (latest applicable is 0.9.4)

Plan construction failed.

Any tips? I'm new to haskell, but heard using stack was the better route than cabal. I'm used to npm in the js world though and it seems similar.

I also tried to install 0.9.4 specifically but got the following:

kaladin:tidal jeff$ stack install tidal-0.9.4
Error parsing targets: tidal target has a specific version number, but it is a local package.
To avoid confusion, we will not install the specified version or build the local one.
To build the local package, specify the target without an explicit version.

Thanks for any help!

@kindohm
Copy link
Contributor

kindohm commented May 15, 2017 via email

@jeffswitzer
Copy link
Author

@kindohm yep I've ran brew install portmidi
This error is weird to me:
tidal-0.1.0.0 must match >=0.9.4 (latest applicable is 0.9.4)
Do you think there is a typo in the most recent tidal stack version, like it should be 1.0.0 instead of 0.1.0.0?

@kindohm
Copy link
Contributor

kindohm commented May 17, 2017 via email

@jeffswitzer
Copy link
Author

Since you are seeing 0.8.2 which is the current tidal version in stackage LTS, you can switch to the stackage nightly build to get tidal-0.9.4. I was messing with this last night - here is a related stackoverflow I opened. I didn't get it all figured out yet but will let you know as I progress. Do you know how to answer Alexis Kings question in the stackoverflow about whether I need to be doing stack install vs stack build? I'm trying to use stack exec atom at the end to open the atom editor which is supposed to allow the atom tidal plugin to use stacks ghci I think. At one point I had that part working just without the tidal-midi support.

@kindohm
Copy link
Contributor

kindohm commented May 17, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants