Skip to content

Add line number in code editor #68

@ad-ops

Description

@ad-ops

For longer examples or when user pastes their own code and get and error or warning it would be helpful to be able to use the line number provided by the compiler.

For example from the first example on https://tour.gleam.run/basics/hello-world/:

import gleam/io

pub fn main() {
  io.println(4)
}
error: Type mismatch
  ┌─ /src/main.gleam:4:14
  │
4 │   io.println(4)
  │              ^

Expected type:

    String

Found type:

    Int

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions