help wanted
Metriche repository
- Star
- (21.417 star)
- Metriche merge PR
- (Merge medio 8g 6h) (59 PR mergiate in 30 g)
Descrizione
Similar to #5557.
Assume following code:
@external
pub fn wibble()
The build tool gives this vague message:
error: Syntax error
┌─ C:\Users\user\projects\test_gleam\src\test_gleam.gleam:2:1
│
2 │ pub fn wibble()
│ ^^^ I was not expecting this
Found the keyword `pub`, expected one of:
- `(`
It could be improved like:
error: Syntax error
┌─ C:\Users\user\projects\test_gleam\src\test_gleam.gleam:1:1
│
1 │ @external
│ ^^^^^^^^^ This attribute is incomplete
Found the keyword `pub`, expected one of:
- `(`
Hint: See https://tour.gleam.run/advanced-features/externals/