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

[SR-7180] Using JSONDecoder's keyDecodingStrategy doesn't compile on linux #4041

swift-ci opened this issue Mar 13, 2018 · 4 comments


Copy link

@swift-ci swift-ci commented Mar 13, 2018

Previous ID SR-7180
Radar None
Original Reporter andrewangeta (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download


In a docker container from the following docker hub repo

FROM norionomura/swift:swift-4.1-branch

Additional Detail from JIRA
Votes 4
Component/s Foundation
Labels Bug, Codable, JSON
Assignee None
Priority Medium

md5: ed90165b3a6335f4b820901d93c28568

Issue Description:

As the title describes when using the new api on macOS it's fine but once you try to compile on Linux here comes the swift compiler
error: value of type 'JSONDecoder' has no member 'keyDecodingStrategy'

it then proceeds to ask me if I meant either date or data DecodingStrategy

Copy link

@itaiferber itaiferber commented Mar 14, 2018

This is because we haven't yet ported the changes to Linux AFAIK. cc. @parkera @millenomi

Copy link
Contributor Author

@swift-ci swift-ci commented Mar 17, 2018

Comment by Andrew Edwards (JIRA)

Any idea whether this will be ported for 4.1 release? @itaiferber

Copy link

@itaiferber itaiferber commented Mar 19, 2018

@parkera has a PR up for this which has been blocked for a long time on some bridging issues: #1347

I'm not sure whether this will make it for Swift 4.1 or not.

Copy link
Contributor Author

@swift-ci swift-ci commented Mar 3, 2019

Comment by Andrew Edwards (JIRA)

Resolved with this PR #1892
and included in Swift 4.2.3

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants