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

The getPathToOptableXML trick does not work in HLS #47

Open
Ptival opened this issue Jun 9, 2023 · 0 comments
Open

The getPathToOptableXML trick does not work in HLS #47

Ptival opened this issue Jun 9, 2023 · 0 comments

Comments

@Ptival
Copy link
Contributor

Ptival commented Jun 9, 2023

The Template Haskell trick found here does not work in haskell-language-server, which executes the file under ghcide, seemingly in a temporary directory that does not contain the extra source files.

To check this, you can edit to:

             absPathToThisFile <- D.makeAbsolute __FILE__
             error absPathToThisFile

which will error out with (on a Mac):

• Exception when trying to run compile-time code:
    /var/folders/fr/xkmxc8ld07dgz85nwdn0zx0c0000gn/T/extra-dir-31378571509/___GHCIDE_MAGIC___

This is not particularly high priority, just a minor inconvenience. It may be hard to find a trick that also works for this setup.

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

No branches or pull requests

1 participant