artoale / atom-tern Goto Github PK
View Code? Open in Web Editor NEWTern plugin for atom editor
License: MIT License
Tern plugin for atom editor
License: MIT License
Would it be possible that you add this plugin in your package?
https://github.com/othree/tern-coffee
Error: Cannot find module '/Users/alialdallal/.atom/packages/Tern/node_modules/.bin/tern'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:279:25)
at Function.Module.runMain (module.js:496:10)
at startup (node.js:129:16)
at node.js:1037:3
server.coffee:9
tern exited with code: 1 server.coffee:18
Uncaught TypeError: Cannot call method 'completions' of null
Uncaught TypeError: Cannot call method 'completions' of null
When trying to start the tern server when working on an unsaved file, the above error will be thrown in
Tern/lib/server.coffee
on line 25. Is this something that could be worked around? Or is there no way of getting the data of an unsaved file (maybe from a memory buffer?)
i have looked at your read me and even dove down into some of the coffeescript files for the tern package - i simply can't understand how to make your package work with atom 0.92.0. i have done cmd-shift-P and typed tern: start server, and tried typing a period ('.') in a javascript file i am working on - no pop-up ever happens to offer me other code choices. am i missing something here? also, you say the key binding is cmd-space, but you should know that in Mac OS X (what i am using, ver. 10.9.2 Mavericks), cmd-space is all ready the system default binding for Spotlight Search, i would bind to another key combination. at the very least, you need to re-write your read me to be far more comprehensive with step-by-step instructions on how to use this and make it work correctly, otherwise your package will be uninstalled by probably everyone.
Atom Version: 1.0.0
System: Mac OS X 10.10.3
Thrown From: Tern package, v0.8.0
Uncaught TypeError: Cannot read property 'prototype' of undefined
At /Users/alex/.atom/packages/Tern/lib/tern-view.coffee:4
TypeError: Cannot read property 'prototype' of undefined
at __extends (/Users/alex/.atom/packages/Tern/lib/tern-view.coffee:4:199)
at /Users/alex/.atom/packages/Tern/lib/tern-view.coffee:6:5
at Object.<anonymous> (/Users/alex/.atom/packages/Tern/lib/tern-view.coffee:129:5)
at Object.<anonymous> (/Users/alex/.atom/packages/Tern/lib/tern-view.coffee:1:1)
at Module._compile (module.js:452:26)
at Object.requireCoffeeScript (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/coffee-cash/lib/coffee-cash.js:85:19)
at Module.load (module.js:347:32)
at Function.Module._load (module.js:302:12)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at Object.<anonymous> (/Users/alex/.atom/packages/Tern/lib/tern.coffee:1:12)
at Object.<anonymous> (/Users/alex/.atom/packages/Tern/lib/tern.coffee:1:1)
at Module._compile (module.js:452:26)
at Object.requireCoffeeScript (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/coffee-cash/lib/coffee-cash.js:85:19)
at Module.load (module.js:347:32)
at Function.Module._load (module.js:302:12)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:709:34)
at Package.module.exports.Package.activateConfig (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:257:12)
at PackageDetailView.module.exports.PackageDetailView.activate (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-detail-view.js:163:26)
at PackageDetailView.module.exports.PackageDetailView.updateInstalledState (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-detail-view.js:201:12)
at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-detail-view.js:235:24
at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/emissary/lib/emitter.js:155:30
at Array.forEach (native)
at PackageManager.module.exports.Emitter.emitSlow (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/emissary/lib/emitter.js:154:47)
at PackageManager.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/emissary/lib/emitter.js:107:30)
at PackageManager.module.exports.PackageManager.emitPackageEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:546:19)
at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:369:26
at exit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:53:16)
at triggerExitCallback (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:213:47)
at ChildProcess.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:235:18)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:169:7)
at Process.ChildProcess._handle.onexit (child_process.js:1057:12)
-4:37 settings-view:open (atom-text-editor.editor.is-focused)
5x -4:31.4.0 core:backspace (atom-text-editor.editor.mini.is-focused)
2x -4:27 core:confirm (atom-text-editor.editor.mini.is-focused)
10x -1:39.1.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-1:36.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
{
"core": {
"ignoredNames": [
".DS_Store"
],
"projectHome": "~/Documents/Projects",
"themes": [
"unity-ui",
"one-light-syntax"
],
"useReactEditor": true,
"followSymlinks": true
}
}
# User
color-picker, v2.0.7
command-logger, v0.23.0
file-type-icons, v0.7.0
git-plus, v5.2.1
language-arm, v0.3.3
language-lua, v0.9.3
language-m68k, v0.2.0
language-pascal, v0.7.0
language-prolog, v0.10.0
language-x86, v0.1.0
linter, v1.0.4
linter-coffeescript, v0.2.1
linter-cpplint, v0.1.4
linter-flake8, v1.4.2
linter-jshint, v0.1.6
linter-luacheck, v0.5.0
markdown-writer, v1.4.0
unity-ui, v2.0.11
# Dev
No dev packages
I'm getting the following error, occasionally, with no clear trigger. Always while just changing some file, but then not repeatedly on this specific file but just once, etc. It also doesn't bring up the report this error option, as if it were failing on a different level. the tern server goes down as well.
atom-ternjs
~/.atom/packages/atom-ternjs/node_modules/tern/lib/infer.js:0 (function (exports, require, module, filename, dirname) { // Main type inf
TypeError: undefined is not a function
at infer (~/.atom/packages/atom-ternjs/node_modules/tern/lib/infer.js:1174:39)
at Object.walk.make.Expression (~/.atom/packages/atom-ternjs/node_modules/tern/lib/infer.js:1179:7)
at c (~/.atom/packages/atom-ternjs/node_modules/tern/node_modules/acorn/util/walk.js:60:37)
at Object.base.ExpressionStatement (~/.atom/packages/atom-ternjs/node_modules/tern/node_modules/acorn/util/walk.js:176:5)
at c (~/.atom/packages/atom-ternjs/node_modules/tern/node_modules/acorn/util/walk.js:60:37)
at Object.skipThrough [as Statement] (~/.atom/packages/atom-ternjs/node_modules/tern/node_modules/acorn/util/walk.js:163:39)
at c (~/.atom/packages/atom-ternjs/node_modules/tern/node_modules/acorn/util/walk.js:60:37) at Object.base.IfStatement (~/.atom/packages/atom-ternjs/node_modules/tern/node_modules/acorn/util/walk.js:180:5)
at c (~/.atom/packages/atom-ternjs/node_modules/tern/node_modules/acorn/util/walk.js:60:37)
at Object.skipThrough [as Statement] (~/.atom/packages/atom-ternjs/node_modules/tern/node_modules/acorn/util/walk.js:163:39)
I already have some of your to-do items done :) https://github.com/mattapperson/atom-ternjs/
i've installed this plugin many times since it released on several windows version and each time upon completion it "fatal error"ed while opening the console.
"Uncaught TypeError: Cannot call method 'update' of null"
tested across 2 windows machines and 5 atom version -> failed everytime.
installed tern module as global just in case.
Hi! Thanks for maintaining the tern package!
In Atom v1.12, we are going to upgrade CoffeeScript to the latest version. This upgrade entails one potentially breaking change to the language:
Changed strategy for the generation of internal compiler variable names. Note that this means that @example function parameters are no longer available as naked example variables within the function body.
We think your package may be affected by this upgrade, in the following places:
word
variable hereThese findings are based on linting packages with coffeescope
. We could be wrong about some of them. When we release v1.12 beta, please test your package against it to make sure that it works. Let me know if you have any further questions; I will be happy to help!
Uncaught TypeError: Cannot read property 'update' of null
Atom Version: 0.161.0
System: Mac OS X 10.10.1
Thrown From: Tern package, v0.8.0
At /Users/aziz/.atom/packages/Tern/lib/tern.coffee:9
TypeError: Cannot read property 'update' of null
at Object.module.exports.update (/Users/aziz/.atom/packages/Tern/lib/tern.coffee:9:15)
at /Applications/Atom.app/Contents/Resources/app/node_modules/underscore-plus/node_modules/underscore/underscore.js:701:23
at TextBuffer.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:118:15)
at /Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:1143:17
/cc @atom/core
I recently updated to atom 1.8.0 and installed atom-tern (my previous version did not have the term plugin installed because I was getting this exact issue). I had the plugin working fine until installing node-express
plugin which caused the TypeError. However, removing the package did not fix it, but removing node
from the plugins does.
I have the package working now, but I don't receive full auto-completion since I cannot use the node
plugin.
Update:
Seems like the node
plugin does not like to work with mixed ecma versions. That is, if you set the ecmaVersion
in .tern-project to 6, tern crashes when trying to autocomplete in a file that uses ecma 5.
[Enter steps to reproduce below:]
Atom Version: 1.8.0
System: Mac OS X 10.11.5
Thrown From: Tern package, v0.8.0
Failed to load the Tern package
At Cannot read property 'prototype' of undefined
TypeError: Cannot read property 'prototype' of undefined
at __extends (/Users/naveendhayanidhi/.atom/packages/Tern/lib/tern-view.coffee:1:1)
at /Users/naveendhayanidhi/.atom/packages/Tern/lib/tern-view.coffee:6:5
at Object.<anonymous> (/Users/naveendhayanidhi/.atom/packages/Tern/lib/tern-view.coffee:129:5)
at Object.<anonymous> (/Users/naveendhayanidhi/.atom/packages/Tern/lib/tern-view.coffee:1:1)
at Module._compile (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
at Object.defineProperty.value [as .coffee] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
at Object.<anonymous> (/Users/naveendhayanidhi/.atom/packages/Tern/lib/tern.coffee:1:12)
at Object.<anonymous> (/Users/naveendhayanidhi/.atom/packages/Tern/lib/tern.coffee:1:1)
at Module._compile (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
at Object.defineProperty.value [as .coffee] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:715:27)
at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:117:28
at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:92:15)
at Package.module.exports.Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:106:12)
at PackageManager.module.exports.PackageManager.loadPackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:457:14)
at PackageManager.module.exports.PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:536:30)
at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:452:29
at exit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-manager.js:73:16)
at triggerExitCallback (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:215:47)
at /Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:222:18
at Socket.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:100:18)
at emitOne (events.js:82:20)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:469:12)
3x -6:04.1.0 core:backspace (atom-text-editor.editor.is-focused.autocomplete-active)
-4:25.1.0 command-palette:toggle (atom-text-editor.editor.is-focused)
-4:14.9.0 package-generator:generate-package (atom-text-editor.editor)
-4:13.3.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
-4:13.3.0 core:cancel (atom-text-editor.editor.mini.is-focused)
-4:11.6.0 command-palette:toggle (atom-text-editor.editor.is-focused)
-4:06.8.0 core:backspace (atom-text-editor.editor.mini.is-focused)
2x -4:06.2.0 core:move-down (atom-text-editor.editor.mini.is-focused)
-4:04.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-4:04.7.0 update-package-dependencies:update (atom-text-editor.editor)
-3:51.2.0 core:cancel (div.)
-3:42.8.0 tree-view:remove (span.name.icon.icon-file-text)
-2:35.5.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-2:03.6.0 core:move-right (atom-text-editor.editor.mini.is-focused)
2x -2:03.3.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-0:45.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
{}
# User
Tern, v0.8.0
# Dev
No dev packages
Hi..sorry but seems than tern is not working with the latest atom, I just downloaded atom and tern using apm, click start server but the editor doesn't show any activity...the completition is the standar in the editor...is there something than I could do for check if it's running or a manual run??...please let me know if I can help because I really need to use tern
thanks!!
[Enter steps to reproduce below:]
Atom Version: 0.209.0
System: Mac OS X 10.10.3
Thrown From: Tern package, v0.8.0
Failed to activate the Tern package
At Cannot read property 'prototype' of undefined
TypeError: Cannot read property 'prototype' of undefined
at __extends (/Users/anil/.atom/packages/Tern/lib/tern-view.coffee:1:1)
at /Users/anil/.atom/packages/Tern/lib/tern-view.coffee:6:5
at Object.<anonymous> (/Users/anil/.atom/packages/Tern/lib/tern-view.coffee:129:5)
at Object.<anonymous> (/Users/anil/.atom/packages/Tern/lib/tern-view.coffee:1:1)
at Module._compile (module.js:452:26)
at Object.requireCoffeeScript (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/coffee-cash/lib/coffee-cash.js:85:19)
at Module.load (module.js:347:32)
at Function.Module._load (module.js:302:12)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at Object.<anonymous> (/Users/anil/.atom/packages/Tern/lib/tern.coffee:1:12)
at Object.<anonymous> (/Users/anil/.atom/packages/Tern/lib/tern.coffee:1:1)
at Module._compile (module.js:452:26)
at Object.requireCoffeeScript (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/coffee-cash/lib/coffee-cash.js:85:19)
at Module.load (module.js:347:32)
at Function.Module._load (module.js:302:12)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:709:34)
at Package.module.exports.Package.activateConfig (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:257:12)
at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:236:14)
at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:772:25
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:219:20)
at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:159:32)
at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
at space-pen-li.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:139:19)
at HTMLOListElement.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
at HTMLOListElement.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)
-0:11 editor:newline (atom-text-editor.editor.is-focused)
4x -0:07.3.0 core:undo (atom-text-editor.editor.is-focused)
-0:04.6.0 command-palette:toggle (atom-text-editor.editor.is-focused)
-0:01.3.0 tern:start-server (atom-text-editor.editor)
{
"core": {
"ignoredNames": [
".git",
".svn",
".DS_Store"
],
"useReactEditor": true,
"themes": [
"spacegray-dark-ui",
"one-dark-syntax"
]
}
}
# User
Tern, v0.8.0
color-picker, v2.0.4
editor-stats, vundefined
file-icons, v1.5.7
keyboard-sounds, v0.2.0
linter, v0.12.7
linter-jshint, v0.1.6
linter-rubocop, v0.2.7
minimap, v4.10.0
pretty-json, v0.3.3
project-manager, v1.15.10
react, v0.12.0
spacegray-dark-ui, v0.12.0
# Dev
No dev packages
It shoud be cool if atom editor could displays errors of the tern lint https://github.com/angelozerr/tern-lint which is a tern plugin to to validate JS files with tern.
You can see what tern lint is able to validate here => https://github.com/angelozerr/tern-lint/wiki/Validation-Rules
I am running Atom on Windows and installed Tern using the apm.
As per instructions, when I ctrl-shift-p and type "Tern: start server", no matches are found.
Would like to validate what the correct usage on Atom (Windows) is.
In keymaps/tern.cson: Use the atom-text-editor
tag instead of the editor
class.
Failed to activate package named 'Tern' ReferenceError: editor is not defined
at Object.<anonymous> (/home/despairblue/.atom/packages/Tern/lib/tern.coffee:8:13)
at Object.<anonymous> (/home/despairblue/.atom/packages/Tern/lib/tern.coffee:1:1)
at Module._compile (module.js:455:26)
at Object.requireCoffeeScript [as .coffee] (/usr/share/atom/resources/app/src/coffee-cache.js:54:19)
at Module.load (/usr/share/atom/resources/app/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:363:17)
at require (module.js:379:17)
at Package.module.exports.Package.requireMainModule (/usr/share/atom/resources/app/src/package.js:485:34)
at Package.module.exports.Package.activateConfig (/usr/share/atom/resources/app/src/package.js:178:12)
at Package.module.exports.Package.activateNow (/usr/share/atom/resources/app/src/package.js:160:14)
at Package.module.exports.Package.handleActivationEvent (/usr/share/atom/resources/app/src/package.js:548:12)
at HTMLDivElement.<anonymous> (/usr/share/atom/resources/app/src/package.js:3:61)
at HTMLDivElement.jQuery.event.dispatch (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4676:9)
at HTMLDivElement.elemData.handle (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4360:28)
at Object.jQuery.event.trigger (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4594:12)
at HTMLInputElement.<anonymous> (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:5119:17)
at Function.jQuery.extend.each (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:590:23)
at [object Object].jQuery.fn.jQuery.each (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:237:17)
at [object Object].jQuery.fn.extend.trigger (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:5118:15)
at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/usr/share/atom/resources/app/node_modules/command-palette/lib/command-palette-view.js:110:32)
at CommandPaletteView.module.exports.SelectListView.confirmSelection (/usr/share/atom/resources/app/src/select-list-view.js:269:21)
at HTMLDivElement.<anonymous> (/usr/share/atom/resources/app/src/select-list-view.js:108:24)
at HTMLDivElement.jQuery.event.dispatch (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4676:9)
at HTMLDivElement.elemData.handle (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4360:28)
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:395:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:176:22)
at HTMLDocument.<anonymous> (/usr/share/atom/resources/app/src/window-event-handler.js:90:29)
at HTMLDocument.jQuery.event.dispatch (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4676:9)
at HTMLDocument.elemData.handle (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4360:28)
/usr/share/atom/resources/app/src/package.js:168
Error activating package config for “Tern” ReferenceError {} /usr/share/atom/resources/app/node_modules/settings-view/lib/settings-view.js:433
Use activationCommands
instead of activationEvents
in your package.json
Commands should be grouped by selector as follows:
"activationCommands": {
"atom-workspace": ["foo:bar", "foo:baz"],
"atom-text-editor": ["foo:quux"]
}
Package.getActivationCommands (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:808:9)
Package.hasActivationCommands (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:733:20)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:187:24)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:165:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:179:12)
PackageManager.loadPackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:372:14)
In keymaps/tern.cson: Use the selector atom-text-editor[mini]
to select mini-editors.
I am hoping to see the ability to add plugins like this Meteor one into this version of Tern. Thanks. https://github.com/Slava/tern-meteor
This appears in my console when I try to use this package:
Error: Cannot find module '/Users/Oliver/.atom/packages/Tern/node_modules/.bin/tern'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:279:25)
at Function.Module.runMain (module.js:496:10)
at startup (node.js:129:16)
at node.js:1037:3
Do I need to give the package permission to install Tern? I am using a Node version manager if that helps.
Tern crashes upon atom reload after "apm install tern".
Atom Version: 1.1.0
System: "Arch Linux"
Thrown From: Tern package, v0.8.0
Failed to load the Tern package
At Cannot read property 'prototype' of undefined
TypeError: Cannot read property 'prototype' of undefined
at __extends (/home/user1316/.atom/packages/Tern/lib/tern-view.coffee:1:1)
at /home/user1316/.atom/packages/Tern/lib/tern-view.coffee:6:5
at Object.<anonymous> (/home/user1316/.atom/packages/Tern/lib/tern-view.coffee:6:5)
at Object.<anonymous> (/home/user1316/.atom/packages/Tern/lib/tern-view.coffee:1:1)
at Module._compile (module.js:428:26)
at Object.defineProperty.value [as .coffee] (/usr/share/atom/resources/app.asar/src/compile-cache.js:169:21)
at Module.load (module.js:353:32)
at Function.Module._load (module.js:308:12)
at Module.require (module.js:363:17)
at require (module.js:382:17)
{
"core": {
"projectHome": "~/CODE",
"themes": [
"one-dark-ui",
"solarized-dark-syntax"
],
"autoHideMenuBar": true
}
}
# User
Tern, v0.8.0
file-icons, v1.6.11
highlight-line, v0.11.0
linter, v1.9.1
# Dev
No dev packages
I'm not sure, but .tern-project, .tern-config files are not loaded properly.
May be problem in that function findProjectDir() {...} in .bin -> tern.
Cmd+space is bound to Spotlight search on OS X. Is there a setting I can use to change the tern keybinding or do I have to fork the project?
Store package style sheets in the styles/
directory instead of stylesheets/
in the Tern
package
Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:453:38)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:185:19)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:165:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:179:12)
The context menu CSON format has changed. Please see
https://atom.io/docs/api/latest/ContextMenuManager
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.