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-10948] Sourcekitd returns an error response making a SemanticRefactoring request #53339

Open
ChristopherRogers opened this issue Jun 17, 2019 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software found by stress tester Flag: An issue found by the SourceKit stress tester

Comments

@ChristopherRogers
Copy link
Contributor

Previous ID SR-10948
Radar None
Original Reporter @ChristopherRogers
Type Bug

Attachment: Download

Environment

swift-DEVELOPMENT-SNAPSHOT-2019-06-06-a or swift-5.1-DEVELOPMENT-SNAPSHOT-2019-06-15-a
Xcode 11 beta 1 (11M336w)

sk-stress-test --rewrite-mode=concurrent /path/to/Array.swift swiftc -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk -target x86_64-apple-ios10.0-simulator /path/to/Array.swift

Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels Bug, CompilerCrash, FoundByStressTester
Assignee None
Priority Medium

md5: 1fae383569c476350e3b026ad42dd447

Issue Description:

This may be a dupe of SR-9877 but I believe I've significantly reduced the test case for this.

Failure detected: SourceKit returned an error response
  request: SemanticRefactoring (Local Rename) in <redacted>/Array.swift (modified: concurrent) at offset 117 with args: -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk -target x86_64-apple-ios10.0-simulator <redacted>/Array.swift
  response: error response (Request Failed): <unknown>:0: error: value decl ''Element'' has no declaration location
-- begin file content --------
extension Array where Element == Int {
    public func foo() {extension Array {
    public mutating func bar(_ c: (<refactor-offset>Element
-- end file content ----------
@belkadan
Copy link
Contributor

cc @nkcsgexi

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added crash Bug: A crash, i.e., an abnormal termination of software compiler The Swift compiler in itself labels Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software found by stress tester Flag: An issue found by the SourceKit stress tester
Projects
None yet
Development

No branches or pull requests

3 participants