objecthub / swift-lispkit

Interpreter framework for Lisp-based extension and scripting languages on macOS and iOS. LispKit is based on the R7RS standard for Scheme. Its compiler generates bytecode for a virtual machine. LispKit is fully implemented in Swift 5.
https://lisppad.app
Apache License 2.0
392 stars 16 forks source link

bug report #18

Closed bflagg closed 2 years ago

bflagg commented 2 years ago

https://github.com/objecthub/swift-lispkit/blob/f2d5a8ac8d606da108d938c4f1d68b4687bd0d28/Sources/LispKit/IO/TextOutput.swift#L152

Calling flush() here seems to cause a double lock() error.

Recommend call flushBuffer() instead.

objecthub commented 2 years ago

Thanks a lot for catching this bug, Brian! Have submitted your proposed fix.

objecthub commented 2 years ago

The new releases of LispPad and LispPad Go have this bug fix included. Thanks for finding this issue!