haskell / haskell/cabal

Better error message for missing source files

Open
#1,264 5 comments 0 reactions 0 assignees View on GitHub
Cabal: other old-milestone: ⊥ type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

After renaming a source file, cabal produces the following error message:

```
cabal.exe: can't find source for Old/Name/Of/Module in src, dist/build/autogen
```

The problem is that the old module name still occurs in the cabal file. It would be better if cabal could point me to the line in the `*.cabal` file that I have to change. For example:

```
example-project.cabal:123: Can't find source for ...
```

This would enable my editor to auto-jump to the problematic line.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.