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

Doesn't jump to literate Haskell file and doesn't reload it either #755

Closed
turion opened this issue Jul 4, 2020 · 7 comments
Closed

Doesn't jump to literate Haskell file and doesn't reload it either #755

turion opened this issue Jul 4, 2020 · 7 comments
Labels

Comments

@turion
Copy link

turion commented Jul 4, 2020

For modules defined as literate Haskell, jumping to source doesn't work. Similarly, changes to these files don't get reloaded automatically.

To reproduce:

git clone https://github.com/turion/essence-of-live-coding
cd essence-of-live-coding
gen-hie > hie.yaml
codium

(This is assuming VSCodium with the ghcide extension as editor.)

  1. Navigate to a test file like essence-of-live-coding/test/Main.hs
  2. Navigate to line 21
  3. Press F12 or select "Jump to source"
  4. "No definition found for 'LiveCoding'"
  5. Change anything in the module essence-of-live-coding/LiveCoding.lhs, e.g. add a definition
  6. Try to use this definition in the test
  7. It's not found
$ ghcide --version
ghcide version: 0.2.0 (GHC: 8.8.3) (PATH: /nix/store/hvdw1f7nwjns5j3jxd9wjkx4jnvb8vw7-ghcide-0.2.0/bin/ghcide)

(I'm running from a nix-shell)

@turion
Copy link
Author

turion commented Jul 4, 2020

I forgot to add, it doesn't work either if no hie.yaml file is added.

@pepeiborra
Copy link
Collaborator

Do other features work with literate haskell files for you? In my experience, ghcide does not even start. I've had better luck with haskell-language server, on the other hand.

@turion
Copy link
Author

turion commented Jul 5, 2020

@pepeiborra No features really work with literate haskell files. I can add a syntax error to a literate haskell file and nothing will happen. But at least somehow the file was loaded at some point because other files that import it don't fail.

@ndmitchell
Copy link
Collaborator

The original literate Haskell support was contributed by @hsenag. I don't think many other people use literate Haskell (I generally advise against it) so this might be something that requires an interested contributor to tackle.

@hsenag
Copy link
Member

hsenag commented Jul 5, 2020

@ndmitchell I added .hs-boot, not .lhs: digital-asset/daml#2827

I think lhs was done here by @CodiePP: digital-asset/daml#2803 haskell/ghcide#31

@pepeiborra pepeiborra transferred this issue from haskell/ghcide Dec 30, 2020
@jneira
Copy link
Member

jneira commented Jan 12, 2021

@turion had you the opprtunity to check lhs files with haskell-language-server (ghcide is being deprecated as external executable)?

@jneira jneira added the status: needs info Not actionable, because there's missing information label Jan 12, 2021
@turion
Copy link
Author

turion commented Jan 12, 2021

Yes, it works. Thank you!

@turion turion closed this as completed Jan 12, 2021
@jneira jneira removed the status: needs info Not actionable, because there's missing information label Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants