Skip to content

.type command in REPL on windows causes subsequent inputs to fail #1126

Description

@thron7

Expected Behavior

$ npx ts-node
> let a = 3
undefined
> 3 + 4
7
> .type a
let a: number
> 3 + 4
7

Actual Behavior

$ npx ts-node
> let a = 3
undefined
> 3 + 4
7
> .type a
let a: number
> 3 + 4
3

Steps to reproduce the problem

  • start the REPL
  • define a symbol
  • .type the symbol
  • do a simple operation like 3 + 4

Minimal reproduction

TypeStrong/ts-node-repros#5

Specifications

  • ts-node version: v9.0.0
  • node version: v12.18.3
  • TypeScript version: v4.0.3
  • tsconfig.json, if you're using one:
{}
  • Operating system and version: Windows 10 v1607
  • If Windows, are you using WSL or WSL2?: neither

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions