Show "Add dependency" Code Action only if there is no package.yaml
file
#4400
Labels
component: hls-cabal-plugin
Issues related to the hls-cabal-plugin
Hackathon
This issue is suitable for hackathon sessions
level: easy
The issue is suited for beginners
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
If the project is a stack project, there might be a
package.yaml
file. Adding a dependency to the generated .cabal file is a bad idea, as it will lead to annoying behaviour: Stack will no longer re-generate the .cabal file, so changes topackage.yaml
are not propagated to the.cabal
file any more.solution:
When looking for the
.cabal
file in the filesystem, check there is nopackage.yaml
file next to it.The text was updated successfully, but these errors were encountered: