Code Monkey home page Code Monkey logo

Comments (7)

benekastah avatar benekastah commented on May 22, 2024

Wrt the extra lines, see #27. About the parts of the message that are missing, I'm guessing the errorformat is somehow wrong. When I have ported makers from syntastic and it doesn't work right, usually there is some subtle difference between the errorformats. Unfortunately I'm no expert on vim's errorformat system, so I can't see the issue right off the bat. I can't look at it right away, but if you don't have any luck with it I'd be happy to try my hand at it sometime soon.

from neomake.

benekastah avatar benekastah commented on May 22, 2024

I actually think this has to do with #15. When I ran each linter in isolation, it worked perfectly. Do you get the same results every time? It's possible that some multiline messages are getting split up between two different job activity handler calls. Try putting let g:neomake_serialize = 1 somewhere in your ~/.vimrc and let me know if that fixes it.

from neomake.

prikhi avatar prikhi commented on May 22, 2024

Hmm, when I enable neomake_serialize I don't receive any hints from ghcmod at all(although I do get Neomake: ghcmod complete).

When I change haskell_enabled_makers to only ghcmod, I get the same erroneous output as above(without the HLint feeback).

from neomake.

benekastah avatar benekastah commented on May 22, 2024

Ok, I would make sure your version of neovim is relatively recent. I've been building weekly from master and testing agains that. Sometime this weekend I'll see if I can't get this going for myself and track down the different issues here.

from neomake.

prikhi avatar prikhi commented on May 22, 2024

Still happening off of nightly.

It seems specific to the top-level binding warning, I don't see it happening with others during my normal use.

Let me know if you need help getting set up. Usually you can just install cabal-install via your package manager, then run:
cabal update && cabal install hlint ghc-mod && export PATH=~/.cabal/bin/:$PATH.

from neomake.

benekastah avatar benekastah commented on May 22, 2024

It looks like I was able to figure this out. When running this linters in normal vim, I saw it was outputting ^A at each place that was breaking in neovim. So I did some digging with ghc-mod check test.hs | hexdump and saw that ghc-mod is outputting a null byte at each location that breaks. Neovim breaks in a different way from vim; it interprets null bytes in stdout from jobs as newlines it seems. This has come up as a problem with ghc-mod before.

I was able to fix it with a small output formatting step. I included both these makers in the repo as well.

from neomake.

prikhi avatar prikhi commented on May 22, 2024

Beautiful, thanks :)

from neomake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.