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

Unable to build on Idea/133.193 on osx 10.9 #306

Closed
akuseru opened this issue Dec 6, 2013 · 6 comments
Closed

Unable to build on Idea/133.193 on osx 10.9 #306

akuseru opened this issue Dec 6, 2013 · 6 comments

Comments

@akuseru
Copy link

akuseru commented Dec 6, 2013

I am on OSX 10.9

I built the idea/133.193 branch from the github repo located at: https://github.com/JetBrains/intellij-community

just with cd idea && ant

when attempting to build against this i get the following issues:

ANT_OPTS=-Xmx1g ant -Didea.community.build=/Users/Akuseru/git/temp/idea -f build-package.xml
Buildfile: /Users/Akuseru/git/temp/google-go-lang-idea-plugin/build-package.xml

clean:
   [delete] Deleting directory /Users/Akuseru/git/temp/google-go-lang-idea-plugin/build
   [delete] Deleting: /Users/Akuseru/git/temp/google-go-lang-idea-plugin/dist/ro.redeul.google.go.jar

init:
    [mkdir] Created dir: /Users/Akuseru/git/temp/google-go-lang-idea-plugin/build
     [echo] Using IDEA build from: /Users/Akuseru/git/temp/idea

compile:
   [javac2] Compiling 563 source files to /Users/Akuseru/git/temp/google-go-lang-idea-plugin/build
   [javac2] error: error reading /Users/Akuseru/git/temp/idea/jps/jps-builders/testData/output/moduleClasspath/main/lib/service.jar; zip file is empty
   [javac2] error: error reading /Users/Akuseru/git/temp/idea/jps/jps-builders/testData/output/moduleClasspath/test-util/lib/provided.jar; zip file is empty
   [javac2] error: error reading /Users/Akuseru/git/temp/idea/jps/jps-builders/testData/output/moduleClasspath/test-util/lib/runtime.jar; zip file is empty
   [javac2] error: error reading /Users/Akuseru/git/temp/idea/jps/jps-builders/testData/output/moduleClasspath/test-util/lib/test.jar; zip file is empty
   [javac2] error: error reading /Users/Akuseru/git/temp/idea/jps/jps-builders/testData/output/moduleClasspath/util/lib/exported.jar; zip file is empty
   [javac2] warning: Supported source version 'RELEASE_5' from annotation processor 'org.sonatype.guice.bean.scanners.index.QualifiedIndexAPT6' less than -source '1.7'
   [javac2] 1 warning
   [javac2] /Users/Akuseru/git/temp/google-go-lang-idea-plugin/src/ro/redeul/google/go/config/ui/GoAppEngineSdkConfigurable.form: Class to bind does not exist: ro.redeul.google.go.config.ui.GoAppEngineSdkConfigurable
   [javac2] /Users/Akuseru/git/temp/google-go-lang-idea-plugin/src/ro/redeul/google/go/config/ui/GoFacetTab.form: Class to bind does not exist: ro.redeul.google.go.config.ui.GoFacetTab
   [javac2] /Users/Akuseru/git/temp/google-go-lang-idea-plugin/src/ro/redeul/google/go/config/ui/GoFrameworkSuportEditor.form: Class to bind does not exist: ro.redeul.google.go.config.ui.GoFrameworkSuportEditor
   [javac2] /Users/Akuseru/git/temp/google-go-lang-idea-plugin/src/ro/redeul/google/go/config/ui/GoSdkConfigurable.form: Class to bind does not exist: ro.redeul.google.go.config.ui.GoSdkConfigurable
   [javac2] /Users/Akuseru/git/temp/google-go-lang-idea-plugin/src/ro/redeul/google/go/ide/GoAppEngineProjectSettingsConfigurableForm.form: Class to bind does not exist: ro.redeul.google.go.ide.GoAppEngineProjectSettingsConfigurableForm
   [javac2] /Users/Akuseru/git/temp/google-go-lang-idea-plugin/src/ro/redeul/google/go/ide/GoConfigurableForm.form: Class to bind does not exist: ro.redeul.google.go.ide.GoConfigurableForm
   [javac2] /Users/Akuseru/git/temp/google-go-lang-idea-plugin/src/ro/redeul/google/go/ide/GoModuleWizardStep.form: Class to bind does not exist: ro.redeul.google.go.ide.GoModuleWizardStep
   [javac2] /Users/Akuseru/git/temp/google-go-lang-idea-plugin/src/ro/redeul/google/go/imports/GoAutoImportOptionsProvider.form: Class to bind does not exist: ro.redeul.google.go.imports.GoAutoImportOptionsProvider
   [javac2] /Users/Akuseru/git/temp/google-go-lang-idea-plugin/src/ro/redeul/google/go/runner/ui/GoAppEngineRunConfigurationEditorForm.form: Class to bind does not exist: ro.redeul.google.go.runner.ui.GoAppEngineRunConfigurationEditorForm
   [javac2] /Users/Akuseru/git/temp/google-go-lang-idea-plugin/src/ro/redeul/google/go/runner/ui/GoRunConfigurationEditorForm.form: Class to bind does not exist: ro.redeul.google.go.runner.ui.GoRunConfigurationEditorForm
   [javac2] /Users/Akuseru/git/temp/google-go-lang-idea-plugin/src/ro/redeul/google/go/runner/ui/GoTestConfigurationEditorForm.form: Class to bind does not exist: ro.redeul.google.go.runner.ui.GoTestConfigurationEditorForm
   [javac2] /Users/Akuseru/git/temp/google-go-lang-idea-plugin/src/ro/redeul/google/go/tools/dialogs/AddGoSdkDialogForm.form: Class to bind does not exist: ro.redeul.google.go.tools.dialogs.AddGoSdkDialogForm
   [javac2] Added @NotNull assertions to 0 files

package:
      [jar] Building jar: /Users/Akuseru/git/temp/google-go-lang-idea-plugin/dist/ro.redeul.google.go.jar

BUILD SUCCESSFUL
Total time: 30 seconds

@dlsniper
Copy link
Member

dlsniper commented Dec 6, 2013

Hey, try to look into this tutorial: #248 (comment)
I believe that you are missing the part to point the correct IDEA dir.
Let us know if this helps you.

Thanks.

@akuseru
Copy link
Author

akuseru commented Dec 6, 2013

so i updated my JDK, and manually set the idea folder directory in build-package.xml. I rebuilt intellij and attempted to build package.xml file again with the same results.

I was originally following instructions from http://webapp.org.ua/dev/intellij-idea-and-go-plugin/ the only change is that I am using the github repo instead of the official one as I couldn't seem to download off that git.

@dlsniper
Copy link
Member

dlsniper commented Dec 6, 2013

Ok, I've just built it with a friend on his laptop with Mac OS X 10.8.4.
The procedure we've followed:

  • download & install IDEA 13 Community
  • open IDEA and use the built it: 'New project to Version Control'
  • get the path of your fork (or this repository) and execute it
  • when in IDEA, go to 'preferences' (or how it's called) to add an IDEA JDK
  • you are prompted first to add the JDK, do so
  • now add IDEA JDK by pointing IDEA to itself
  • profit.

@dlsniper
Copy link
Member

dlsniper commented Dec 6, 2013

As for the error itself, I think you can't build IDEA itself which is a problem you should fix with JetBrains. I think you don't have all the packages required to do so, please check their README.

Thanks.

@mtoader
Copy link
Member

mtoader commented Dec 6, 2013

Just as a FYI: When i build Intellij Community i always use a tagged version that matches a released one (git checkout idea/193.xxx) . That way i know for sure that it's supposed to build correctly.

@akuseru
Copy link
Author

akuseru commented Dec 6, 2013

ok, so i was able to get it to build using the downloaded distribution method recommended by @dlsniper.

Yes, even though ant was reporting BUILD SUCCESSFUL it wasn't actually built successfully, and with so much information in the log it's difficult to go back through and find the problem.

Thanks for the help

@akuseru akuseru closed this as completed Dec 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants