Giter Site home page Giter Site logo

Comments (2)

krobelus avatar krobelus commented on September 28, 2024

I can't reproduce a regression. Probably you expect the filetype=grep style behavior where every line is a valid location.
Lint output (for better or worse) has forever used filetype=make where make_error_pattern determines what's a valid location (for next/prev but also for jump)

For example here the first one is matched but the second one isn't:

src/main.cc:100:9: error: expected ‘}’ before string constant
  100 |         "» {+u}User{} hook support\n"
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.cc:97:8: note: to match this ‘{’
   97 |     }, {
      |        ^

It's possible that we want to relax this (perhaps only for the jump command). I personally have a dedicated shortcut which has some drawbacks I guess
The expectation for lint.kak are not very easily defined

from kakoune.

lobre avatar lobre commented on September 28, 2024

You are absolutely right. I was sure that I was in a buffer with filetype=grep.

My current linting error was:

main.go:5:6: main redeclared in this block

And effectively, it does not match with the make_error_pattern. If I manually change the line to:

main.go:5:6: error: main redeclared in this block

It now works. So my bad, this is not a bug.

But as you say, maybe this rule could be relaxed effectively. It might not be necessary to have that level of precision for the jump.

Should I close this issue and this could be tracked elsewhere?

from kakoune.

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.