Skip to content

Commit e4a14c1

Browse files
authored
fix: bump version of 'annotate-snippets' to 0.9.2 to fix a bug (#838)
Signed-off-by: zongz <[email protected]>
1 parent 60b97c3 commit e4a14c1

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

kclvm/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kclvm/error/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ kclvm-runtime = {path = "../runtime"}
1616
anyhow = "1.0"
1717
tracing = "0.1"
1818
atty = "0.2"
19-
annotate-snippets = { version = "0.9.0", default-features = false, features = ["color"] }
19+
annotate-snippets = { version = "0.9.2", default-features = false, features = ["color"] }
2020
termize = "0.1.1"
2121
indexmap = "1.0"

test/grammar/syntax/underline/main.k

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a = __b
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import sys
2+
import kclvm.kcl.error as kcl_error
3+
import os
4+
5+
cwd = os.path.dirname(os.path.realpath(__file__))
6+
7+
kcl_error.print_kcl_error_message(
8+
kcl_error.get_exception(err_type=kcl_error.ErrType.CompileError_TYPE,
9+
file_msgs=[
10+
kcl_error.ErrFileMsg(
11+
filename=cwd + "/main.k",
12+
line_no=1,
13+
col_no=5,
14+
)
15+
],
16+
arg_msg="name '__b' is not defined",
17+
file=sys.stdout
18+
)

0 commit comments

Comments
 (0)