Comments (39)
Where does this error show up? In a log? Dialog box?
Original comment by [email protected]
on 26 Nov 2010 at 5:26
from goclipse.
dialog box
it will show up just after creating new project and new gosource.
Original comment by [email protected]
on 29 Nov 2010 at 2:28
from goclipse.
I have attached a screenshot, can you see if this matches what you're seeing?
If so, please adjust your Go settings (by choosing Preferences from the Window
menu, then choosing Go on the left-hand side). Make sure that all of the items
in that preferences page have a valid value.
Original comment by [email protected]
on 29 Nov 2010 at 3:11
Attachments:
from goclipse.
No,It is this one:
Original comment by [email protected]
on 3 Dec 2010 at 4:12
Attachments:
from goclipse.
I get this same error on OSX 10.6, running Eclipse 3.6.1. The following stack
trace shows up in the error log:
org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
at org.eclipse.core.runtime.Path.initialize(Path.java:577)
at org.eclipse.core.runtime.Path.<init>(Path.java:163)
at org.eclipse.core.runtime.Path.fromOSString(Path.java:90)
at
com.googlecode.goclipse.builder.ExternalCommand.<init>(ExternalCommand.java:38)
at
com.googlecode.goclipse.builder.ExternalCommand.<init>(ExternalCommand.java:32)
at
com.googlecode.goclipse.builder.GoDependencyManager.<init>(GoDependencyManager.j
ava:56)
at com.googlecode.goclipse.builder.GoBuilder.checkBuild(GoBuilder.java:159)
at com.googlecode.goclipse.builder.GoBuilder.build(GoBuilder.java:121)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:3
11)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
All Go path preferences ARE set to valid values on the Go preference page.
Original comment by [email protected]
on 13 Dec 2010 at 5:14
from goclipse.
Same here:
Helios Service Release 1
20100917-0705
Gentoo Linux x64
go plugin seams correct.
full log attached.
Issue occurred immediately after go project creation by wizard.
Original comment by [email protected]
on 13 Dec 2010 at 9:46
Attachments:
from goclipse.
I also receive this fault on Windows 7 Pro 64-bit
Original comment by [email protected]
on 16 Dec 2010 at 7:39
from goclipse.
BTW do you consider this issue as Medium? It is absolute blocker for me right
now.
Original comment by [email protected]
on 18 Dec 2010 at 8:02
from goclipse.
The problem has to do with a file called dep.go (which may be copied during the
project creation process to /workspace/.metadata/.go/ and then compiled) when
it fails to compile for some reason. The situation when it fails to compile is
currently not handled in the goclipse plugin. It is therefore important that it
can be compiled. Updating to the latest version of the go compiler will solve
the problem, at least it did it for me.
Original comment by [email protected]
on 19 Dec 2010 at 11:38
from goclipse.
I have followed the instructions for fetching and installing go at
http://golang.org/doc/install.html which should ensure I have the latest go
release and still I get this error.
If it is a problem with dep.go (which is copied under workspace/.metadata/.go,
then the latest go release does not fix it for me.
Original comment by [email protected]
on 20 Dec 2010 at 3:07
from goclipse.
8g dep.go fails for me with errors that point towards the syntax for
go/parser's ParseFile func being updated.
line 20:
astf, error := parser.ParseFile(filename, nil, parser.ImportsOnly)
http://golang.org/pkg/go/parser/#ParseFiles gives ParseFile syntax as:
func ParseFile(fset *token.FileSet, filename string, src interface{}, mode
uint) (*ast.File, os.Error)
so yeah they've added a parameter
i believe an appropriate hack is to change the line to read:
astf, error := parser.ParseFile(token.NewFileSet(), filename, nil,
parser.ImportsOnly)
I don't know Go at all, though. Also dep.go seems to get overwritten on build,
so this change is futile so far.
Original comment by [email protected]
on 20 Dec 2010 at 6:17
from goclipse.
er, overwrite the dep.go in (eclipse
folder)/plugins/goclipse_0.0.17/tools/src/dep/dep.go. that seems to be what
gets copied over repeatedly.
does it work? yup, seems to solve the error. (I now have a different one due to
not having gocode installed, which is probably much more my fault.)
Original comment by [email protected]
on 20 Dec 2010 at 6:26
from goclipse.
That fixes the issue for me, this appears to be a valid workaround.
Original comment by [email protected]
on 20 Dec 2010 at 4:54
from goclipse.
People who are using 0.17 can workaround it by recompiling the dep.go manually:
# Start in your eclipse workspace:
# (mine is ~/dev/workspace, yours may vary)
cd ~/dev/workspace
# Go into the .go metadata directory for your platform
# (mine is GOOS=darwin, GOARCH=amd64, yours may vary)
cd .metadata/.go/darwin/amd64
# Fetch the latest dep.go
curl http://goclipse.googlecode.com/svn/trunk/goclipse-n/tools/src/dep/dep.go >
dep.go
# Recompile the tool manually
$GOROOT/bin/6g dep.go
$GOROOT/bin/6l dep.6
Original comment by [email protected]
on 20 Dec 2010 at 5:14
from goclipse.
I am using 0.18.I can't believe that after three months,this bug hasn't been
fixed.I noticed this project is high active status.After so long time,why
doesn't even most basic function work?
Original comment by [email protected]
on 17 Feb 2011 at 3:29
from goclipse.
I still cannot reproduce this error
Original comment by [email protected]
on 29 Mar 2011 at 5:44
from goclipse.
Same issue still existed in 0.0.23 with newest go version.I am not sure whether
it dues to I am using a 64 bit java.
Original comment by [email protected]
on 2 Jun 2011 at 7:10
Attachments:
- [Workspace 1_018.png](https://storage.googleapis.com/google-code-attachments/goclipse/issue-29/comment-17/Workspace 1_018.png)
from goclipse.
Did the problem ever go away, before it came back? Do you get a stacktrace
when you run it from the command line? I have never been able to reproduce
this problem. I run on Windows, Ubuntu, and OS X all with a 64bit JVM. How
are you configured now, Go-wise?
Original comment by [email protected]
on 3 Jun 2011 at 1:54
from goclipse.
I just installed goclipse on Mac OS X, and I get the same problem.
Original comment by [email protected]
on 28 Jun 2011 at 12:59
Attachments:
- [Screen shot 2011-06-27 at 5.58.40 PM.png](https://storage.googleapis.com/google-code-attachments/goclipse/issue-29/comment-19/Screen shot 2011-06-27 at 5.58.40 PM.png)
from goclipse.
I still don't know what this problem is. To diagnose this, I need to know your
environment variables, eclipse go preferences, and any stacktraces/error logs
you can find.
Original comment by [email protected]
on 28 Jun 2011 at 4:59
from goclipse.
Also, I need to know what version of Go you are using...
Original comment by [email protected]
on 28 Jun 2011 at 5:03
from goclipse.
Same issue still existed in 0.1.3 with newest go version(I remove go source and
goin and reinstall it just now(2011-07-24 14:50).My configuration is:
--------------------------------------------
java 1.6 bit
ubuntu 11.04 64bit
--------------------------------------------
this is error log:
--------------------------------------------
eclipse.buildId=M20110210-1200
java.version=1.7.0-ea
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -desktop
Command-line arguments: -os linux -ws gtk -arch x86_64 -product
org.eclipse.epp.package.jee.product -desktop
Error
Sun Jul 24 14:45:05 CST 2011
Errors occurred during the build.
Error
Sun Jul 24 14:45:05 CST 2011
Errors running builder 'Go Project Builder' on project 'GOTest'.
org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
at org.eclipse.core.runtime.Path.initialize(Path.java:577)
at org.eclipse.core.runtime.Path.<init>(Path.java:163)
at org.eclipse.core.runtime.Path.fromOSString(Path.java:90)
at com.googlecode.goclipse.builder.ExternalCommand.<init>(ExternalCommand.java:39)
at com.googlecode.goclipse.builder.ExternalCommand.<init>(ExternalCommand.java:33)
at com.googlecode.goclipse.builder.GoDependencyManager.<init>(GoDependencyManager.java:55)
at com.googlecode.goclipse.builder.GoBuilder.checkBuild(GoBuilder.java:161)
at com.googlecode.goclipse.builder.GoBuilder.build(GoBuilder.java:123)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
--------------------------
--------------------------------------------
eclipse.buildId=M20110210-1200
java.version=1.7.0-ea
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -desktop
Command-line arguments: -os linux -ws gtk -arch x86_64 -product
org.eclipse.epp.package.jee.product -desktop
Error
Sun Jul 24 14:45:05 CST 2011
Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
at org.eclipse.core.runtime.Path.initialize(Path.java:577)
at org.eclipse.core.runtime.Path.<init>(Path.java:163)
at org.eclipse.core.runtime.Path.fromOSString(Path.java:90)
at com.googlecode.goclipse.builder.ExternalCommand.<init>(ExternalCommand.java:39)
at com.googlecode.goclipse.builder.ExternalCommand.<init>(ExternalCommand.java:33)
at com.googlecode.goclipse.builder.GoDependencyManager.<init>(GoDependencyManager.java:55)
at com.googlecode.goclipse.builder.GoBuilder.checkBuild(GoBuilder.java:161)
at com.googlecode.goclipse.builder.GoBuilder.build(GoBuilder.java:123)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
--------------------------------------------
--------------------------------------------
Original comment by [email protected]
on 24 Jul 2011 at 6:54
from goclipse.
by the way,the problem never go away.
Original comment by [email protected]
on 24 Jul 2011 at 6:57
from goclipse.
any guys notice this issue?
Original comment by [email protected]
on 29 Jul 2011 at 12:53
from goclipse.
Are you using Java 7? I read that it had some major problems and not to use it
yet.
Original comment by [email protected]
on 29 Jul 2011 at 8:02
from goclipse.
yes,jdk 1.7 is being used now.But after re-configuring to use java
1.6,reinstall goclipse and creating a brand new workspace,same problem still
exist and same error stack trace as before.this is session content:
======================================
eclipse.buildId=M20110210-1200
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -desktop
Command-line arguments: -os linux -ws gtk -arch x86_64 -product
org.eclipse.epp.package.jee.product -desktop
----------------------------------
Original comment by [email protected]
on 30 Jul 2011 at 5:41
from goclipse.
Did you set you Go preferences in eclipse?
Original comment by [email protected]
on 31 Jul 2011 at 5:44
Attachments:
- [goclipse-Preferences .png](https://storage.googleapis.com/google-code-attachments/goclipse/issue-29/comment-27/goclipse-Preferences .png)
from goclipse.
Same Problem here, Ubuntu 10.10 64bit
think the problem is the nil in the dep.go. Anyone solved this problem?!
>>> astf, error := parser.ParseFile(token.NewFileSet(), filename, nil,
parser.ImportsOnly) <<<
Original comment by [email protected]
on 13 Oct 2011 at 10:12
from goclipse.
Yeah, the Go API may have changed. We probably need to prebuild these
components or do it all in java.
Original comment by [email protected]
on 14 Oct 2011 at 3:21
from goclipse.
Hi every body !
still have this problem too, I tried everything ! No one has a solution ?
Original comment by riadh1s
on 16 Nov 2011 at 8:48
from goclipse.
Hoping you guys aren't stupid as me.Please do specify all arguments to
executable files exactly like "/GOHOME/dir/bin/6g" not stop at directory
"/GOHOME/dir/bin".By the way,hope the plugin can detect the environment
variables automatically,or auto-configure in some way.
Original comment by [email protected]
on 20 Nov 2011 at 5:10
from goclipse.
[deleted comment]
from goclipse.
I had this issue when I've tried to use the default golang and eclipse packages
in Ubuntu 11.10. (Oneiric)
I've got it working with the following steps:
1) Install Go packages
sudo apt-get install golang-go golang-tools
2) Create bin symlink for a proper go directory
sudo ln -s ../../bin /usr/lib/go/bin
3) Install Eclipse
sudo apt-get install eclipse-pde
4) Start Eclipse and install goclipse
Update URL: http://goclipse.googlecode.com/svn/trunk/goclipse-update-site/
5) Configure the Go language settings:
Window -> Preferences -> Go -> set "GOROOT path" to "/usr/lib/go"
Note: All the binary paths should be automatically filled in. If not please hit
the "Restore Defaults" button and try again.
Original comment by [email protected]
on 24 Dec 2011 at 10:56
from goclipse.
Still have same problem.
Errors occurred during the build.
Errors running builder 'Go Project Builder' on project 'test'.
null argument:
Error
Wed Feb 15 19:27:13 SAST 2012
Errors running builder 'Go Project Builder' on project 'test'.
org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
at org.eclipse.core.runtime.Path.initialize(Path.java:577)
at org.eclipse.core.runtime.Path.<init>(Path.java:163)
at org.eclipse.core.runtime.Path.fromOSString(Path.java:90)
at com.googlecode.goclipse.builder.ExternalCommand.<init>(ExternalCommand.java:40)
at com.googlecode.goclipse.builder.ExternalCommand.<init>(ExternalCommand.java:34)
at com.googlecode.goclipse.builder.GoDependencyManager.<init>(GoDependencyManager.java:55)
at com.googlecode.goclipse.builder.GoBuilder.checkBuild(GoBuilder.java:169)
at com.googlecode.goclipse.builder.GoBuilder.build(GoBuilder.java:124)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
My workspace .metadata directory is as follows:
.metadata/.go/linux/386/tools
There is no other files in there - not even the dep.go.
Eclipse paths is properly setup.
Eclipse Java EE IDE for Web Developers.
Version: Indigo Service Release 1
Build id: 20110916-0149
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)
Gentoo 32bit
8g version release.r60.3 9516
Have gocode installed and working in Gedit.
Original comment by [email protected]
on 15 Feb 2012 at 5:29
from goclipse.
I was able to reproduce this - we should (knock on wood) have a fix for it in
the next release.
Original comment by [email protected]
on 15 Feb 2012 at 11:16
- Changed state: Accepted
- Added labels: Priority-High
- Removed labels: Priority-Medium
from goclipse.
I'd like to mark this as fixed, but there've been so many reports on this bug
for so long that I'm not sure it's all caused by the same issue. In any case,
at least one of the causes has been fixed.
Original comment by [email protected]
on 19 Feb 2012 at 11:03
- Changed state: Watching
- Added labels: Priority-Medium
- Removed labels: Priority-High
from goclipse.
It is working for me.
Thanks
Original comment by [email protected]
on 20 Feb 2012 at 9:41
from goclipse.
Original comment by [email protected]
on 25 Mar 2012 at 6:31
- Changed state: Fixed
from goclipse.
still facing the same error
Original comment by [email protected]
on 18 Mar 2015 at 6:38
from goclipse.
Related Issues (20)
- Gocode Plugin failed to kill gocode process on Windows XP home Edition
- Can't use imported packages HOT 2
- Build Errors Don't Stop Execution HOT 1
- Unchecking "Start Gocode server automatically" has no effect HOT 1
- Let Go projects being created in arbitrary directories
- Handle Go line directives correctly
- Build produce no output in Console HOT 3
- No automatic indentation
- Error with documentation popup
- Not compiling on save HOT 2
- Go uses weird date format (probably US, or iranian) HOT 2
- Linked folders cause project name to be prepended to file paths, causing Resource Not Found stack traces. HOT 1
- External Packages Aren't Added to Pkg Directory
- ctrl-clic can show to wrong function
- Debugging: adding a breakpoint results in -break-insert error messages from gdb into the console HOT 1
- UTF-8 chinese character GoCode
- Content assist does not work for some source code file HOT 1
- Create markers when formatting fails HOT 2
- unexpected char: }
- .exe file doesn't exist HOT 5
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.