-
Notifications
You must be signed in to change notification settings - Fork 1
No hover responses on dhall-haskell in windows #32
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
Comments
Did you test this yourself @fendor? |
Yes, but I can not reproduce. cradle:
stack: works for me. |
Maybe it is a specific behaviour in windows, i've experienced it in win 7 and 10, with both the It works in simple stack projects, though. |
I've setup a simple cabal/stack multipackage project: https://github.com/jneira/cabal-multi-test and i've done an extensive testing TL;DR
cradle:
multi:
- path: ./package1/
config:
cradle:
cabal:
component: "lib:package1"
- path: ./package1/
config:
cradle:
cabal:
component: "package1:example-test" # test:example-test doesn't work
- path: ./package1/
config:
cradle:
cabal:
component: "exe:package1"
- path: ./package2/
config:
cradle:
cabal:
component: "lib:package2"
- path: ./package2/
config:
cradle:
cabal:
component: "package2:example-test" # test:example-test doesn't work
- path: ./package2/
config:
cradle:
cabal:
component: "exe:package1"
|
After the previous tests i've tested again
|
Ok, ive just tested again with the latest hie-bios and the behaviour is the same: the cradle seems to finish but hover hangs showing |
No, 38 is certainly not too many. It works fine with GHC for example. It the previous log you posted still accurate? |
If that was too many modules, then the branch would be unacceptable! On Linux, hie is responsive on the project |
I've tested to load the subproject |
I've tested |
I've tested opening the project with
Being the traces: persistVirtualFile' :: Core.LspFuncs Config -> Uri -> IO (Maybe FilePath)
persistVirtualFile' lf uri = do
infoM "hie" $ "persistVirtualFile': uri: " ++ show uri
fp <- Core.persistVirtualFileFunc lf (toNormalizedUri uri)
infoM "hie" $ "persistVirtualFile': fp: " ++ show fp
return fp So the execution seems to hang in |
I've added more traces to
The function traced is -- | Write a virtual file to a temporary file if it exists in the VFS.
persistFileVFS :: VFS -> J.NormalizedUri -> Maybe (FilePath, IO ())
persistFileVFS vfs uri =
case Map.lookup uri (vfsMap vfs) of
Nothing -> Nothing
Just vf ->
let tfn = virtualFileName (vfsTempDir vfs) uri vf
action = do
logm $ B.pack $ "persistFileVFS: uri = " ++ show uri ++ ", virtual file name = " ++ show tfn
exists <- doesFileExist tfn
unless exists $ do
logm $ "persistFileVFS: temp file does not exist, writing file"
writeFile tfn (Rope.toString (_text vf))
in Just (tfn, action) But i dont see |
@jneira does this still happen? |
I am afraid it still does. I tested it just after merging |
I've tested it with master (072ff7f) and i least i've got an error message (not sure if it was logged before):
Inspecting the vfs file we can observe that it is truncated just in this line: https://github.com/dhall-lang/dhall-haskell/blob/96e694d7c6368a327a24dc31e8dd870ae76e7272/dhall/src/Dhall/Core.hs#L133 |
wow... that is awesome, right? You found a major clue. Is that the same issue repeatedly? |
Yeah, i hope there will not be another hidden problem. |
Yeah, the issue is triggered when the haskell source file has an unicode char in it.
|
Originally posted by @jneira in haskell#1126 (comment)
cc @jneira
The text was updated successfully, but these errors were encountered: