jmoalves / levain

Something to help you make your software grow
MIT License
8 stars 5 forks source link

Cliffy prompt throwing "os error 6" at Windows 7 #152

Closed jmoalves closed 1 year ago

jmoalves commented 1 year ago

Running at Windows 7, the Cliffy prompt throws an "os error 6".

Perhaps the following issues may help:

Although the Deno issue is closed, this is happening with Deno 1.23.2+

rafawalter commented 1 year ago

Bumping to Deno 1.26.0 and Cliffy 0.25.1, issue evolved to Uncaught TypeError: Deno.setRaw is not a function

Related to

API changes in Deno 1.26 break Cliffy (0.25.1 and previous)

A fix in Cliffy should resolve this

rafawalter commented 1 year ago

Cliffy 0.25.2 fixed the error above. Works with:

Back to "os error 6" described in this issue. Breaks on:


    const nread: number | null = await Deno.stdin.read(buffer);
                                 ^
    at async read (deno:runtime/js/12_io.js:105:19)
    at async Input.#readChar (https://deno.land/x/cliffy@v0.25.2/prompt/_generic_prompt.ts:304:34)
    at async Input.#readKey```
jmoalves commented 1 year ago

Abandoning Win 7