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

HIE hangs with 100% on one CPU core VSCode/Nix #852

Open
@gcharnock

Description

@gcharnock

I've got a project that seemed to be working with VSCode/HIE and building under nix. I made some changes and HIE stopped responding and used 100% of one cpu core. I tried attaching with strace and got the following output:

strace -p $PID
strace: Process $PID attached
futex(0x6b3d748, FUTEX_WAIT_PRIVATE, 0, NULL

So it looks like the process is not doing any IO; I'm assuming it's stuck in a loop.

The slightly bizarre thing is if I revert those changes, the problem persists. Would like to try making a minimal example project that reproduces the bug, but at the moment I'm not sure how to get hie back. I've tried deleting the ./dist folder that cabal creates. What places does hie keep state that I could try getting rid of?

details
I am using the following as my hie-wrapper:

nix-shell --command "hie-wrapper --lsp -d -l /tmp/hie.log --vomit"

The produced log file is: hie.log

I'm using the hie from commit 96af698f0cfefdb4c3375fc199374856b88978dc of the nix repo.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions