-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
STAN-0206 doesn't go away after enabling -XStrictData #392
Comments
minimal example https://github.com/goolord/stan-stricdata-minimal nothing special required to reproduce this really, the error doesn't go away whether it's a language pragma, in the |
@codygman @goolord Can you provide more info on Stan version you are using, how did you build the project, created the HIE files and how are you running Stan? I just tried running the following on the example repository using the latest version of Stan from cabal build
stan And everything works as expected, i.e. I don't see any observations in the terminal output. |
built w/ cabal from master |
@codygman @goolord This is not reproducible for me as well. I build the project with Cabal and the same Stan and GHC version. I am on Mac, and @chshersh checked on Linux. Stan does not produce any observations, and also is able to recognize the
Could you provide some details of any specific tools or features you are using to build/run |
Moreover, we have a lot of tests on this particular inspection, so we do check that this inspection actually works: stan/test/Test/Stan/Analysis/AntiPattern.hs Lines 77 to 137 in 04d5a19
|
I just tried reproducing from NixOS and couldn't.... might be something machine specific for @goolord. We'll have to take a look. Reproduction attempt[cody@nixos:/tmp/stan-stricdata-minimal]$ PAGER=cat git log --oneline
be50c35 (HEAD -> master, origin/master, origin/HEAD) first commit
[cody@nixos:/tmp/stan-stricdata-minimal]$ nix-shell -p pkgs.haskell.compiler.ghc883 --run "cabal build"
Up to date
[cody@nixos:/tmp/stan-stricdata-minimal]$ ~/code/stan/.stack-work/install/x86_64-linux-nix/21146bec5e0de701f60e46f363fd96007d3477ee1dd9fe80145db1c049dace60/8.8.3/bin/stan report
ⓘ Checking environment variables and CLI arguments for default configurations file usage...
Fiasco:
* [Error ] No STAN_USE_DEFAULT_CONFIG Env Variable is set
* [Error ] No CLI option specified for no-default
ⓘ The following Configurations are used:
Result:
With the following warnings:
* [Warning] TOML Configurations file doesn't exist: /tmp/stan-stricdata-minimal/.stan.toml
* [Warning] TOML Configurations file doesn't exist: /home/cody/.stan.toml
* [Warning] No CLI option specified for: checks
* [Warning] configChecks is set through the source: Default
* [Warning] TOML Configurations file doesn't exist: /tmp/stan-stricdata-minimal/.stan.toml
* [Warning] TOML Configurations file doesn't exist: /home/cody/.stan.toml
* [Warning] No CLI option specified for: remove
* [Warning] configRemoved is set through the source: Default
* [Warning] TOML Configurations file doesn't exist: /tmp/stan-stricdata-minimal/.stan.toml
* [Warning] TOML Configurations file doesn't exist: /home/cody/.stan.toml
* [Warning] No CLI option specified for: ignore
* [Warning] configIgnored is set through the source: Default
ⓘ Using the following .cabal file: /tmp/stan-stricdata-minimal/stan-stricdata-minimal.cabal
✔ All clean! Stan did not find any observations at the moment.
Stan's Summary:
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┓
┃ Analysed modules ┃ 1 ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━┫
┃ Analysed Lines of Code ┃ 11 ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━┫
┃ Total Haskell2010 extensions ┃ 1 ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━┫
┃ Total SafeHaskell extensions ┃ 0 ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━┫
┃ Total checked inspections ┃ 44 ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━┫
┃ Total found observations ┃ 0 ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━┫
┃ Total ignored observations ┃ 0 ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━┫
┃ Project health ┃ 100% ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━┛
ⓘ Report is generated here -> stan.html |
I deleted the |
No worries! Let us know if you see some issues again 🙂 |
I can reliably reproduce this. Here's a repro using Nix: EDIT: In this case, fix was srid/haskell-flake#386 |
Posting this for someone else, I'll try to add more detail (or get them too) and reproduce if I can later.
The text was updated successfully, but these errors were encountered: