Open Tritlo opened 3 years ago
Seems to work in the CI @lapplislazuli, are you doing something different?
@lapplislazuli note: the version of check-helpers
was bumped, so you'll need to upgrade.
I deleted my .cabal, ran cabal update and re-installed the check-helpers. The issue above remains. Check-helpers is 0.0.4 and endemic is 0.5.0. But it seems similar to the issues with local imports? Just looking at the error message.
It seems to be a different one to the one in the CI
That's weird, since the bug you show is exactly what would happen if check-helpers
was outdated. Did you delete:
~/.cabal
~/.ghc
dist-newstyle
?The bug in the CI seems to be a fluke.
Local imports are now on master, but it's a different issue: there we look for the source code of any imported modules and add them as a target if they exsist, while here the global package seems to not be working.
@lapplislazuli could you pull master and see if you still get the issue?
On the current Master the issue is different for me.
I first deleted ~/.ghc
and ~/.cabal
, then ran cabal update
, cabal install QuickCheck
& cabal install --lib tasty tasty-hunit
.
In the repository I cleaned up using cabal clean, and removed all .o
and .hi
files from the tests directory.
In our Repository I ran the cabal configure ...
as per readme, cabal install --lib check-helpers
and then cabal run test
.
Most of the tests are green (including ones that need tasty imports, so the problem seems generally fixed), but one test fails:
Two failing TastyProps: FAIL
Exception: <interactive>: fatal:
cannot find object file ‘tests/cases/TastyTwoFix.dyn_o’
while linking an interpreted expression
This seems to be (somehow) a MacOS issue, as both Docker and the CI are fine.
The issues with Dyn_o also made it into normal cabal run:
Linking /Users/xxx/Endemic/dist-newstyle/build/x86_64-osx/ghc-8.10.1/Endemic-0.6.0/x/endemic/build/endemic/endemic ...
endemic: <interactive>: fatal:
cannot find object file ‘examples/BrokenModule.dyn_o’
while linking an interpreted expression
On deep contemplation, I think this is because my Mac needs dynamic compilation, but the fake targets are not compiled dynamicly.
For the files .o
- and .hi
-files are created while my Mac only wants .dyn_o
. I think this is solvable with a compiler-config.
Yes, that makes a lot of sense. However, we don't always link the new ones, esp. not with repInteractive. Have you tried with that on?
Issue when running
cabal test
This is also the reason for the red CI
Originally posted by @lapplislazuli in https://github.com/Tritlo/Endemic/issues/44#issuecomment-886780942