-
Notifications
You must be signed in to change notification settings - Fork 5
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
Make the chocolatey install more robust? #2
Comments
Chocolatey packages are unrelated to haskell platform though, they install only the thing on the box. If you want to install e.g. Anyway the cabal 3.0 chocolatey package is able to configure the paths automatically if you also install msys2. It won't however be able to correct a broken config from another install. So to build network you need |
Thanks so much for clearing this up @Mistuke! I can't tell you how much trouble we've had with this.. I guess changing the dependency in tidal to haskell-dev is all we need to do. Thanks again! |
The configuration part is new in the cabal 3.0 package. So if it doesn't work out of the box for you let me know and I'll investigate :) |
The haskell-dev package seems to have problems at the moment https://chocolatey.org/packages/haskell-dev For now I bumped the versions on all the dependencies (chocolatey can't do version ranges?), hopefully that'll fix things with msys2: 03b6db0 I also added an sclang script for installing all the quarks: 964e468
I also reinstated the atom plugin install and switched to cabal v2-install. I haven't actually tested this yet, but if/when it all checks out, @kindohm what would the process be for updating this on chocolatey? (Sorry this should have been a PR rather than direct commits..) |
Currently not working because |
@Mistuke I've been trying to get this working but no joy. I have the latest chocolatey packages of msys2 and ghc installed and
|
With 5e8923a, sclang is running fine. |
Can you confirm that your cabal version is 3.0.0.0? If so can you paste the output of |
Yes @Mistuke, it's 3.0.0.0:
Here's the output of
|
I tried cleaning up and starting again by removing I thought reinstalling ghc with However I found a windows partition on my laptop, and it works fine there. |
Yeah that config was damaged You can fix your configuration by first replacing it with the default one
and then reinstall the choco package to recreate the config
It's not the GHC package that contains the configuration code, it's cabal. |
Aha that makes sense, and what's more, things are compiling now. Thanks again @Mistuke! I may well just be misunderstanding the new cabal stuff, but I still can't load these modules though. I do |
cabal now defaults to see https://www.haskell.org/cabal/users-guide/nix-local-build.html#cabal-v2-install, which means what you probably want is |
The package itself is fine, but chocolatey's servers are having DNS issues.
They do, chocolatey uses NuGet as it's package format, this is how ranges work https://docs.microsoft.com/en-us/nuget/concepts/package-versioning |
That's strange.. I couldn't get Most tidal users are non-programmers so a simple, global library install works well for them. |
hmm tbh I'm not too sure about the |
I do remember there being a change to the defaults after some people didn't want the environment files to be on by default. I don't recall if GHCi was also changes to not read them by default. which would explain why it didn't work for you. |
Heh thanks @Mistuke, glad it's not just me! @hvr do you have a moment to offer advice here.. I ideally need to be able to install the tidal library so that if I run I'm trying this sort of thing:
.. but that doesn't seem to be reinstalling anything. The reason for this is that there are a range of editor plugins for tidal that launch |
@Mistuke @yaxu first off, the setting of Since things work as intended on Linux, the thing I'm wondering now is whether
I don't have a suitable windows system right now; so maybe @Mistuke could help debug this...? :-) |
I attempted to publish the new package based on @yaxu's changes, but the package is failing automated testing on chocolatey.org because If anyone has a quick answer about how to get the path to where Atom and apm are installed (I don't think it's in Program Files, like sclang is, see https://github.com/tidalcycles/tidal-chocolatey/blob/master/tidal/tools/chocolateyinstall.ps1#L5) then I can make the quick change and re-publish. Otherwise I will need to research this a bit in order to make the right change. |
Added apm to path with |
I tweaked the path to apm and resubmitted. It seems people can install it without it being approved Here's a first attempt at installation instructions: https://tidalcycles.org/index.php/Windows_choco_install |
The automated test failed: It seems to be a network error, just as with @Mistuke's problem with the haskell-dev package https://chocolatey.org/packages/haskell-dev But strangely web searches for the error aren't turning up anything useful.. I guess I'll just re-run the test.
|
Yeah, I've been going back and forth with them on various support channels for a while now as haskell-dev has been having this issue for a month+. They are actively looking into it, but so far nothing. The free community based stuff is probably not a priority :) so all we can do is wait.. |
It ran this time, but with another failure - not finding |
So if that's being installed by another chocolatey package. Why does calling |
@Mistuke I'm getting positive reports from end-users that the install works, so it's a little strange that it doesn't work on the test server.
That seems to work, so don't know what's going on here.. |
The only thing I can think of is that the path I'm not sure how to proceed without making some significant debug edits to the install script to see what is in the
If Atom is there, then I'm not sure what the issue is. If Atom is not there, then we'll probably need to do some more console output debugging to figure out where it is on the test server. |
https://github.com/chocolatey-community/chocolatey-test-environment/blob/master/ReadMe.md You can replicate the test env locally if you're inclined. |
@kindohm Hmm, the log says this for atom: Further based on the sc3plugins location, I'll try adding that trace line though.. |
I've been trying to get the test environment running under linux mint as suggested by @Mistuke: No luck, it just won't start. Could someone else have a go please? |
Here's the error I get..
|
@yaxu Fastest way to get an answer on that is to just ask them at https://gitter.im/chocolatey/choco they're usually quite fast with responding when it's not holidays :) |
After a few attempts I finally managed to get the test environment running on my laptop. |
We could switch to vscode.. But I think better to resubmit as-is (with updated tidal version) and ask for an exemption. |
Resubmitted for now: https://chocolatey.org/packages/TidalCycles/1.6.1 |
I think the right thing to do would be to split this out into several packages.. tidalcycles-lib (for the haskell library), superdirt, tidalcycles-atom (for the atom plugin) and tidalcycles-vscode (for the code plugin).. then we'd only have to mark the atom plugin one as exempt from testing. This wouldn't be too much work.. Here's my guess at a vscode version https://github.com/tidalcycles/tidal-chocolatey/blob/vscode/tidal/tools/chocolateyinstall.ps1 |
There seem to be two main problems
The former problem is a very long standing bug in windows haskell platform installer (haskell/haskell-platform#324), which means it's not able to install packages that require compilation. It's fixed in a new installer, but that's not yet released. haskell/haskell-platform#320 (comment)
Hopefully that'll happen soon.
The second problem is to do with getting paths right with some manual git clones of the Quarks.
I think better to get sclang to do the installation. This is possible by piping the following into sclang on the commandline:
The text was updated successfully, but these errors were encountered: