Closed codygman closed 4 years ago
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 default-extensions
stanza of the cabal file, or otherwise
@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 master
:
cabal build
stan
And everything works as expected, i.e. I don't see any observations in the terminal output.
\Stan v0.0.1.0
➤ Git revision: 04d5a192cebb8e63b8704bdd2a8afe5b2d1c3493
➤ Commit date: Tue Sep 15 16:11:42 2020 +0000
➤ GHC version: 8.8
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 StrictData
extension.
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% ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━┛
Could you provide some details of any specific tools or features you are using to build/run stan-stricdata-minimal
?
Moreover, we have a lot of tests on this particular inspection, so we do check that this inspection actually works:
I just tried reproducing from NixOS and couldn't.... might be something machine specific for @goolord. We'll have to take a look.
I deleted the .hie
directory and I can't reproduce this anymore. I don't know what was causing this, it persisted through rebuilds yesterday, but I think it's safe to just close this. Thanks for looking into it :+1:
No worries! Let us know if you see some issues again 🙂
Posting this for someone else, I'll try to add more detail (or get them too) and reproduce if I can later.