Giter Site home page Giter Site logo

Comments (6)

bruno-medeiros avatar bruno-medeiros commented on June 21, 2024

What happens if you run /opt/go/v1.8.3/bin/go clean -i -x net.arc.test/test on the command line?

from goclipse.

ivandejanovic avatar ivandejanovic commented on June 21, 2024

I have the same issues as roshanail. Eclipse Mars with goclipse 0.14.1 works fine. Eclipse Neon with goclipse 0.16.1 reports the error. My go version is 1.8.3.

screenshot at 2017-06-22 14 51 15

screenshot at 2017-06-22 14 51 22

I created a new simple project. When i try to build from eclipse I get an error

screenshot at 2017-06-22 14 51 40

from goclipse.

roshanail avatar roshanail commented on June 21, 2024

Here is the command line output

roshan@ARC-T470p:~/go/src$ /opt/go/v1.8.3/bin/go clean -i -x net.arc.test/test
cd /home/roshan/go/src/net.arc.test/test
rm -f test test.exe test.test test.test.exe hello hello.exe
rm -f /home/roshan/go/bin/test


roshan@ARC-T470p:~/go/src$ /opt/go/v1.8.3/bin/go install  -x net.arc.test/test
WORK=/tmp/go-build189825138
mkdir -p $WORK/net.arc.test/test/_obj/
mkdir -p $WORK/net.arc.test/test/_obj/exe/
cd /home/roshan/go/src/net.arc.test/test
/opt/go/v1.8.3/pkg/tool/linux_amd64/compile -o $WORK/net.arc.test/test.a -trimpath $WORK -p main -complete -buildid 8bda8c8360f1df2f2f79549d9b68695070b4fc76 -D _/home/roshan/go/src/net.arc.test/test -I $WORK -pack ./hello.go
cd .
/opt/go/v1.8.3/pkg/tool/linux_amd64/link -o $WORK/net.arc.test/test/_obj/exe/a.out -L $WORK -extld=gcc -buildmode=exe -buildid=8bda8c8360f1df2f2f79549d9b68695070b4fc76 $WORK/net.arc.test/test.a
mkdir -p /home/roshan/go/bin/
mv $WORK/net.arc.test/test/_obj/exe/a.out /home/roshan/go/bin/test

from goclipse.

bruno-medeiros avatar bruno-medeiros commented on June 21, 2024

Okay, found it now, it has to do with a change introduced in 0.16.1 : https://github.com/GoClipse/goclipse/releases/tag/v0.16.1 , namely that the The GOROOT environment variable is no longer set. I thought the behavior introduced in 0.16.1 is the correct one, but now I'm not so sure. I think I will revert this change.

For now, as a workaround, you need to make GOROOT matches the Go installation you configured in Goclipse. (note you can either change GOROOT globally for your user, but you can also configure it per Build Target)

from goclipse.

lucadistefano avatar lucadistefano commented on June 21, 2024

How to change GOROOT globally for user? I tried to export GOROOT env variable when launching eclipse but seems is not seen by goclipse and I have not found in eclipse another place where set GOROOT .
thanks

from goclipse.

voinageo avatar voinageo commented on June 21, 2024

Sadly GoClipse is dead the developers stopped maintaining the plugin in 2016. I still love Eclipse but lack of Go support makes it unusable. Very Sad.

from goclipse.

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.