-
-
Notifications
You must be signed in to change notification settings - Fork 389
Failing test with whitespace mismatches for hls-splice-plugin #1808
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
Comments
I am getting the same errors when building for Arch:
|
Usually tests fail in windows cause the same issue 🙂 , editing the source test cases should fix it, i suppose |
It's partially because splice plugin does not use any golden test util, and implement its own pseudo-golden test by itself... (If we use git diff, we can ignore |
Yeah, eval plugin and tactics plugin have the same problem as well. And it turns out that files in uploaded tarballs are different from those in our git source tree: $ diff ~/Downloads/hls-splice-plugin-1.0.0.1/test/testdata/TErrorExp.hs.expected ~/haskell-language-server/plugins/hls-splice-plugin/test/testdata/TErrorExp.hs.expected
1,6c1,6
< {-# LANGUAGE TemplateHaskell #-}
< module TErrorExp where
< import Language.Haskell.TH ( tupE, litE, integerL )
<
< main :: IO ()
< main = return (42, ())
---
> {-# LANGUAGE TemplateHaskell #-}
> module TErrorExp where
> import Language.Haskell.TH ( tupE, litE, integerL )
>
> main :: IO ()
> main = return (42, ()) @jneira Did you create this sdist on Windows? |
yeah, it seems it could be my fault, maybe cause i have |
btw. git diff also leads to problems on nixos because it shows differences in file permissions caused by the nix-store. But it’s okay. We can of course disable them … |
@maralorn That issue is now fixed on master (and probably after next version) |
I've checked mye env and:
and i have the 🤔 EDIT: never mind, i've set the config option wrong (it is |
Ok i forced a checkout after fixing the damn |
I've uploaded https://hackage.haskell.org/package/hls-splice-plugin-1.0.0.2 after double checking files have LF. Akthough i am gonna use unix @maralorn tests should work now (at least they shouldn't fail due to line endings) |
Confirmed that the tests are passing now in Arch. Thanks! |
Your environment
Trying to build hls-splice-plugin-1.0.0.1.
Which OS do you use: Nixos
Steps to reproduce
I ran the tests.
Expected behaviour
Tests pass.
Actual behaviour
This looks like some issue with unix vs. windows line endings?
The text was updated successfully, but these errors were encountered: