iwatachan
iwatachan

Reputation: 329

`swift build` aborted with "Assertion `isInProgress()' failed."

Run swift build gives me these error.

swift-build: /home/build-user/llbuild/lib/Core/BuildEngine.cpp:250: (anonymous namespace)::BuildEngineImpl::TaskInfo *(anonymous namespace)::BuildEngineImpl::RuleInfo::getPendingTaskInfo(): Assertion `isInProgress()' failed.
Aborted (core dumped)

What I tried

***   708  0.0  0.1 498876 25472 tty2     Sl   13:21   0:00 /home/***/Swift/swift-5.2.4-RELEASE-ubuntu20.04/usr/bin/lldb --repl=-disable-objc-interop -color-diagnostics
***   713  0.0  0.0 146108  7620 tty2     S    13:21   0:00 /home/***/Swift/swift-5.2.4-RELEASE-ubuntu20.04/usr/bin/lldb-server gdbserver --fd=9 --native-regs --setsid
***   720  0.0  0.0   8404   176 tty2     t    13:21   0:00 /home/***/Swift/swift-5.2.4-RELEASE-ubuntu20.04/usr/bin/repl_swift

Enviroment

Upvotes: 1

Views: 118

Answers (1)

iwatachan
iwatachan

Reputation: 329

I cleaned project .build directory, then build works fine.

.build directory may be broken by VSCode Swift Development Enviroment Extension.

Perhaps it seems that sqlite related error is caused by running swift build from Electron in Swift Development Enviroment Extension.

As a temporary solution, I solved it by emptying "Swift ›Path: Swift_driver_bin" in VS Code settings so that swift build is not executed.

Upvotes: 0

Related Questions