Skip to content

compilation-mode in emacs no-longer creates links to files on errors/warnings #5430

@wraithm

Description

@wraithm

Stack version

$ stack --version
Version 2.5.1, Git revision d6ab861544918185236cf826cb2028abb266d6d5 x86_64 hpack-0.33.0

Method of installation

  • Official binary, downloaded from stackage.org or fpcomplete's package repository

Problem

Previous versions of stack printed errors in such a way that compilation-mode in emacs would detect the error and you could execute M-x first-error or similar function to go to the first error, and you can traverse the errors with M-x next-error and such. I think I actually also had to set --no-interleaved-output to get this to work well too in the previous version of stack I was on.

The new version of stack that I'm using breaks this. I think it's simply that the file paths are indented a bit. Emacs (and vim for quickfix afaict) use filepaths on newlines for detecting these errors. This is very frustrating that first-error, next-error, etc are broken.

Is it possible to use compilation-mode with stack in a simple way and get output such that emacs detects the errors?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions