Comments (4)
Same here, it says "Uncaught TypeError: Cannot read property 'update' of null"
Windows 7 64bit
Atom 0.138.0
from atom-tern.
Change BufferedNodeProcess to BufferedProcess in Tern/lib/server.coffee should fix that error.
from atom-tern.
Well, after changing anhhh11's suggestion, I got this:
"Uncaught ReferenceError: BufferedProcess is not defined"
from atom-tern.
server.coffee after editing:
{BufferedProcess} = require 'atom'
module.exports = ->
process = null
start = (cb)->
path = require 'path'
command = path.resolve __dirname, "../node_modules/.bin/tern"
console.log command
args = ["--persistent", "--no-port-file","--verbose"]
stderr = (output) -> console.error output
stdout = (output) ->
output = output.split(" ")
port = output[output.length - 1]
console.log "Tern server running on port #{port}"
cb port
options =
cwd: atom.project.getRootDirectory().getPath()
console.log(options);
exit = (code) ->
console.log("tern exited with code: #{code}")
process = new BufferedProcess {command, args, options, stdout, stderr, exit}
stop = ->
process?.kill()
process = null
{start, stop}
from atom-tern.
Related Issues (20)
- tern seems not work with the latest atom release 0.11.6... HOT 2
- Plugin errors time after time HOT 5
- Uncaught TypeError: Cannot read property 'getPath' of null HOT 5
- Is there a way to change the default keybinding? HOT 1
- Add support for lint HOT 4
- Uncaught TypeError: Cannot read property 'update' of null HOT 4
- Cmd+shift+p, search for Tern: start server does not yield results on Windows
- Crashes
- Failed to activate the Tern package HOT 4
- Uncaught TypeError: Cannot read property 'prototype' of undefined
- Package.activateResources is deprecated.
- Package.getActivationCommands is deprecated.
- Use the `atom-text-editor` tag instead of the `editor` class.
- Use the selector `atom-text-editor[mini]` to select mini-editors.
- Package.getStylesheetsPath is deprecated. HOT 1
- Failed to load the Tern package HOT 16
- UncaughtException: TypeError: Cannot read property 'length' of null. Restarting Server...
- Tern Package Installation has Failed
- Changes required for upcoming CoffeeScript upgrade
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atom-tern.