Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Mismatching GHC Versions. Stack project is 8.10.1, HIE is 8.8.3 #1774

Open
SodeshDindayal opened this issue May 22, 2020 · 15 comments
Open

Mismatching GHC Versions. Stack project is 8.10.1, HIE is 8.8.3 #1774

SodeshDindayal opened this issue May 22, 2020 · 15 comments

Comments

@SodeshDindayal
Copy link

I'm a bit of a newbie, is there anyway to uninstall the current GHC version and specifically downgrade to an older version to have it work with hie?

@Avi-D-coder
Copy link
Collaborator

Change your resolver(in stack.yaml) to lts-15.13.
Look under your ~/.stack folder delete ghc 8.10.

Let me know if you have any issues.

@SodeshDindayal
Copy link
Author

The problem is when I'm looking to delete ghc 8.10 I'm only see two two folders with name "ghc 8.6.5" and "ghc 8.8.3"

@Avi-D-coder
Copy link
Collaborator

The path will be something like .stack/programs/x86_64-linux/ghc-tinfo6-8.8.2

@SodeshDindayal
Copy link
Author

I'm on windows. In the path C:\Users\sodes\AppData\Local\Programs\stack\x86_64-windows and not finding anything of that sort named, only the above 2 folders that I mentioned

@Avi-D-coder
Copy link
Collaborator

I can't help with windows specifically, but if you need to save disk space backup ~/.stack/config.yaml and ~/.stack/global-project/stack.yaml if you have ever modified them and then delete the whole stack dir.

@SodeshDindayal
Copy link
Author

Thanks. At this point I'll just use haskell and ghci interchangeably rather than trying to have it work within vs. Almost lost my sanity during this process

@Avi-D-coder
Copy link
Collaborator

I hope you reconsider. If you want help, every Saturday at 5PM UTC there is a Haskell group video chat, after the main event at 7PM it's free form, so I would be glad to help then.

@Avi-D-coder
Copy link
Collaborator

It's also worth noting https://github.com/haskell/haskell-language-server/ hie's replacement supports 8.10

@SodeshDindayal
Copy link
Author

Thank you. It was a really tough process to be installing and uninstalling time and time again trying to get it to work, and I haven't even started my coding, this is just to set up the IDE, so that just makes things worse. I'll try to make it for Saturday. Do you think maybe a teamviewer format could be established to help those who don't have a knack for these sort of things?

@Avi-D-coder
Copy link
Collaborator

I'm not exactly clear what you mean by a teamviewer format?

@SodeshDindayal
Copy link
Author

By this I mean a more direct approach by having someone installing the directories and files for you via teamviewer, since it's quite easy to configure something wrong if you don't know what you're doing. But thinking about this again it doesn't really offer a more generic solution that can help everyone, so you can ignore that comment.

@Avi-D-coder
Copy link
Collaborator

Avi-D-coder commented May 22, 2020

Yeah, we try to go for the repeatable approach.
Idealy it should be as easy as following these instructions haskell-language-server/#windows-specific-pre-requirements, it will take a while, but you should not need to delete the stack dir or anything like that.

How did you get GHC (from stack I assume)?

@SodeshDindayal
Copy link
Author

Yea I installed the GHC via stack

@jneira
Copy link
Member

jneira commented May 22, 2020

@SodeshDindayal could you share the project you are trying to open in vscode? The stack.yaml and <project.name>.cabal (or package.yaml) could be specially useful.
Could you share the output of executing hie --version and stack path in a console (last one in the root dir of the project)

@jneira
Copy link
Member

jneira commented May 22, 2020

I'm on windows. In the path C:\Users\sodes\AppData\Local\Programs\stack\x86_64-windows and not finding anything of that sort named, only the above 2 folders that I mentioned

Just in case: there should be another dir inside named msys2-${version}

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

No branches or pull requests

3 participants