Bram Moolenaar
71b7685092
patch 8.2.3841: Vim9: outdated TODO items, disabled tests that work
...
Problem: Vim9: outdated TODO items, disabled tests that work.
Solution: Remove TODO items, run tests that work now. Check that a dict
item isn't locked.
2021-12-17 20:15:38 +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
ef082e12df
patch 8.2.3793: using "g:Func" as a funcref does not work in script context
...
Problem: Using "g:Func" as a funcref does not work in script context
because "g:" is dropped.
Solution: Keep "g:" in the name. Also add parenthesis to avoid confusing
operator prececence. (closes #9336 )
2021-12-12 21:02:03 +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
052ff291d7
patch 8.2.3782: Vim9: no error if a function shadows a script variable
...
Problem: Vim9: no error if a function shadows a script variable.
Solution: Check the function doesn't shadow a variable. (closes #9310 )
2021-12-11 13:54:46 +00:00
Bram Moolenaar
dd297bc11d
patch 8.2.3771: Vim9: accessing freed memory when checking type
...
Problem: Vim9: accessing freed memory when checking type.
Solution: Make a copy of a function type.
2021-12-10 10:37:38 +00:00
Bram Moolenaar
92c33eb273
patch 8.2.3755: Coverity warns for using a buffer in another scope
...
Problem: Coverity warns for using a buffer in another scope.
Solution: Declare the buffer in a common scope.
2021-12-07 11:03:39 +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
7f2c341664
patch 8.2.3696: Vim9: error for invalid assignment when skipping
...
Problem: Vim9: error for invalid assignment when skipping.
Solution: Do not check white space when skipping. (closes #9243 )
2021-11-29 16:01:49 +00:00
Bram Moolenaar
3ccb579516
patch 8.2.3689: ex_let_one() is too long
...
Problem: ex_let_one() is too long.
Solution: Split into multiple functions.
2021-11-28 19:53:42 +00:00
Bram Moolenaar
7824fc80f6
patch 8.2.3682: Vim9: assigning to a script variable drops the type
...
Problem: Vim9: assigning to a script variable drops the required type.
Solution: Lookup the type of the variable and use it. (closes #9219 )
2021-11-26 17:36:51 +00:00
Bram Moolenaar
04b568b38f
patch 8.2.3651: Vim9: no error for :lock or :unlock with unknown variable
...
Problem: Vim9: no error for :lock or :unlock with unknown variable.
Solution: Give an error. (closes #9188 )
2021-11-22 21:58:41 +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
mityu
a119812437
patch 8.2.3629: command completion in cmdline window uses global commands
...
Problem: Command completion in cmdline window uses global user commands,
not local commands for the window where it was opened from.
Solution: Use local commands. (closes #9168 )
2021-11-20 19:13:39 +00:00
Bram Moolenaar
69b3072d98
patch 8.2.3573: cannot decide whether to skip test that fails with 64 bit
...
Problem: Cannot decide whether to skip test that fails with 64 bit ints.
(closes #9072 )
Solution: Add v:sizeofint, v:sizeoflong and v:sizeofpointer. Improve the
check for multiply overflow.
2021-11-02 21:39:49 +00:00
Drew Vogel
e30d10253f
patch 8.2.3562: cannot add color names
...
Problem: Cannot add color names.
Solution: Add the v:colornames dictionary. (Drew Vogel, closes #8761 )
2021-10-24 20:35:07 +01:00
Bram Moolenaar
a06758dd38
patch 8.2.3511: Vim9: entry for loop variable is created every round
...
Problem: Vim9: entry for loop variable is created every round.
Solution: Only create the entry once. (closes #8996 )
2021-10-15 00:18:37 +01:00
Bram Moolenaar
464393a696
patch 8.2.3429: leaking memory when assigning to list or dict
...
Problem: Leaking memory when assigning to list or dict.
Solution: Free the list or dict type before overwriting it.
2021-09-11 23:07:44 +02:00
Bram Moolenaar
6853c38b78
patch 8.2.3411: Vim9: crash when using base name of import
...
Problem: Vim9: crash when using base name of import. (Naohiro Ono)
Solution: Check the import flags. (closes #8843 )
2021-09-07 22:12:19 +02:00
Bram Moolenaar
b033ee2ddf
patch 8.2.3351: Vim9: using a function by name may delete it
...
Problem: Vim9: using a function by name may delete it. (Naohiro Ono)
Solution: Increment the reference count when using a function by name.
(closes #8760 )
2021-08-15 16:08:36 +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
4830c211a4
patch 8.2.3343: Vim9: autoload test fails
...
Problem: Vim9: autoload test fails.
Solution: Adjust the way the second message is avoided
2021-08-14 14:59:27 +02:00
Bram Moolenaar
b521766c56
patch 8.2.3342: test for :let errors fails
...
Problem: Test for :let errors fails.
Solution: Adjust the test and how to avoid a second error message.
2021-08-14 14:27:30 +02:00
Bram Moolenaar
88c89c7722
patch 8.2.3341: Vim9: function call aborted despite try/catch
...
Problem: Vim9: function call aborted despite try/catch. (Naohiro Ono)
Solution: Ignore error caught by try/catch. (closes #8755 )
2021-08-14 14:01:05 +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
Bram Moolenaar
81530e3603
patch 8.2.3239: Vim9: no error using heredoc for a number variable
...
Problem: Vim9: no error using heredoc for a number variable.
Solution: Add a type check. (closes #8627 )
2021-07-28 21:25:49 +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
Yegappan Lakshmanan
7973de35ba
patch 8.2.3211: 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. Fix type check for matchaddpos().
(Yegappan Lakshmanan, closes #8619 )
2021-07-24 16:16:15 +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
d8e44476d8
patch 8.2.3197: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move a few more error messages to errors.h.
2021-07-21 22:20:33 +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
605793500b
patch 8.2.3186: Vim9: not all failures for import tested
...
Problem: Vim9: not all failures for import tested
Solution: Test more import failures
2021-07-19 21:45:07 +02:00
Bram Moolenaar
f6488547e3
patch 8.2.3180: Vim9: memory leak when concatenating to an imported string
...
Problem: Vim9: memory leak when concatenating to an imported string.
Solution: Clear the destination.
2021-07-18 21:24:50 +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
11005b078d
patch 8.2.3152: Vim9: accessing "s:" results in an error
...
Problem: Vim9: accessing "s:" results in an error.
Solution: Do not try to lookup a script variable for "s:". (closes #8549 )
2021-07-11 20:59:00 +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
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
1b0a9dd413
patch 8.2.2998: Vim9: disassemble test fails
...
Problem: Vim9: disassemble test fails.
Solution: Add missing call to lookup_debug_var().
2021-06-14 21:32:21 +02:00
Bram Moolenaar
f0a4069e3d
patch 8.2.2975: Vim9: can only use an autoload function name as a string
...
Problem: Vim9: can only use an autoload function name as a string.
Solution: Load the autoload script when encountered. (closes #8124 )
2021-06-11 22:05:47 +02:00
Bram Moolenaar
a42e6e0082
patch 8.2.2969: subtracting from number option fails when result is zero
...
Problem: Subtracting from number option fails when result is zero. (Ingo
Karkat)
Solution: Reset the string value when using the numeric value.
(closes #8351 )
2021-06-10 18:43:25 +02:00
Bram Moolenaar
f18332fb9e
patch 8.2.2842: Vim9: skip argument to searchpair() is not compiled
...
Problem: Vim9: skip argument to searchpair() is not compiled.
Solution: Add VAR_INSTR.
2021-05-07 17:55:55 +02:00
Bram Moolenaar
2d1c57ed3d
patch 8.2.2785: Vim9: cannot redirect to local variable
...
Problem: Vim9: cannot redirect to local variable.
Solution: Compile :redir when redirecting to a variable.
2021-04-19 20:50:03 +02:00
Bram Moolenaar
b7c21afef1
patch 8.2.2781: add() silently skips when adding to null list or blob
...
Problem: Add() silently skips when adding to null list or blob.
Solution: Give an error in Vim9 script. Allocate blob when it is NULL like
with list and dict.
2021-04-18 14:12:31 +02:00
Bram Moolenaar
a3589a0d6c
patch 8.2.2763: Vim9: cannot use type in for loop unpack at script level
...
Problem: Vim9: cannot use type in for loop unpack at script level.
Solution: Advance over the type name.
2021-04-14 13:30:46 +02:00
Bram Moolenaar
f6a8d420a8
patch 8.2.2760: Vim9: no error for changing a for loop variable
...
Problem: Vim9: no error for changing a for loop variable.
Solution: Make the loop variable read-only. (issue #8102 )
2021-04-13 21:48:03 +02:00
Bram Moolenaar
f93bbd0262
patch 8.2.2753: Vim9: cannot ignore an item in assignment unpack
...
Problem: Vim9: cannot ignore an item in assignment unpack.
Solution: Allow using an underscore.
2021-04-10 22:35:43 +02:00
Bram Moolenaar
962c43bf0d
patch 8.2.2744: Vim9: no way to explicitly ignore an argument
...
Problem: Vim9: no way to explicitly ignore an argument.
Solution: Use the underscore as the name for an ignored argument.
2021-04-10 17:18:09 +02:00
Bram Moolenaar
12be734faf
patch 8.2.2681: Vim9: test fails for redeclaring script variable
...
Problem: Vim9: test fails for redeclaring script variable.
Solution: It's OK to assign to an existing script variable in legacy.
2021-03-31 21:47:33 +02:00
Bram Moolenaar
e535db86e7
patch 8.2.2680: Vim9: problem defining a script variable from legacy function
...
Problem: Vim9: problem defining a script variable from legacy function.
Solution: Check if the script is Vim9, not the current syntax.
(closes #8032 )
2021-03-31 21:07:24 +02:00