Skip to content
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

Windows support #53

Closed
kajvans opened this issue Sep 24, 2021 · 8 comments · Fixed by #1617
Closed

Windows support #53

kajvans opened this issue Sep 24, 2021 · 8 comments · Fixed by #1617
Labels
P-Windows Issue affecting the Windows platform.

Comments

@kajvans
Copy link

kajvans commented Sep 24, 2021

i am trying to use the command stack run but i get the error:

In the dependencies for brick-0.64:
    unix needed, but the stack configuration has no specified version  (latest matching version is 2.7.2.2)
needed due to swarm-0.1.0.0 -> brick-0.64

In the dependencies for vty-5.33:
    unix needed, but the stack configuration has no specified version  (latest matching version is 2.7.2.2)
needed due to swarm-0.1.0.0 -> vty-5.33

how can i fix this

@kajvans kajvans added the Bug The observed behaviour is incorrect or unexpected. label Sep 24, 2021
@byorgey
Copy link
Member

byorgey commented Sep 24, 2021

Ah, my apologies. Swarm depends on the vty library, which does not support Windows. So that means Swarm only works on Linux or OSX, at least for now. I would have mentioned it in the README if I had realized it.

I do not know whether it might be possible to get it to build on Windows using something like Cygwin or the Windows Subsystem for Linux. I would be happy to receive any reports either way.

I will leave this issue open and change the name as a place to collect ideas and information re: supporting Windows.

@byorgey byorgey changed the title error while creating the build plan Windows support Sep 24, 2021
@byorgey byorgey removed the Bug The observed behaviour is incorrect or unexpected. label Sep 24, 2021
@abyo
Copy link

abyo commented Sep 24, 2021

It is possible to get the game running with Windows Subsystem. Installation is really easy too those days. Run wsl in a powershell.

wsl --install

Follow instructions (this will install ubuntu by default). Run the wsl then upgrade/update ubuntu. Whenever the update is over, install ghc then ghcup.

apt-get install ghc
curl -sSL https://get.haskellstack.org/ | sh

Install stack (if you didn't press yes before), cd in repo then run stack.

ghcup install stack
stack run

@byorgey
Copy link
Member

byorgey commented Sep 24, 2021

@abyo Thanks, glad it works! I am curious, do you really need to apt-get install ghc first? You should just be able to get ghcup then use that to install stack.

@abyo
Copy link

abyo commented Sep 24, 2021

@byorgey I had an issue and found that installing ghc first resolved it, but I suppose you don't have too.

@amalloy
Copy link

amalloy commented Sep 25, 2021

I ran it on WSL as well. ghcup worked fine, after I installed the prerequisite packages it asked me for.

@byorgey
Copy link
Member

byorgey commented Sep 25, 2021

Since it seems we have a viable path to building on Windows, I'm going to close this issue.

@byorgey byorgey closed this as completed Sep 25, 2021
@Toby222
Copy link

Toby222 commented Oct 18, 2021

Side note: Windows Terminal's text rendering seems to be way slower than just running powershell itself

@xsebek
Copy link
Member

xsebek commented Aug 26, 2023

With jtdaugherty/vty#260, there may be soon (?!) be a way to build native Swarm on Windows.

@xsebek xsebek reopened this Aug 26, 2023
@xsebek xsebek added the P-Windows Issue affecting the Windows platform. label Sep 9, 2023
@byorgey byorgey linked a pull request Nov 14, 2023 that will close this issue
@mergify mergify bot closed this as completed in #1617 Nov 14, 2023
mergify bot pushed a commit that referenced this issue Nov 14, 2023
Added support for running on Windows, in command line or Powershell terminals.

Currently terminal emulators such as mintty, ConEmu, alacritty, etc are not supported.

Addresses issues #1607 and #53.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-Windows Issue affecting the Windows platform.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants