ternjs / tern_for_sublime

Sublime Text package adding Tern support
MIT License
803 stars 54 forks source link

Sublime locks up on any file edits #177

Open sparr opened 6 years ago

sparr commented 6 years ago

When I open any javascript file and make an edit, or sometimes just when I open it, ST becomes nonresponsive. I can kill plugin_host to revive it, but then I have no plugins running. Disabling TernJS via Package Control makes the problem go away.

This gist contains an Apple error report taken during the problem: https://gist.github.com/sparr/38279738a6f5f4d8ade19a24563ad0df

Xazzzi commented 6 years ago

Having similar issue, tracked it down to webpack plugin. Here what my .tern-project looks like:

{
    "libs": [
        "ecma5",
        "ecma6",
        "browser",
        "react"
    ],
    "dontLoad": [
        "./dist/**"
    ],
    "plugins": {
        "webpack": {
            "configPath": "./webpack.config.js"
        }
    }
}

Initially, i have completion working (suggestions pop up on []. input), but it hangs editor on pretty much any import statement being typed (trying import mobx from 'mobx' it hangs on f in from).