Questions tagged [tern]

Tern is a JavaScript code analyzer that is intended to improve the support a text editor has for JavaScript coding. Use this tag for questions about its function or how to add tern to the editor of your choice.

Tern is a JavaScript code analyzer which may be installed as a plugin to various text editors such as and and . It is designed to allow for added functions such as code completion and automatic refactoring when editing JavaScript.

More information is available at http://ternjs.net, and its source is available from https://github.com/marijnh/tern.

56 questions
0
votes
0 answers

Generate JSON type definition file with Tern.js's condense utility

I'm trying to use Tern's condense script to generate a type definition file for the p5.js Javascript library. The Tern documentation says: "Pass --plugin name or --plugin name={jsonconfig} to load plugins. Use --def file to load JSON definitions." I…
Jen Kagan
  • 1
  • 2
0
votes
0 answers

Fresh new tern install on eclipse do not run

Just installed ternjs IDE on fresh new Eclipse JEE. The problem is that I can not get it working. Any code edit or even mouse click inside editor window cause console errors like this…
Paul Paku
  • 360
  • 2
  • 16
0
votes
0 answers

Issues with converting project to angularJS on eclipse

I am trying to get one of my angularJS project to work on eclipse. I have downloaded the angularJS plugins for eclipse, Started a Dynamic Web Project, and copied all my files into that folder. Now when I right click on the project and got to:…
GuyTal
  • 207
  • 5
  • 17
0
votes
1 answer

Tern doesn't work properly with eclipse

Recently I installed the AngularJS Eclipse plugin (Link). I use Eclipse Luna. I followed the Getting Started section and made all described steps. But the tern seems to work not properly. The Tern cannot find the names of my controllers, modules,…
N.Zukowski
  • 600
  • 1
  • 12
  • 31
0
votes
2 answers

Eclipse orion code completion

I read somewhere that orion uses tern for code completion for JavaScript but after running the server, creating a js file and then creating another file the other file is unaware of any code in the first file. It seems that completion only works for…
HMR
  • 37,593
  • 24
  • 91
  • 160
0
votes
2 answers

Jump to definition does not work on objects defined as property on window

In my tern set up in emacs, this code works fine when I do M-. when my cursor is under the foo of obj.foo() (in the last line): var obj = {}; obj.foo = function() { return true; }; obj.foo(); But when I do the same on the following, it says…
viky
  • 542
  • 1
  • 7
  • 19
0
votes
1 answer

Tern doesn't go to definition in Eclipse

I'm using Tern IDE 0.9 for Javascript on Eclipse 4.4 in windows. When pressing on a function with CTRL + Click, instead of going to definition it opens a window and asks me if i want to choose Open an editor on the selected Tern - go to…
peroxide
  • 696
  • 1
  • 4
  • 19
0
votes
1 answer

How to set a hidden values in CodeMirror editor?

i wanna write a Custom language for a customer. i wanna evaluate something. THere is a web service. Some json data will come from a service. var data = {"a": {"foo": "bar-a", "bar": "baz-a"}, "b": {"foo": "bar-b", "bar": "baz-b", "moo":…
Penguen
  • 16,836
  • 42
  • 130
  • 205
0
votes
0 answers

How to run Tern on the command line?

I'd like to experiment with the Tern project, including AngularJS extensions for it. I'm trying to run Tern on the command line, but it just fails with something like this: module.js:340 throw err; ^ Error: Cannot find module…
David M. Karr
  • 14,317
  • 20
  • 94
  • 199
0
votes
0 answers

Symbol's value as variable is void: ac-source-tern-completion

Until the upgrade of packages and the removal of obsolete packages in Emacs, I could use dot completion and tern-ac-complete normally. Now every time I try to use those two commands, I get the error Symbol's value as variable is void:…
0
votes
1 answer

tern_for_vim (ternjs) returns 403 access denied

Trying to get JavaScript completion working in MacVim, using YouCompleteMe + TernJS. I've followed the install instructions for both plugins (I use Vundle to manage vim plugins), which included running ./install.sh script inside the YCM plugin…
Scott
  • 1,518
  • 1
  • 15
  • 23
1 2 3
4