carlitux / deoplete-ternjs

deoplete.nvim source for javascript
MIT License
277 stars 24 forks source link

Tern takes a lot of Memory around 1.0 GB #69

Closed aswinmohanme closed 6 years ago

aswinmohanme commented 6 years ago

I noticed that after some time the memroy usage of tern process was around 1.0 GB.

Here is my .tern-project file

{
  "libs": [ ],
  "loadEagerly":[
  ],
  "plugins": {
    "node": { },
    "requirejs" : { },
    "es_modules" : { },
    "doc_comment": { "fullDocs": true },
    "complete_strings": {}
  }
}

This was while working on a React Native Project. I'm using the latest version of all plugins and tern

carlitux commented 6 years ago

You should report into to tern project

aswinmohanme commented 6 years ago

I posted the question there and they recommend tryin out acorn-jsx as acorn has a trouble parsing Jsx.

Honestly I can't figure out what the previous sentence means

carlitux commented 6 years ago

looks like https://www.npmjs.com/package/tern-jsx uses acorn-jsx and https://www.npmjs.com/package/tern-react is another plugin for ternjs

Test on your side what is good for you