Skip to content

C-c C-c haskell-process-cabal-build won't work if haven't ran C-c C-l #1798

Closed
@clatisus

Description

@clatisus

Hi, I've come across a issue where haskell-process-cabal-build won't work, it shows

No cabal.project file or cabal file matching the default glob './*.cabal' was found.
Please create a package description file <pkgname>.cabal or a cabal.project file referencing the packages you want to build.

You can reproduce in a bare minimum cabal project by cabal init. The project only contains a Main.hs.

.
├── CHANGELOG.md
├── test-project.cabal
└── app
    └── Main.hs

But if I run C-c C-l haskell-process-load-file first (which start a haskell session), then I ran C-c C-c, it suddenly works, without any errors.

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