Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CLI | Windows | Creating initial user fails with TTY error #454

Closed
Labels
apiArea: HTTP API
Milestone
@bryphe-coder

Description

@bryphe-coder

Overview

On Windows, if I try to run thecoder login command flow to create an initial user, the command fails with:Error: the initial user cannot be created in non-interactive mode

See@vapurrmaid 's screenshot:

image

The bug is that we rely on a helper library -isatty to decide if we can handle input. Theisatty function has anopen issue for detecting Windows terminals

Atemporary workaround is to use the--force-tty flag for the CLI. This overrides the check, and tells the binary to assume it is used in a tty. We implemented this to ensure the tests pass reliably on automation, and we assumed that this bug only occurred in automated tests - but it seems like that assumption was invalid.

It looks like in@vapurrmaid 's case - a MINGW console is used. We should evaluate theisatty behavior on a few different consoles in Windows (because there are a lot of cases...):

  • Raw win32 console (cmd.exe)
  • Powershell (powershell.exe)
  • MINGW Bash
  • Cygwin Bash

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiArea: HTTP API

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp