File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## Unreleased
4
+
5
+ ### Compiler
6
+
7
+ - The compiler now suggest public variables and functions from imported modules
8
+ when the variable in unknown. These variables and functions are suggested
9
+ based on name and arity.
10
+
11
+ Considering this program:
12
+ ``` gleam
13
+ import gleam/io
14
+
15
+ pub fn main() -> Nil {
16
+ println("Hello, World!")
17
+ }
18
+ ```
19
+
20
+ The compiler will display this error message:
21
+ ``` text
22
+ error: Unknown variable
23
+ ┌─ /path/to/project/src/project.gleam:4:3
24
+ │
25
+ 4 │ println("Hello, World!")
26
+ │ ^^^^^^^
27
+
28
+ The name `println` is not in scope here.
29
+ Consider using one of these variables:
30
+
31
+ io.println
32
+ ```
33
+
34
+ ([ raphrous] ( https://github.com/realraphrous ) )
35
+
3
36
## v1.12.0-rc2 - 2025-07-24
4
37
5
38
### Formatter
You can’t perform that action at this time.
0 commit comments