Closed alicerunsonfedora closed 4 months ago
I noticed that, when writing unit tests using XCTest, the LSP will crash whenever I call XCTAssertTrue before I finish writing the condition:
XCTAssertTrue
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.
Unfortunately, a crash in SourceKit-LSP is outside of Icarus' domain. You may wish to file an issue with the SourceKit-LSP project.
I noticed that, when writing unit tests using XCTest, the LSP will crash whenever I call
XCTAssertTrue
before I finish writing the condition:A workaround I've found was writing the condition first and wrapping it in parens, then add
XCTAssertTrue
before the wrapped expression.