From ae87b61c241ac1f02720bcbffe92ae23643d0af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 25 Sep 2024 07:40:06 +0200 Subject: [PATCH 01/11] build update --- version/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/build b/version/build index 558ee891b6..2bf9753eb6 100644 --- a/version/build +++ b/version/build @@ -1 +1 @@ -3231 \ No newline at end of file +3232 \ No newline at end of file From 8294ccf0ecde10c9fd289469f199a41eabc706c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 25 Sep 2024 10:56:20 +0200 Subject: [PATCH 02/11] build update --- version/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/build b/version/build index 2bf9753eb6..952a6a09fa 100644 --- a/version/build +++ b/version/build @@ -1 +1 @@ -3232 \ No newline at end of file +3233 \ No newline at end of file From 1998af67fcec0e4c28b5004ee52d38c78ab00753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 25 Sep 2024 11:01:32 +0200 Subject: [PATCH 03/11] build update --- version/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/build b/version/build index 952a6a09fa..b3c90425cc 100644 --- a/version/build +++ b/version/build @@ -1 +1 @@ -3233 \ No newline at end of file +3234 \ No newline at end of file From a25d8512e5f57ae49c74526121a80572bfe574aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:18:16 +0200 Subject: [PATCH 04/11] build update --- version/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/build b/version/build index b3c90425cc..618600f5db 100644 --- a/version/build +++ b/version/build @@ -1 +1 @@ -3234 \ No newline at end of file +3235 \ No newline at end of file From 7ce9fb6c7faebefe02c8b1fbaaf49ed058e4a4d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:22:45 +0200 Subject: [PATCH 05/11] build update --- version/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/build b/version/build index 618600f5db..fb145dc211 100644 --- a/version/build +++ b/version/build @@ -1 +1 @@ -3235 \ No newline at end of file +3236 \ No newline at end of file From 872290fb6b70875396b186d4bf5c391618a7d260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:27:38 +0200 Subject: [PATCH 06/11] build update --- version/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/build b/version/build index fb145dc211..9a7a4fbb96 100644 --- a/version/build +++ b/version/build @@ -1 +1 @@ -3236 \ No newline at end of file +3237 \ No newline at end of file From 9e97b391858f817e8b24e3b084516abe122d7bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:33:14 +0200 Subject: [PATCH 07/11] build update --- version/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/build b/version/build index 9a7a4fbb96..9560ba8228 100644 --- a/version/build +++ b/version/build @@ -1 +1 @@ -3237 \ No newline at end of file +3238 \ No newline at end of file From 5eef5251ebe2b911b5ca38ea05b98028f91e33d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:35:01 +0200 Subject: [PATCH 08/11] build update --- version/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/build b/version/build index 9560ba8228..239f1b099b 100644 --- a/version/build +++ b/version/build @@ -1 +1 @@ -3238 \ No newline at end of file +3239 \ No newline at end of file From 3822f7801cef1fc34802686bb0571928c3e7307f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 25 Sep 2024 18:12:09 +0200 Subject: [PATCH 09/11] build update --- version/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/build b/version/build index 239f1b099b..80b145e3fc 100644 --- a/version/build +++ b/version/build @@ -1 +1 @@ -3239 \ No newline at end of file +3240 \ No newline at end of file From 678600cd2d08258033b666c771e982681a44be59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Wed, 25 Sep 2024 18:16:28 +0200 Subject: [PATCH 10/11] VM/errors: add basic support for warnings --- src/vm/errors.nim | 54 ++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 44 insertions(+), 10 deletions(-) diff --git a/src/vm/errors.nim b/src/vm/errors.nim index 7064755719..dc3302e6fd 100644 --- a/src/vm/errors.nim +++ b/src/vm/errors.nim @@ -87,6 +87,7 @@ var ExecStack* : seq[int] = @[] IsRepl* : bool = false + ShowWarnings* : bool = true #======================================= # Helpers @@ -94,11 +95,14 @@ var # Check environment -proc getCurrentContext(e: VError): string = - if e.kind == CmdlineErr: return "" +proc getGenericContext(): string = if IsRepl: return " " return "