tern

EcmaScript 6 - Tern IDE for Eclipse validation errors

[亡魂溺海] 提交于 2019-12-30 06:23:28
问题 I am using Eclipse Mars with the Tern IDE für ES6 support on version 1.1.0 (the snapshot). I get validation errors on arrow functions and const-exports as can be seen in this screenshot: I worked through these descriptions but the errors won't vanish: https://github.com/angelozerr/tern.java/wiki/Tern-&-ECMAScript6-support https://github.com/angelozerr/tern.java/wiki/Tern-Linter I don't know however whats really supported by the Tern plugin, but according to the documentation on http://ternjs

CodeMirror - styling Tern intellisense labels

 ̄綄美尐妖づ 提交于 2019-12-12 09:10:36
问题 I'm using the Tern plugin for CodeMirror, which adds intellisense features to the editor (i.e. pops up inline hint-labels). I want to change the hint-labels style, how to do so? 回答1: Tern attaches CSS classnames to the hint box, you can utilize them to style it, e.g.: .CodeMirror-Tern-tooltip:before { content: url('http://n5.nabble.com/images/smiley/smiley_thinking.gif'); width: 20px; height: 20px; } … which will result in this: 来源: https://stackoverflow.com/questions/22793843/codemirror

Eclipse orion code completion

♀尐吖头ヾ 提交于 2019-12-12 06:37:08
问题 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 symbols defined in the currently open file. Is there a way to configure tern in orion so it will produce some helpful completion instead of a working demo without any real value? 回答1: Orion has only moved to Tern for content assist proposals a

Sublime Text - plugin_host exited unexpectedly after installing sublime_tern

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 02:33:34
问题 I have installed sublime_tern package to help me with my MeteorJS development. After installing this package, any time I start Sublime I get: plugin_host exited unexpectedly. What can I do to troubleshoot this? 回答1: Problem I just had this problem but it turned out that it resulted from copying sublime between my two laptops. Somewhere along the line I lost the correct permissions. Solution The solution for me was to give execution permissions on plugin_host and it was fine (I also had to do

How to setup tern-vim in my project?

不羁的心 提交于 2019-12-06 03:02:58
问题 I want to setup tern-vim in my project and followed this link https://github.com/ternjs/tern_for_vim/blob/master/doc/tern.txt. After installation, I created a .tern-project file under the root directory of my project as below. { "libs": [ "browser", "jquery" ], "loadEagerly": [ "importantfile.js" ], "plugins": { "requirejs": { "baseURL": "./", "paths": {} } } } When I open a js file by vim command, I can't use any tern command as below: |:TernDoc|...................... Look up Documentation |

Sublime Text - plugin_host exited unexpectedly after installing sublime_tern

只谈情不闲聊 提交于 2019-12-05 02:37:06
I have installed sublime_tern package to help me with my MeteorJS development. After installing this package, any time I start Sublime I get: plugin_host exited unexpectedly. What can I do to troubleshoot this? Problem I just had this problem but it turned out that it resulted from copying sublime between my two laptops. Somewhere along the line I lost the correct permissions. Solution The solution for me was to give execution permissions on plugin_host and it was fine (I also had to do that for the sublime_text binary, I just realised that faster). Copy pasters, navigate to your sublime

How to setup tern-vim in my project?

丶灬走出姿态 提交于 2019-12-04 07:06:47
I want to setup tern-vim in my project and followed this link https://github.com/ternjs/tern_for_vim/blob/master/doc/tern.txt . After installation, I created a .tern-project file under the root directory of my project as below. { "libs": [ "browser", "jquery" ], "loadEagerly": [ "importantfile.js" ], "plugins": { "requirejs": { "baseURL": "./", "paths": {} } } } When I open a js file by vim command, I can't use any tern command as below: |:TernDoc|...................... Look up Documentation |:TernDocBrowse|................ Browse the Documentation |:TernType|..................... Perform a

Using tern_for_vim plugin in HTML files

落花浮王杯 提交于 2019-11-30 21:26:12
I'm trying to set up tern_for_vim plugin to have nice autocompletion in JavaScript. While editing ".js" files, "Ctrl+X Ctrl+O" gives nice semantic results, picking up the "backbone.js" and other libraries. However, when I'm editing a JS block inside an HTML file, this doesn't work, I only see the buffer-based standard completion. I can't figure out what's the problem. How to fix this? I looked at the plugin; I hope I have the right one: https://github.com/marijnh/tern_for_vim It seems to make a difference only for javascript files. If you want to use it for html files, you could try one of

EcmaScript 6 - Tern IDE for Eclipse validation errors

馋奶兔 提交于 2019-11-30 19:58:20
I am using Eclipse Mars with the Tern IDE für ES6 support on version 1.1.0 (the snapshot). I get validation errors on arrow functions and const-exports as can be seen in this screenshot: I worked through these descriptions but the errors won't vanish: https://github.com/angelozerr/tern.java/wiki/Tern-&-ECMAScript6-support https://github.com/angelozerr/tern.java/wiki/Tern-Linter I don't know however whats really supported by the Tern plugin, but according to the documentation on http://ternjs.net/ Tern should support arrow functions since 0.14. The IDE-page on github however only mentions class

Using tern_for_vim plugin in HTML files

感情迁移 提交于 2019-11-30 17:11:25
问题 I'm trying to set up tern_for_vim plugin to have nice autocompletion in JavaScript. While editing ".js" files, "Ctrl+X Ctrl+O" gives nice semantic results, picking up the "backbone.js" and other libraries. However, when I'm editing a JS block inside an HTML file, this doesn't work, I only see the buffer-based standard completion. I can't figure out what's the problem. How to fix this? 回答1: I looked at the plugin; I hope I have the right one: https://github.com/marijnh/tern_for_vim It seems to