GithubHelp home page GithubHelp logo

Comments (8)

AndrewRayCode avatar AndrewRayCode commented on July 17, 2024

I also see this stack trace when switching between tabs 😦 😕

from tern_for_vim.

AndrewRayCode avatar AndrewRayCode commented on July 17, 2024

Dupe of #16

from tern_for_vim.

clausreinke avatar clausreinke commented on July 17, 2024

Isn't this more likely something to do with an autocommand, like the one for lookupArgumentHints? Probably needs some error handling when the cursor is not on something it can handle.

from tern_for_vim.

marijnh avatar marijnh commented on July 17, 2024

This is by design -- the server will complain when you try to perform a query that expects an expression at a point where there is no expression. Don't be worried by the error output.

What stack trace do you see when switching between tabs?

from tern_for_vim.

AndrewRayCode avatar AndrewRayCode commented on July 17, 2024

I see the same stack trace when switching between tabs

from tern_for_vim.

marijnh avatar marijnh commented on July 17, 2024

That's really odd. There is a BufLeave handler that sends the buffer over to the server if it is dirty, but the "No expression at the given position." error can't be fired for a request that simply sends an updated version of a buffer. The stack trace contains findTypeAt, which indicates that somehow a "type" query was done. Probably, the LookupArgumentHints function is somehow running. What is your tern_show_argument_hints setting? Could it be that a hold or move event fires when leaving the buffer? (@clausreinke maybe you know more?)

from tern_for_vim.

clausreinke avatar clausreinke commented on July 17, 2024

CursorMoved fires on buffer switch, CursorHold will fire in the new buffer, after delay.

from tern_for_vim.

marijnh avatar marijnh commented on July 17, 2024

Okay. That seems harmless. I've changed Tern in patch 1 to only spit out stack traces for errors that actually are bugs, not errors that it intentionally raised itself. That should reduce the noise.

from tern_for_vim.

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.