Closed brw closed 8 years ago
Try to do a simple test:
Start in an empty folder with a .tern-project file::
{
"libs": [
"browser"
]
}
and a new script file:
function testLog (string, object) {
console.log(string);
console.log(object)
}
test // <== should now autocomplete to 'testLog (fn/2), testLog (fn/1), etc'
If the above doesn't work and just to make sure none of the other packages are conflicting, backup your sublime User
folder and remove all but Packagecontrol
and tern_for_sublime
from the Package Control.sublime-settings
.
My setup is working fine, I have the following packages:
"AutoAligner",
"AutoFileName",
"Bootstrap 3 Snippets",
"DocBlockr",
"ESLint-Formatter",
"Git",
"HTML-CSS-JS Prettify",
"JavaScript Snippets",
"Markdown Preview",
"MarkdownEditing",
"npm",
"Package Control",
"PlainTasks",
"SideBarEnhancements",
"Sublime Tutor",
"SublimeLinter",
"SublimeLinter-contrib-eslint",
"tern_for_sublime",
"Theme - Soda"
Ah, so it did work when I created a new folder in a new Sublime window, but for some reason it wouldn't work on an existing project. I added my existing project to the new window and now it works. Thanks!
No problem, you're welcome!
Tern.sublime-settings
:Added this to
Preferences.sublime-settings
:Installed packages:
Also tried adding a
.tern-project
file in my project root directory:npm i
in thetern_for_sublime
directoryreloading plugin tern_for_sublime.tern
)I have no idea what I could be doing wrong.