Comments (8)
I also see this stack trace when switching between tabs 😦 😕
from tern_for_vim.
Dupe of #16
from tern_for_vim.
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.
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.
I see the same stack trace when switching between tabs
from tern_for_vim.
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.
CursorMoved
fires on buffer switch, CursorHold
will fire in the new buffer, after delay.
from tern_for_vim.
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)
- TernError: position is outside of file HOT 1
- How to make tern auto start? HOT 2
- Using it with YouCompleteMe
- Failed to start server, only sometimes, when changing between two buffers HOT 1
- Slows down the Vim on switching between tabs and buffers HOT 6
- Tern not respecting .tern-config in home directory. HOT 1
- Share existing tern process among all vim processes?
- tern_for_vim does not work for Node React+Three.js Project HOT 1
- Threejs cannot be completed by Tern
- No maintainer? HOT 4
- Not Completing Assert-Plus HOT 1
- Tern mixing site-packages from different python versions HOT 1
- DeprecationWarning: the imp module is deprecated in favour of importlib; HOT 3
- YouCompleteMe -> Tern - Must restart server to get updated type definitions
- Why doesn't it show me the write function of writerStream? HOT 1
- Request: Commit package-lock.json or add to .gitignore HOT 1
- TernRename renames object property with same name HOT 1
- Failed to start server: [Errno 2] No such file or directory HOT 1
- Are there any maintainers for this project? HOT 1
- Nothing works
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tern_for_vim.