Doesn't compile on Windows
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- Half a day
- Newbie friendliness
- 62/100
Research direction
The failing lookup is the #if canImport block that imports stderr near line 584 of Plugins/PackageToJS/Sources/PackageToJSPlugin.swift, which has no Windows branch. Start there and find which module exposes stderr on Windows (the issue suggests WinSDK). Add a matching branch and confirm the plugin builds on Windows. Done when the package compiles on Windows without the stderr error.
Written by the indexing model from the issue text.
Description
An error for this line:
... about stderr not being defined. Which it isn't it seems.
#if canImport(Darwin)
@preconcurrency import var Darwin.stderr
#elseif canImport(Glibc)
@preconcurrency import var Glibc.stderr
#elseif canImport(Musl)
@preconcurrency import var Musl.stderr
#elseif canImport(Android)
@preconcurrency import var Android.stderr
#endif
Though PackageToJS.swift does mention Windows. So it seems it should be supported:
import WinSDK
- Dominant language
- Swift
- Stars
- 987
- Forks
- 77
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from swiftwasm/JavaScriptKit
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
swiftwasm/JavaScriptKit#793 ·
-
BridgeJS: Same-named `@JS` types across modules collide silently in generated glueMay be free again @krodak claimed this 100 days ago, and no pull request is open. Open
swiftwasm/JavaScriptKit#785 · 1 assignee ·
-
[SwiftBuild] Preserve duplicate archive members when SwiftBuild expands static archives for linkingOpen
Difficulty 4/5 3-5 days Newbie friendliness 48/100
swiftwasm/JavaScriptKit#781 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
swiftwasm/JavaScriptKit#773 ·
-
BridgeJS: Remove JSException storage boxing once swiftlang/swift#89715 landsMay be free again @krodak claimed this 125 days ago, and no pull request is open. Open
swiftwasm/JavaScriptKit#767 · 1 assignee ·
All issues in swiftwasm/JavaScriptKit
Similar issues
-
builtin-port enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
cmlarsen/writemorebetter#235 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
callstack/agent-device#3627 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
maziyarpanahi/openmed#4207 · 1 comment ·
Maintainers usually reply within 3 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
meshtastic/Meshtastic-Apple#2603 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day