Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors occurred during the build. Errors running builder 'Go Project Builder' on project .... #29

Closed
GoogleCodeExporter opened this issue Mar 22, 2015 · 39 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

What steps will reproduce the problem?
1.use eclipse 3.6 create go project
2.click pkg or cmd folder


What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
eclipse 3.6 on ubuntu 10.10 64bit

Please provide any additional information below.
 error message is:
Errors occurred during the build.
Errors running builder 'Go Project Builder' on project 'go'.
null argument:

Original issue reported on code.google.com by Alexande...@gmail.com on 26 Nov 2010 at 11:24

@GoogleCodeExporter
Copy link
Contributor Author

Where does this error show up?  In a log?  Dialog box?

Original comment by graham.m...@gmail.com on 26 Nov 2010 at 5:26

@GoogleCodeExporter
Copy link
Contributor Author

dialog box
 it will show up just after creating new project and new gosource.

Original comment by Alexande...@gmail.com on 29 Nov 2010 at 2:28

@GoogleCodeExporter
Copy link
Contributor Author

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 graham.m...@gmail.com on 29 Nov 2010 at 3:11

Attachments:

@GoogleCodeExporter
Copy link
Contributor Author

No,It is this one:

Original comment by Alexande...@gmail.com on 3 Dec 2010 at 4:12

Attachments:

@GoogleCodeExporter
Copy link
Contributor Author

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 mmjoh...@gmail.com on 13 Dec 2010 at 5:14

@GoogleCodeExporter
Copy link
Contributor Author

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 pavolsta...@gmail.com on 13 Dec 2010 at 9:46

Attachments:

@GoogleCodeExporter
Copy link
Contributor Author

I also receive this fault on Windows 7 Pro 64-bit

Original comment by reuben.b...@gmail.com on 16 Dec 2010 at 7:39

@GoogleCodeExporter
Copy link
Contributor Author

BTW do you consider this issue as Medium? It is absolute blocker for me right 
now.

Original comment by pavolsta...@gmail.com on 18 Dec 2010 at 8:02

@GoogleCodeExporter
Copy link
Contributor Author

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 ake.ragn...@gmail.com on 19 Dec 2010 at 11:38

@GoogleCodeExporter
Copy link
Contributor Author

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 mmjoh...@gmail.com on 20 Dec 2010 at 3:07

@GoogleCodeExporter
Copy link
Contributor Author

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 mer...@starasterisk.com on 20 Dec 2010 at 6:17

@GoogleCodeExporter
Copy link
Contributor Author

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 mer...@starasterisk.com on 20 Dec 2010 at 6:26

@GoogleCodeExporter
Copy link
Contributor Author

That fixes the issue for me, this appears to be a valid workaround.

Original comment by mmjoh...@gmail.com on 20 Dec 2010 at 4:54

@GoogleCodeExporter
Copy link
Contributor Author

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 Mickey.K...@gmail.com on 20 Dec 2010 at 5:14

@GoogleCodeExporter
Copy link
Contributor Author

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 Alexande...@gmail.com on 17 Feb 2011 at 3:29

@GoogleCodeExporter
Copy link
Contributor Author

I still cannot reproduce this error

Original comment by emerson....@gmail.com on 29 Mar 2011 at 5:44

@GoogleCodeExporter
Copy link
Contributor Author

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 Alexande...@gmail.com on 2 Jun 2011 at 7:10

Attachments:

@GoogleCodeExporter
Copy link
Contributor Author

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 emerson....@gmail.com on 3 Jun 2011 at 1:54

@GoogleCodeExporter
Copy link
Contributor Author

I just installed goclipse on Mac OS X, and I get the same problem.

Original comment by dzhe...@gmail.com on 28 Jun 2011 at 12:59

Attachments:

@GoogleCodeExporter
Copy link
Contributor Author

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 emerson....@gmail.com on 28 Jun 2011 at 4:59

@GoogleCodeExporter
Copy link
Contributor Author

Also, I need to know what version of Go you are using...

Original comment by emerson....@gmail.com on 28 Jun 2011 at 5:03

@GoogleCodeExporter
Copy link
Contributor Author

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 Alexande...@gmail.com on 24 Jul 2011 at 6:54

@GoogleCodeExporter
Copy link
Contributor Author

by the way,the problem never go away.

Original comment by Alexande...@gmail.com on 24 Jul 2011 at 6:57

@GoogleCodeExporter
Copy link
Contributor Author

any guys notice this issue?

Original comment by Alexande...@gmail.com on 29 Jul 2011 at 12:53

@GoogleCodeExporter
Copy link
Contributor Author

Are you using Java 7?  I read that it had some major problems and not to use it 
yet.

Original comment by emerson....@gmail.com on 29 Jul 2011 at 8:02

@GoogleCodeExporter
Copy link
Contributor Author

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 Alexande...@gmail.com on 30 Jul 2011 at 5:41

@GoogleCodeExporter
Copy link
Contributor Author

Did you set you Go preferences in eclipse?

Original comment by emerson....@gmail.com on 31 Jul 2011 at 5:44

Attachments:

@GoogleCodeExporter
Copy link
Contributor Author

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 t.kla...@gmail.com on 13 Oct 2011 at 10:12

@GoogleCodeExporter
Copy link
Contributor Author

Yeah, the Go API may have changed.  We probably need to prebuild these 
components or do it all in java.

Original comment by st...@kryas.com on 14 Oct 2011 at 3:21

@GoogleCodeExporter
Copy link
Contributor Author

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

@GoogleCodeExporter
Copy link
Contributor Author

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 Alexande...@gmail.com on 20 Nov 2011 at 5:10

@GoogleCodeExporter
Copy link
Contributor Author

[deleted comment]

@GoogleCodeExporter
Copy link
Contributor Author

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 misch@google.com on 24 Dec 2011 at 10:56

@GoogleCodeExporter
Copy link
Contributor Author

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 Johan12...@gmail.com on 15 Feb 2012 at 5:29

@GoogleCodeExporter
Copy link
Contributor Author

I was able to reproduce this - we should (knock on wood) have a fix for it in 
the next release.

Original comment by devonca...@gmail.com on 15 Feb 2012 at 11:16

  • Changed state: Accepted
  • Added labels: Priority-High
  • Removed labels: Priority-Medium

@GoogleCodeExporter
Copy link
Contributor Author

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 devonca...@gmail.com on 19 Feb 2012 at 11:03

  • Changed state: Watching
  • Added labels: Priority-Medium
  • Removed labels: Priority-High

@GoogleCodeExporter
Copy link
Contributor Author

It is working for me.
Thanks

Original comment by Johan12...@gmail.com on 20 Feb 2012 at 9:41

@GoogleCodeExporter
Copy link
Contributor Author

Original comment by devonca...@gmail.com on 25 Mar 2012 at 6:31

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Contributor Author

still facing the same error

Original comment by ashvn...@gmail.com on 18 Mar 2015 at 6:38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant