Comments (6)
#32 should fix the problem.
from completor.vim.
I still can't get it to work. I tried to use let g:completor_node_binary = '/usr/bin/node'
setting but it doesn't help. Is there any other setting I should try?
from completor.vim.
Upgrade completor.vim to the latest commit and run make js
again. And use the following code as the .tern-project content:
{
"plugins": {
"node": {},
"es_modules": {}
},
"libs": [
"ecma5",
"ecma6"
],
"ecmaVersion": 6
}
Then edit a js file test.js, enter the following code:
a = [1, 2, 3]
a.
after entering a.
the completion popup should be shown.
from completor.vim.
I tried, but it doesn't work. I also tested on newly installed Ubuntu 16.04 it doesn't work there either. I only get buffer and path completion.
from completor.vim.
Go to <root directory of completor.vim/pythonx/completers/javascript
and run node tern_wrapper.js
. Is there any exceptions?
from completor.vim.
I ran it and got the following:
/home/m/.vim/plugged/completor.vim/pythonx/completers/javascript/tern_wrapper.js:67
let def = readJson(found);
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
I had node v4.2.6 installed. After that I installed v6.9.1, and now tern completions work as expected.
So the problem was my old version of node.
I'm sorry for the noise. Thank you for your patience and help.
from completor.vim.
Related Issues (20)
- A source for ctags?
- the fallback completer: complete form the current buffer, not from all buffers? HOT 1
- Integrate ALE completion HOT 2
- LanguageServer.jl LSP support
- Just show the function arguments over it with Jedi HOT 1
- 能否改进一下候选项的顺序
- The completed word is inserted in the wrong position, if a german umlaut is present in the current line.
- can I use pyls with completor.vim ?! HOT 1
- self.ident is HOT 1
- start_column() doen't work for non english words
- using arrow keys instead of ctrl+n
- 中文补全时会吞掉标点之前的部分字符 HOT 1
- Tweaking LSP trigger accordingly
- Validator requires vim compiled with python or python3 and has features `job`, `timers` and `lambda` HOT 1
- iskeyword option
- Getting completion for R programming
- Cannot get to work on msys2
- Placeholders for function arguments - integration with CompleteParameter.vim HOT 2
- Any updates so far, generally speaking?
- How to log an LSP output without the use of `let g:completor_debug = 1`?
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 completor.vim.