sbt / sbt/sbt-eclipse

relativizeLibs is ignored?

Open
#264 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
712
Forks
163
PR merge metrics
No merged PRs in 30d

Description

How is one supposed to use relativizeLibs? It won't work as an additional argument to eclipse:

> eclipse relativizeLibs=false
[error] Expected whitespace character
[error] Expected 'execution-environment'
[error] Expected 'skip-parents'
[error] Expected 'with-source'
[error] Expected 'with-javadoc'
[error] Expected 'with-bundled-scala-containers'
[error] eclipse relativizeLibs=false
[error]         ^

If I set it explicitly, it is ignored too:

> set EclipseKeys.relativizeLibs := false
[info] Defining spark/*:eclipseRelativizeLibs
[info] The new value will be used by no settings or tasks.
[info] Reapplying settings...
[info] Set current project to spark-parent (in build file:/Volumes/Thunderbolt_SSD/dragos/workspace/Spark/dev/spark/)

(I checked the contents of .classpath)

However, if I first change the project, it is taken into account (for that project):

> project core
[info] Set current project to spark-core (in build file:/Volumes/Thunderbolt_SSD/dragos/workspace/Spark/dev/spark/)
> set EclipseKeys.relativizeLibs := false
[info] Defining core/*:eclipseRelativizeLibs
[info] The new value will be used by no settings or tasks.
[info] Reapplying settings...
[info] Set current project to spark-core (in build file:/Volumes/Thunderbolt_SSD/dragos/workspace/Spark/dev/spark/)
> eclipse with-source=true

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported commands with the eclipse task, relativizeLibs=false, and EclipseKeys.relativizeLibs := false, then inspect how the current project and spark/* settings are selected. Done means the setting is accepted in the intended context and changes the generated .classpath as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.