Skip to content

PowerShell hangs on haskell-process-generate-tags #609

Closed
@ibraimgm

Description

@ibraimgm

Hello! I recently updated haskell-mode and noticed that the tag generation (when I save/reload a file) gets "locked" into powershell. I don't know why, bu when the current command is run inside emacs:

 (format ":!powershell -Command \"& { cd %s ; hasktags -e -x (ls -fi *.hs -exclude \\\"#*#\\\" -name -r) ; exit }\""
                            (haskell-session-cabal-dir
                              (haskell-process-session (car state))))

Everything just freezes. The equivalent command, in the shell itself, does not hang.
Why we must do this with powershell? Is there a specific reason to not use hasktags directly?
On my configuration, I changed the above line with:

(format ":!hasktags --output=%s\\TAGS -x -e %s"
                            (haskell-session-cabal-dir (haskell-process-session (car state)))
                            (haskell-session-cabal-dir (haskell-process-session (car state))))

And the result looks the same to me (it's even recursive).
If the above solution is acceptable, I can send a patch/pull request later.

Related:
#49
#447

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions