GithubHelp home page GithubHelp logo

Compilation Error about gocode HOT 3 CLOSED

nsf avatar nsf commented on August 20, 2024
Compilation Error

from gocode.

Comments (3)

thHube avatar thHube commented on August 20, 2024

I've resolved it. Some types and constants has been moved around. I just changed in file os_posix.go the first lines as follows.

import (
    "flag"
    "os"
    "os/signal"
    "syscall"
    "path/filepath"
    "exec"
)

func CreateSockFlag(name, desc string) *string {
    return flag.String(name, "unix", desc)
}

func IsTerminationSignal(sig signal.Signal) bool {
    usig, ok := sig.(signal.UnixSignal)
    if !ok {
        return false
    }
    if usig == syscall.SIGINT || usig == syscall.SIGTERM {
        return true
    }
    return false
}

from gocode.

nsf avatar nsf commented on August 20, 2024

Your compiler:
COMPILER: 6g version release.r57.2 8306

My compiler:
8g version weekly.2011-06-09 8703

See the number. My weekly version was before release.r57.2 and yet it has higher revision number. Check out your install. The compiler prints an erorr because signals were moved to "os" package in weekly.2011-06-09. Should work with weekly.2011-06-09. I haven't checked the most recent version. But they should work I guess.

from gocode.

nsf avatar nsf commented on August 20, 2024

I've just checked the latest weekly.2011-06-16. It works.

from gocode.

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.