tern icon indicating copy to clipboard operation
tern copied to clipboard

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

Open brandon-arnold opened this issue 7 years ago • 1 comments

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

brandon-arnold avatar Nov 11 '17 06:11 brandon-arnold

I can reproduce the same problem in spacemacs

Shamash2014 avatar Feb 21 '18 12:02 Shamash2014