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

Bug: LSP crashes when calling XCTAssertTrue before completion #17

Closed
alicerunsonfedora opened this issue Nov 25, 2023 · 1 comment
Closed

Comments

@alicerunsonfedora
Copy link

I noticed that, when writing unit tests using XCTest, the LSP will crash whenever I call XCTAssertTrue before I finish writing the condition:

final class MyTestCase: XCTestCase {
    func testExample() throws {
        XCTAssertTrue(|) // | is my cursor
    }
}

A workaround I've found was writing the condition first and wrapping it in parens, then add XCTAssertTrue before the wrapped expression.

@logancollins
Copy link
Member

Unfortunately, a crash in SourceKit-LSP is outside of Icarus' domain. You may wish to file an issue with the SourceKit-LSP project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants