Comments (6)
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.
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.
I created a new simple project. When i try to build from eclipse I get an error
from goclipse.
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.
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.
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.
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)
- Auto running gofmt does not work HOT 10
- go installation directory can't save HOT 1
- Support creation of new Build Targets
- Console Doesn't Show (ever) HOT 2
- gocode.exe eliminated, why? HOT 2
- No executable created
- Option button on outline view to sort alphabetically
- "guru" does not work properly in Goclipse. HOT 2
- How to run a Unit Test for GO like Junit for JAVA HOT 1
- Project doesn't build if it doesn't have a src folder HOT 4
- keyword highlighting dont work?
- The goto label should have autocomplete support
- Outline not correct on open when a struct definition is spread among more than one file
- lint on specific file
- could not start goclipse because java version is 0 HOT 5
- Fail to build lint and work fine inside terminal in MacOS
- 在eclipse上运行go项目报Executable file (D:\work_space\sad\bin\main.exe) doesnt exist. HOT 1
- Got this error when install GoEclipse
- goclipse and gocode doesn't work form golang version 1.10!
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 goclipse.