ternjs / tern

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

In Emacs, `tern-find-definition` merely returns in "Mark set" #948

Open brandon-arnold opened 6 years ago

brandon-arnold commented 6 years ago

Really not sure what else to do on this. When I put the cursor on a variable in my Javascript file and hit M-. (or M-x, tern-find-definition), the output console merely says "Mark set" without any navigation to the definition in question. The .js file is beneath the web/ folder, with a .tern-project file in the root of the project, as such:

.tern-project:

{
    "plugins": {
      "es_modules": {},
      "node": {},
      "angular": {},
      "commonjs": {},
      "webpack": {}
    },
    "loadEagerly": [
      "web/**/*.js"
    ],
    "dontLoad": [
      "node_modules/**"
    ],
    "libs": [
        "ecmascript",
        "browser",
        "chai"
    ],
    "ecmaVersion": 6
}

Also, the variable in question is imported via a statement such as import foo from 'bar'.

Emacs version: GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-09-15, modified by Debian Tern version: Latest on tern master in this repo Emacs tern-mode version: Current beneath emacs/ folder in this repo

Shamash2014 commented 6 years ago

I can reproduce the same problem in spacemacs