GithubHelp home page GithubHelp logo

Comments (4)

rubenmv avatar rubenmv commented on June 10, 2024

Same here, it says "Uncaught TypeError: Cannot read property 'update' of null"

Windows 7 64bit
Atom 0.138.0

from atom-tern.

anhhh11 avatar anhhh11 commented on June 10, 2024

Change BufferedNodeProcess to BufferedProcess in Tern/lib/server.coffee should fix that error.

from atom-tern.

dreamcryer avatar dreamcryer commented on June 10, 2024

Well, after changing anhhh11's suggestion, I got this:
"Uncaught ReferenceError: BufferedProcess is not defined"

from atom-tern.

anhhh11 avatar anhhh11 commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.