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

Multiple cabal file error can be caused by emacs #1897

mgsloan opened this Issue Mar 10, 2016 · 1 comment


None yet
1 participant

mgsloan commented Mar 10, 2016

Repro: Edit a .cabal file in recent emacs, without saving. Get errors like this on build:

Multiple .cabal files found in directory /home/mgsloan/fpco/stack/: .#stack.cabal, stack.cabal

The issue is that these lock files do not change the file extension (like backup files which postpend ~), but instead prefix the filename with .#. We have two options:

  1. When there are multiple cabal files, ignore the ones with invalid names
  2. When there are multiple cabal files, ignore the ones that start with .. It is not allowed in package names anyway.

I am going to go with (2), because it is less likely to mask an issue with the user's setup. Presumably editors are either going to hide such files or change the extension.

@mgsloan mgsloan added this to the P2: Should milestone Mar 10, 2016

mgsloan added a commit that referenced this issue Mar 10, 2016


This comment has been minimized.


mgsloan commented Mar 10, 2016


@mgsloan mgsloan closed this Mar 10, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment