Bram Moolenaar
460ae5dfca
patch 8.2.3967: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 14:19:49 +00:00
Bram Moolenaar
436b5adc97
patch 8.2.3961: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 22:49:24 +00:00
Bram Moolenaar
8dac2acd6a
patch 8.2.3916: no error for passing an invalid line number to append()
...
Problem: No error for passing an invalid line number to append().
Solution: In Vim9 script check for a non-negative number. (closes #9417 )
2021-12-27 20:57:06 +00:00
Bram Moolenaar
f47c5a8e2d
patch 8.2.3852: Vim9: not enough tests
...
Problem: Vim9: not enough tests.
Solution: Also run existing tests for Vim9 script. Make errors more
consistent.
2021-12-19 15:17:21 +00:00
Bram Moolenaar
2de5371a75
patch 8.2.3850: illegal memory access when displaying a partial
...
Problem: Illegal memory access when displaying a partial.
Solution: Terminate the string with a NUL. (closes #9371 )
2021-12-19 11:06:35 +00:00
Bram Moolenaar
605ec91e5a
patch 8.2.3847: illegal memory access when using a lambda with an error
...
Problem: Illegal memory access when using a lambda with an error.
Solution: Avoid skipping over the NUL after a string.
2021-12-18 16:54:31 +00:00
Bram Moolenaar
02929a372e
patch 8.2.3836: Vim9: comment after expression not skipped to find NL
...
Problem: Vim9: comment after expression not skipped to find NL.
Solution: After evaluating an expression look for a newline after a #
comment.
2021-12-17 14:46:12 +00:00
Bram Moolenaar
e124204c4f
patch 8.2.3830: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2021-12-16 20:56:57 +00:00
Bram Moolenaar
ce7eada12e
patch 8.2.3815: Vim9: cannot have a multi-line dict inside a block
...
Problem: Vim9: cannot have a multi-line dict inside a block.
Solution: Do not split the command at a line break, handle NL characters
as white space.
2021-12-15 15:41:44 +00:00
Bram Moolenaar
b334137acf
patch 8.2.3810: Vim9: expr4 test fails on MS-Windows
...
Problem: Vim9: expr4 test fails on MS-Windows.
Solution: Do not give an error for a missing function name when skipping.
2021-12-14 18:57:45 +00:00
Bram Moolenaar
7509ad8b0f
patch 8.2.3809: Vim9: crash when garbage collecting a nested partial
...
Problem: Vim9: crash when garbage collecting a nested partial. (Virginia
Senioria)
Solution: Set references in all the funcstacks. (closes #9348 )
2021-12-14 18:14:37 +00:00
Bram Moolenaar
f8a79fc346
patch 8.2.3807: Vim9: can call import with star directly
...
Problem: Vim9: can call import with star directly.
Solution: Check that the import used star.
2021-12-14 12:06:16 +00:00
Bram Moolenaar
851f86b951
patch 8.2.3796: the funcexe_T struct members are not named consistently
...
Problem: The funcexe_T struct members are not named consistently.
Solution: Prefix "fe_" to all the members.
2021-12-13 14:26:44 +00:00
Yegappan Lakshmanan
6ae8fae869
patch 8.2.3788: lambda for option that is a function may be freed
...
Problem: Lambda for option that is a function may be garbage collected.
Solution: Set a reference in the funcref. (Yegappan Lakshmanan,
closes #9330 )
2021-12-12 16:26:44 +00:00
Bram Moolenaar
2ef9156b42
patch 8.2.3783: confusing error for using a variable as a function
...
Problem: Confusing error for using a variable as a function.
Solution: If a function is not found but there is a variable, give a more
useful error. (issue #9310 )
2021-12-11 16:14:07 +00:00
Bram Moolenaar
e8a92b6166
patch 8.2.3767: crash when using NULL partial
...
Problem: Crash when using NULL partial.
Solution: Check for NULL.
2021-12-09 17:44:01 +00:00
Bram Moolenaar
c4ec338fb8
patch 8.2.3766: converting a funcref to a string leaves out "g:"
...
Problem: Converting a funcref to a string leaves out "g:", causing the
meaning of the name depending on the context.
Solution: Prepend "g:" for a global function.
2021-12-09 16:40:18 +00:00
Yegappan Lakshmanan
6409553b6e
patch 8.2.3751: cannot assign a lambda to an option that takes a function
...
Problem: Cannot assign a lambda to an option that takes a function.
Solution: Automatically convert the lambda to a string. (Yegappan
Lakshmanan, closes #9286 )
2021-12-06 11:03:55 +00:00
Bram Moolenaar
5c1ec439f0
patch 8.2.3695: confusing error for missing key
...
Problem: Confusing error for missing key.
Solution: Use the actualy key for the error. (closes #9241 )
2021-11-29 13:44:55 +00:00
Bram Moolenaar
3b3755fe19
patch 8.2.3650: Vim9: for loop variable can be a list member
...
Problem: Vim9: for loop variable can be a list member.
Solution: Check for valid variable name. (closes #9179 )
2021-11-22 20:10:18 +00:00
Bram Moolenaar
844fb64a60
patch 8.2.3560: using freed memory with lambda
...
Problem: Using freed memory with lambda.
Solution: Do not free lines early, keep them until the expression is
finished.
2021-10-23 13:32:30 +01:00
Christian Brabandt
070ac3433b
patch 8.2.3418: garbage collection while evaluating may cause trouble
...
Problem: Garbage collection while evaluating may cause trouble.
Solution: Disable garbage collection while evaluating an expression.
(Christian Brabandt, issue #8848 )
2021-09-09 12:12:03 +02:00
Bram Moolenaar
60faf8656e
patch 8.2.3370: Vim9: no check for white space before type in declaration
...
Problem: Vim9: no check for white space before type in declaration.
(Naohiro Ono)
Solution: Check for white space like in a compiled function. (closes #8785 )
2021-08-23 22:22:45 +02:00
Bram Moolenaar
dd9de50f42
patch 8.2.3347: check for legacy script is incomplete
...
Problem: Check for legacy script is incomplete. (Naohiro Ono)
Solution: Also check the :legacy modifier. Use for string concatenation
with "." and others (issue #8756 )
2021-08-15 13:49:42 +02:00
Bram Moolenaar
2596a4e763
patch 8.2.3346: Vim9: no error for using "." for concatenation after ":vim9cmd"
...
Problem: Vim9: no error for using "." for concatenation after ":vim9cmd".
(Naohiro Ono)
Solution: Check for Vim9 script syntax. (closes #8756 )
2021-08-14 21:35:40 +02:00
Bram Moolenaar
78a9c2e670
patch 8.2.3340: accessing uninitialized pointer
...
Problem: Accessing uninitialized pointer.
Solution: Set pointer to NULL.
2021-08-13 20:12:13 +02:00
Bram Moolenaar
aacc966c5d
patch 8.2.3339: Vim9: cannot lock a member in a local dict
...
Problem: Vim9: cannot lock a member in a local dict.
Solution: Get the local dict from the stack and pass it to get_lval().
2021-08-13 19:40:51 +02:00
Bram Moolenaar
4f0884d6e2
patch 8.2.3332: Vim9: cannot assign to range in list
...
Problem: Vim9: cannot assign to range in list.
Solution: Implement overwriting a list range.
2021-08-11 21:49:23 +02:00
Bram Moolenaar
63b9173693
patch 8.2.3297: cannot use all commands inside a {} block
...
Problem: Cannot use all commands inside a {} block after :command and
:autocmd.
Solution: Do consider \n to separate commands. (closes #8620 )
2021-08-05 20:40:03 +02:00
Sean Dewar
80d7395dcf
patch 8.2.3284: no error for insert() or remove() changing a locked blob
...
Problem: No error for insert() or remove() changing a locked blob.
Solution: Check a blob is not locked before changing it. (Sean Dewar,
closes #8696 )
2021-08-04 19:25:54 +02:00
Bram Moolenaar
f24f51d030
patch 8.2.3264: Vim9: assign test fails
...
Problem: Vim9: assign test fails.
Solution: Add missing change.
2021-08-01 12:01:49 +02:00
Bram Moolenaar
60dc8274e9
patch 8.2.3249: Vim9: error for re-imported function with default argument
...
Problem: Vim9: error for re-imported function with default argument.
Solution: Do not check argument type if it is still unknown. (closes #8653 )
2021-07-29 22:48:54 +02:00
Yegappan Lakshmanan
4490ec4e83
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
...
Problem: Vim9: runtime and compile time type checks are not the same.
Solution: Add more runtime type checks for builtin functions. (Yegappan
Lakshmanan, closes #8646 )
2021-07-27 22:00:44 +02:00
Bram Moolenaar
678b207fb1
patch 8.2.3224: cannot call script-local function after :vim9cmd
...
Problem: Cannot call script-local function after :vim9cmd. (Christian J.
Robinson)
Solution: Skip over "<SNR>123".
2021-07-26 21:10:11 +02:00
Bram Moolenaar
2eb6fc3b52
patch 8.2.3216: Vim9: crash when using variable in a loop at script level
...
Problem: Vim9: crash when using variable in a loop at script level.
Solution: Do not clear the variable if a function was defined.
Do not create a new entry in sn_var_vals every time.
(closes #8628 )
2021-07-25 14:13:53 +02:00
Bram Moolenaar
2b59df00d8
patch 8.2.3201: crash in test
...
Problem: Crash in test.
Solution: Initialize "where".
2021-07-22 15:14:25 +02:00
Bram Moolenaar
7a3fe3e180
patch 8.2.3200: Vim9: hard to guess where a type error is given
...
Problem: Vim9: hard to guess where a type error is given.
Solution: Add the function name where possible. (closes #8608 )
2021-07-22 14:58:47 +02:00
Yegappan Lakshmanan
83494b4ac6
patch 8.2.3188: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks, also at runtime. (Yegappan
Lakshmanan, closes #8587 )
2021-07-20 17:51:51 +02:00
Bram Moolenaar
24e9316560
patch 8.2.3179: Vim9: cannot assign to an imported variable at script level
...
Problem: Vim9: cannot assign to an imported variable at script level.
Solution: Lookup imported items when assigning.
2021-07-18 20:40:33 +02:00
Bram Moolenaar
ad2d4969e1
patch 8.2.3177: Vim9: can not use "for _ in expr" at script level
...
Problem: Vim9: can not use "for _ in expr" at script level.
Solution: Skip assignment if the loop variable is "_".
2021-07-18 17:08:50 +02:00
Bram Moolenaar
c6ba2f9dde
patch 8.2.3175: Vim9: using illegal pointer with nested lambdas.
...
Problem: Vim9: using illegal pointer with inline function inside a lambda.
Solution: Clear eval_tofree_cmdline when advancing to the next line.
(closes #8578 )
2021-07-18 13:42:29 +02:00
Bram Moolenaar
c03fe66ade
patch 8.2.3146: Vim9: line number wrong for :execute argument
...
Problem: Vim9: line number wrong for :execute argument.
Solution: Use the line number of the :execute command itself. (closes #8537 )
2021-07-11 16:52:45 +02:00
Bram Moolenaar
0f1227f7d5
patch 8.2.3144: Vim9: no error when using an invalid value for a line number
...
Problem: Vim9: no error when using an invalid value for a line number.
Solution: Give an error if the string value is not recognized.
(closes #8536 )
2021-07-11 16:01:58 +02:00
Yegappan Lakshmanan
a2438132a6
patch 8.2.3139: functions for string manipulation are spread out
...
Problem: Functions for string manipulation are spread out.
Solution: Move string related functions to a new source file. (Yegappan
Lakshmanan, closes #8470 )
2021-07-10 21:29:18 +02:00
Bram Moolenaar
c967d57aa9
patch 8.2.3129: Vim9: imported uninitialized list does not get type checked
...
Problem: Vim9: imported uninitialized list does not get type checked.
Solution: Get type from imported variable.
2021-07-08 21:38:50 +02:00
Bram Moolenaar
f055d45023
patch 8.2.3128: Vim9: uninitialzed list does not get type checked
...
Problem: Vim9: uninitialzed list does not get type checked.
Solution: Set the type when initializing the variable. (closes #8529 )
2021-07-08 20:57:24 +02:00
Bram Moolenaar
442b29c968
patch 8.2.3113: no error when for loop variable shadows script variable
...
Problem: No error when for loop variable shadows script variable.
Solution: Check for the error. (closes #8512 )
2021-07-05 22:23:00 +02:00
Bram Moolenaar
404557e6a6
patch 8.2.3111: Vim9: confusing error with extra whitespace before colon
...
Problem: Vim9: confusing error with extra whitespace before colon.
Solution: Check for colon after white space. (closes #8513 )
2021-07-05 21:41:48 +02:00
Bram Moolenaar
108010aa47
patch 8.2.3069: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move some error messages to errors.h. Use clearer names.
2021-06-27 22:03:33 +02:00
Bram Moolenaar
e65081d1b5
patch 8.2.3064: Vim9: in script cannot set item in uninitialized list
...
Problem: Vim9: in script cannot set item in uninitialized list.
Solution: When a list is NULL allocate an empty one. (closes #8461 )
2021-06-27 15:04:05 +02:00