kakoune: Spurious golint-kak linting errors

When running the lint command (golint-kak) via BufWritePost or manually, there’s a high likelihood of getting spurious linting errors. It seems like the larger the file, the worse it gets. Usually they’re line terminator errors (missing brackets or quotes and so on) which makes me think the data the linter is getting is being truncated. I can’t replicate this outside of kak.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 18 (11 by maintainers)

Commits related to this issue

Most upvoted comments

My mind is not really made up on that, although I dont really see where the -nosync would be used (would you choose not to sync explicitely ?). Frankly I am tempted to just always sync, I am not convinced we need the flag in the end.

How about a reverse, -nosync option? I’ve seen the commit “rc: Synchronize important file writes” in the linked PR and it instantly got me thinking, are you ready to accept that sometimes an “important” place will be missed, we would get other bugs “Spurious *** errors” and people would waste time searching where else a -sync is needed?