Closed kram1032 closed 2 years ago
Thanks so much for such a detailed account of the installation - I'll try to incorporate it into our guide for windows. Hopefully we can cover more of the various issues that come up. We have a basic guide to using Doom Emacs but of course it doesn't cover everything (it doesn't cover navigation). The most use command from there is SPC h b b
, which you can use to search for other commands. https://thehottgameguide.readthedocs.io/en/latest/getting-started/emacs-commands.html#general-doom-emacs-usage but of course it doesn't cover everything.
For navigating files one thing you can do is get treemacs, which is a bit more visually helpful, or you can also use SPC .
I'm glad you got it working, and I hope you enjoy the game :)
Just to let you know I have made a ton of edits (a lot according to what you wrote above) to the installation page
https://thehottgameguide.readthedocs.io/en/latest/getting-started/installation.html
I later saw the guide for Emacs which was very helpful. It's just listed after the install guide and since I was focused on installation, I didn't see that that exists as well The installation guide looks much more complete now, thanks :)
@kram1032 see #12 for a more streamlined way to get support on Windows via WSL2
I'm a near complete beginner with emacs, so a lot of the below is probably some form of silly. That said, maybe the issues I've had are a good guide for looking at blind spots such as they currently exist in the documentation.
I tried following along with the installation guide. It didn't quite work as described, but I managed to get there. In hoping for a completely foolproof guide in the future, I'll detail what I had to do.
choco install ghc cabal
- worked finecabal install happy alex
- this was the first thing that tirpped me up a bit. In order to make cabal see ghc, I had to close the editor and open it again, so it would see the updated environment variables. There is arefreshenv
function that ought to help with this as well, but for some reason that did nothing.git clone agda
- workscabal install make
- cabal does not find this package and as far as I can tell it really does not exist. I tried cabal update too. To no avail. At that point I broke with the guide. I was suggested to try using stack instead.Here is my process with stack:
stack upgrade
cabal get Agda
cd Agda-2.6.2
stack --stack-yaml stack-9.0.1.yaml install
I now have the correct version of agda installed. At that point, I went back to the guide:
Alt+x package-install
agda2-mode
- was not found. I tried proceeding anyway..doom.d/init.el
within doom, so I did it in a different editor instead. found;;agda
and removed the leading;
sdoom sync
- the text there mentionedagda2-mode
space q R
to restarttest.agda
Ctrl x Ctrl f
, then start typing the file name and enteropen import Agda.Builtin.Nat
Control C Control d, "Nat"
"The Agda mode's version (2.6.3) does not match that of agda (2.6.2)"
So at this point, I have no idea what else I did. It must have been something, but I forget. Maybe all I had to do was once again to close and open emacs again. Because I tried again, and suddenly, I get
Set
, as the guide suggests. No idea where it got the 2.6.3 version from in the first place. But if that can be reverse-engineered somehow, it'd probably be good information for the guide as well.Next up, the cubical library. From here on out, things basically worked without a hassle, but for completeness sake, here is how it went for me:
LOCATION/cubical-0.3
(in windows, clicking on that file won't just turn it into a folder. You'll be taken inside instead) - the folder inside is called "cubical-0.3" so the step of renaming it to that is unnecessaryagda -l fjdsk Dummy.agda
- works%AppData%\agda\libraries
- that folder and file did not exist. So I created them, as instructed.agda -l fjdsk Dummy.agda
again - the library is listed as installedfinally, The HoTT Game
cd
to a location you'd like the HoTT Game to be installedgit clone https://github.com/Jlh18/TheHoTTGame.git
Ctrl x Ctrl f Quest0.a
to open the actual fileCtrl c Ctrl l
- it now loads a bunch of stuff. Success!