Oni: Get rid of .tern-port files

Created on 5 Jan 2018  路  5Comments  路  Source: onivim/oni


One of the issues I'm having in my JS projects is the creation of tern-port files. It seems you can turn them off with --no-port-file but I'm unsure of how to do that with Oni!

question

All 5 comments

@MikaAK i'm a big fan of tern myself and personally I just gitignore the port files it cool to know you can pass a flag can I ask where you've been passing the flag are you using tern directly or using deoplete tern.js or tern.vim?

I do have it in the gitignore which is fine for now, but it creates a lot of visual noise when you have hidden files on (something that's regular for me when working with .env files or .babelrc etc)

@Akin909
Here's a link to tern_for_vim's issue referencing diable: https://github.com/ternjs/tern_for_vim/issues/12

Seems you can pass them into ternjs directly see

http://ternjs.net/doc/manual.html
Search no-port-file

I suppose "language.javascript.languageServer.argument": ["--no-port-file"] hypothetically should the trick here. I'll test it out

@MikaAK if tern isn't a language server which you've setup and from its site I don't believe it is I dont think that will work, I have the following flag in my vimrc a variable which tern.vim allows you to specify let g:tern#arguments = ["--persistent"] perhaps you can add the --no-port-file argument there

@Akin909 you were spot on. I don't know why I didn't think of this. Though tern does run a server so I suppose it would be possible to make it compatible in some way (random thoughts)

Nice catch, @Akin909 !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

magopian picture magopian  路  3Comments

timeyyy picture timeyyy  路  3Comments

bfulop picture bfulop  路  3Comments

nwaywood picture nwaywood  路  3Comments

tcoopman picture tcoopman  路  3Comments