Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Merge requests
  • !1042

Prevent an exception when generating intellij projects

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/justinmuller/intellij_project_absolute_path into master Dec 09, 2016
  • Overview 10
  • Commits 1
  • Pipelines 0
  • Changes 4

Created by: justinmuller

This exception was observed on an android_library target that did not have a manifest set, thus, the manifest fell back to our .buckconfig[intellij].default_android_manifest_path which was a relative path. This fix ensures that the default android manifest path is an absolute path to avoid this exception.

java.lang.IllegalArgumentException: 'other' is different type of Path
	at sun.nio.fs.UnixPath.relativize(UnixPath.java:416)
	at sun.nio.fs.UnixPath.relativize(UnixPath.java:43)
	at com.facebook.buck.jvm.java.intellij.IjProjectTemplateDataPreparer.addAndroidManifestPath(IjProjectTemplateDataPreparer.java:458)
	at com.facebook.buck.jvm.java.intellij.IjProjectTemplateDataPreparer.getAndroidProperties(IjProjectTemplateDataPreparer.java:389)
	at com.facebook.buck.jvm.java.intellij.IjProjectWriter.writeModule(IjProjectWriter.java:121)
	at com.facebook.buck.jvm.java.intellij.IjProjectWriter.write(IjProjectWriter.java:87)
	at com.facebook.buck.jvm.java.intellij.IjProject.write(IjProject.java:219)
	at com.facebook.buck.cli.ProjectCommand.writeProjectAndGetRequiredBuildTargets(ProjectCommand.java:646)
	at com.facebook.buck.cli.ProjectCommand.runIntellijProjectGenerator(ProjectCommand.java:600)
	at com.facebook.buck.cli.ProjectCommand.runIntellijProjectGenerator(ProjectCommand.java:785)
	at com.facebook.buck.cli.ProjectCommand.runWithoutHelp(ProjectCommand.java:507)
	at com.facebook.buck.cli.AbstractCommand.run(AbstractCommand.java:198)
	at com.facebook.buck.cli.BuckCommand.run(BuckCommand.java:91)
	at com.facebook.buck.cli.Main.runMainWithExitCode(Main.java:1257)
	at com.facebook.buck.cli.Main.runMainThenExit(Main.java:700)
	at com.facebook.buck.cli.Main.nailMain(Main.java:1937)
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/justinmuller/intellij_project_absolute_path