Skip to content

[repl] Errors use bad code format #210

@Brayan-724

Description

@Brayan-724

Using ezno from npm with deno.

image

❯ nix run nixpkgs#deno -- run -A npm:ezno repl
Entering REPL. Exit with `close()`
> // Unused code
> const x: 5 = 4 + 2;
error: 
  ┌─ CLI.tsx:1:14
  │
1 │ // Unused codeconst x: 5 = 4 + 2;
  │          -   ^^^^^ Type 6 is not assignable to type 5
  │          │    
  │          Variable declared with type 5

It appears to don't save new lines properly, exploring a few I found that repl source code append happens here and I think it could be fixed easy

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdiagnosticsrelated to outputting code errors

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions