swiftlang / swiftlang/swift-java

Java2Swift: Tools version prior to 6.0 breaks Java2Swift in difficult to diagnose ways

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

Nobody has claimed this yet.

Dominant language
Swift
Stars
1.2k
Forks
123
Avg merge
1d 7h
Merged PRs (30d)
16

Description

It appears that if Package.swift does not have swift-tools-version:6.0, pluginGeneratedResources are not propagated from JavaCompilerPlugin to Java2Swift.

Save identifying the underlying issue, the plugin should error if a pre-6.0 tools version is found. Or at least a note in the README.

More info: https://forums.swift.org/t/diagnosing-java2swift-issues/75743/8

Contributor guide

Open the contributing guide

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

Start with Package.swift and JavaCompilerPlugin, then read the linked Swift Forums discussion about pluginGeneratedResources not reaching Java2Swift when swift-tools-version is below 6.0. Confirm the failure behavior across tools versions; done means either the plugin reports the unsupported version or the README clearly documents the requirement.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.