You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR that removes dead code (after asking around if it's not used in a weird way in some test script) is ... [very] valuable (and there are tools for that, e.g, weeder).
So, I'm opening a ticket about Weeder (didn't find any old one). It looks like the repo still has remnants of a past Weeder setup even:
Weeder has switched to using TOML for configuration. Also the .hie files in cabal-testsuite cannot yet be ignored by configuration and must be deleted (as a workaround) ocharles/weeder#56 (comment).
$ weeder --version
weeder version 2.7.0
hie version 9063
$ weeder --write-default-config
Did not find config: wrote default config to ./weeder.toml
incompatible hie file: /.../cabal-testsuite/PackageTests/CopyHie/setup.dist/work/dist/build/extra-compilation-artifacts/hie/HieLocal.hie
this version of weeder was compiled with GHC version 9063
the hie files in this project were generated with GHC version 9047
weeder must be built with the same GHC version as the project it is used on
I wonder if we can make CI run weeder, to avoid it bit-rotting so quickly (3 years) again? But it's tricky, because false positive can annoy users and also a temporarily unused code while developing should not cancel CI runs.
Activity
ffaf1 commentedon Jul 13, 2023
If we run
weedernow, does it find dead code?The only thing I am worried about is false positives.
philderbeast commentedon Jul 14, 2023
There's a weeder gh-action.
philderbeast commentedon Dec 27, 2023
Weeder has switched to using TOML for configuration. Also the
.hiefiles incabal-testsuitecannot yet be ignored by configuration and must be deleted (as a workaround) ocharles/weeder#56 (comment).philderbeast commentedon Dec 27, 2023
From the Cabal-3.4.0.0 release notes and cabal-install-3.4.0.0 release notes:
Mikolaj commentedon Dec 28, 2023
I wonder if we can make CI run weeder, to avoid it bit-rotting so quickly (3 years) again? But it's tricky, because false positive can annoy users and also a temporarily unused code while developing should not cancel CI runs.