ternjs / tern

A JavaScript code analyzer for deep, cross-editor language support
https://ternjs.net/
MIT License
4.25k stars 378 forks source link

extra single quote problem #1002

Closed hackingcat closed 5 years ago

hackingcat commented 5 years ago

https://github.com/ncm2/ncm2-tern/issues/5 https://github.com/carlitux/deoplete-ternjs/issues/32 https://github.com/Shougo/deoplete.nvim/issues/599

marijnh commented 5 years ago

These are all in 3rd-party editor plugins, and don't occur with the standard Vim, Emacs, and ST plugins, so it seems the error is in those plugins.

hackingcat commented 5 years ago

https://github.com/ncm2/ncm2-tern/issues/5#issuecomment-445698299 The problem also occured with tern_for_vim.

othree commented 5 years ago

When reporting an issue. Please provide a major link or describe issue here instead of lots of link for we to easier understand the issue. Thanks.

Confirmed the issue. Still thinking where to fix. Here or editor plugins.

othree commented 5 years ago

This should belongs to tern_for_vim. The response has an end position value.

othree commented 5 years ago

ref: https://github.com/ternjs/tern/blob/master/plugin/modules.js#L310-L311

othree commented 5 years ago

https://github.com/ternjs/tern_for_vim/commit/93cf8e7534e9d4f79a5ddbd3174e95621d0d27c9

othree commented 5 years ago

https://github.com/ternjs/tern_for_sublime/commit/ce046965d3209cb20e42c96b0d3e5e0256188a7b