Skip to content

Conversation

@berberman
Copy link
Collaborator

Closes #1728

As discussed in the issue, executables like haskell-language-server-8.10 are really confusing - they could be the symlink of haskell-language-server-8.10.2, haskell-language-server-8.10.3, or even haskell-language-server-8.10.4, but those are definitely not interchangeable. So it's time to remove them. Now running ./cabal-hls-install hls-8.10.4 will create haskell-language-server-wrapper, haskell-language-server, and haskell-language-server-8.10.4.

Copy link
Member

@Ailrun Ailrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the update!

let copyCmd old new = if os == "mingw32"
then liftIO $ copyFile old new
else command [] "ln" ["-f", old, new]
copyCmd (localBin </> "haskell-language-server" <.> exe) (localBin </> minorVerExe)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jumm, i think the ghc-x.y.z (minorVerExe in the code) is still needed, to have several hls versions and let the wrapper choose the correct one (the hlsBin in the wrapper code)
We should remove only the ghc-x.y

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah sorry you have renamed it to verExe, nvm

Copy link
Member

@jneira jneira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for cleaning it out

@jneira jneira merged commit f35e2cd into haskell:master May 7, 2021
@berberman berberman deleted the exe-xy branch May 7, 2021 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove handling of ghc-x.y hls executables

3 participants