Bram Moolenaar
ffb7dcdb77
patch 8.2.2582: Vim9: screendump test fails on MS-Windows
...
Problem: Vim9: screendump test fails on MS-Windows.
Solution: Use :function instead of :def.
2021-03-10 14:00:18 +01:00
Bram Moolenaar
37294bd6a2
patch 8.2.2581: Vim9: sourcing Vim9 script triggers a redraw
...
Problem: Vim9: sourcing Vim9 script triggers a redraw.
Solution: Do not let setting/restoring 'cpoptions' cause a redraw.
(closes #7920 )
2021-03-10 13:40:08 +01:00
Bram Moolenaar
e3ffcd9902
patch 8.2.2580: Vim9: checking vararg type may be wrong
...
Problem: Vim9: checking vararg type is wrong when function is auto-loaded.
Solution: Use the member type. (closes #7933 )
2021-03-08 21:47:13 +01:00
Bram Moolenaar
6c3843ca8a
patch 8.2.2567: Vim9: no error if variable is defined for existing function
...
Problem: Vim9: no error if variable is defined for existing function.
Solution: Check if name isn't already in use. (closes #7897 )
2021-03-04 12:38:21 +01:00
Bram Moolenaar
057e84afe5
patch 8.2.2558: no error if a lambda argument shadows a variable
...
Problem: No error if a lambda argument shadows a variable.
Solution: Check that the argument name shadows a local, argument or script
variable. (closes #7898 )
2021-02-28 16:55:11 +01:00
Bram Moolenaar
0a84284e60
patch 8.2.2556: Vim9: :import with "as" not fully supported
...
Problem: Vim9: :import with "as" not fully supported.
Solution: Implement "as" for more cases.
2021-02-27 22:41:19 +01:00
Bram Moolenaar
3f1e9f000f
patch 8.2.2555: Vim9: missing test for 8.2.2553
...
Problem: Vim9: missing test for 8.2.2553.
Solution: Add a simple test.
2021-02-27 22:36:43 +01:00
Bram Moolenaar
0f2a5cc68b
patch 8.2.2554: Vim9: exporting a final is not tested
...
Problem: Vim9: exporting a final is not tested.
Solution: Add a test.
2021-02-27 22:33:21 +01:00
Bram Moolenaar
9cb577a682
patch 8.2.2543: Vim9: a return inside try/catch does not restore properly
...
Problem: Vim9: a return inside try/catch does not restore exception state
properly.
Solution: When there is no ":finally" jump to ":endtry". (closes #7882 )
2021-02-22 22:45:10 +01:00
Bram Moolenaar
7e82c5f338
patch 8.2.2539: Vim9: return from finally block causes a hang
...
Problem: Vim9: return from finally block causes a hang.
Solution: Store both the finally and endtry indexes. (closes #7885 )
2021-02-21 21:32:45 +01:00
Bram Moolenaar
ada1d870b4
patch 8.2.2532: Vim9: confusing error if :k is used with a range
...
Problem: Vim9: confusing error if :k is used with a range.
Solution: Give an error about the range. (issue #7874 )
2021-02-20 08:16:51 +01:00
Bram Moolenaar
10b9421f3b
patch 8.2.2531: Vim9: the :k command is obscure
...
Problem: Vim9: the :k command is obscure.
Solution: Disallow using :k, can use :mark instead. (closes #7874 )
2021-02-19 21:42:57 +01:00
Bram Moolenaar
d3f8a9ee65
patch 8.2.2529: Vim9: Not possible to use legacy and Vim9 script in one file
...
Problem: Vim9: Not possible to use legacy and Vim9 script in one file.
Solution: Vim9: allow for "if false" before :vim9script. (closes #7851 )
2021-02-17 21:57:03 +01:00
Bram Moolenaar
b8554304c3
patch 8.2.2519: Vim9: no reason to keep strange Vi behavior
...
Problem: Vim9: no reason to keep strange Vi behavior.
Solution: ":3" and ":3|" both go to line 3. ":|" does not print the line.
(closes #7840 )
2021-02-15 21:30:30 +01:00
Bram Moolenaar
7c5b3c0369
patch 8.2.2517: Vim9: fix for s390 not tested on other systems
...
Problem: Vim9: fix for s390 not tested on other systems.
Solution: Add a test.
2021-02-14 22:40:57 +01:00
Bram Moolenaar
03dfde2b5f
patch 8.2.2512: Vim9: compiling error test sometimes fails
...
Problem: Vim9: compiling error test sometimes fails.
Solution: use WaitForAssert() instead of sleeping for a bit. (Dominique
Pellé, closes #7837 )
2021-02-14 13:17:22 +01:00
Bram Moolenaar
c150c09ec4
patch 8.2.2506: Vim9: :continue does not work correctly in a :try block
...
Problem: Vim9: :continue does not work correctly in a :try block
Solution: Add the TRYCLEANUP instruction. (closes #7827 )
2021-02-13 15:02:46 +01:00
Bram Moolenaar
d9d7789b6f
patch 8.2.2503: Vim9: a caught error may leave something on the stack
...
Problem: Vim9: a caught error may leave something on the stack.
Solution: Drop items from the stack if needed. (closes #7826 )
2021-02-12 21:32:47 +01:00
Bram Moolenaar
0123cc1e14
patch 8.2.2485: when sourcing a script again the script version isn't reset
...
Problem: When sourcing a script again the script version isn't reset.
Solution: Set sn_version to one when sourcing a script again. Clear
sn_save_cpo properly. (closes #7608 )
2021-02-07 17:17:58 +01:00
Bram Moolenaar
dee37dc733
patch 8.2.2484: Vim9: Cannot use a comment starting with #{
...
Problem: Vim9: Cannot use a comment starting with #{ after an expression.
Solution: Remove the check for "{" since #{ dictionaries are not supported.
2021-02-07 16:40:05 +01:00
Bram Moolenaar
6628b7ebff
patch 8.2.2483: Vim9: type error for misformed expression
...
Problem: Vim9: type error for misformed expression.
Solution: Check for end of command before checking type. (closes #7795 )
2021-02-07 16:33:35 +01:00
Bram Moolenaar
2e5910bfbb
patch 8.2.2455: Vim9: key type for literal dict and indexing is inconsistent
...
Problem: Vim9: key type that can be used for literal dict and indexing is
inconsistent.
Solution: Allow using number and bool as key for a literal dict. (#7771 )
2021-02-03 17:41:24 +01:00
Bram Moolenaar
206c2a6e19
patch 8.2.2436: Vim9 script test is a bit flaky
...
Problem: Vim9 script test is a bit flaky.
Solution: Wait longer for exit callback.
2021-01-31 14:04:44 +01:00
Bram Moolenaar
ced68a0070
patch 8.2.2403: Vim9: profiling if/elseif/endif not correct
...
Problem: Vim9: profiling if/elseif/endif not correct.
Solution: Add profile instructions. Fix that "elseif" was wrong.
2021-01-24 17:53:47 +01:00
Bram Moolenaar
4bce26bb70
patch 8.2.2393: Vim9: error message when script line starts with "[{"
...
Problem: Vim9: error message when script line starts with "[{".
Solution: Do not give an error for checking for end of list.
2021-01-22 22:06:56 +01:00
Bram Moolenaar
036d07144e
patch 8.2.2371: Vim9: crash when using types in :for with unpack
...
Problem: Vim9: crash when using types in :for with unpack.
Solution: Check for skip_var_list() failing. Pass include_type to
skip_var_one(). Skip type when compiling. (closes #7694 )
2021-01-17 20:23:38 +01:00
Bram Moolenaar
1430ceeb2d
patch 8.2.2370: Vim9: command fails in catch block
...
Problem: Vim9: command fails in catch block.
Solution: Reset force_abort and need_rethrow. (closes #7692 )
2021-01-17 19:20:32 +01:00
Bram Moolenaar
8f81b22e86
patch 8.2.2351: Vim9: error msg for "throw" in function called with "silent!"
...
Problem: Vim9: error message for "throw" in function that was called with
"silent!".
Solution: Do not throw the exception when not caught or displayed.
(closes #7672 )
2021-01-14 21:47:06 +01:00
Bram Moolenaar
9e1d9e3473
patch 8.2.2330: Vim9: crash when using :trow in a not executed block
...
Problem: Vim9: crash when using :trow in a not executed block.
Solution: Don't generate the instruction when skipping. (closes #7659 )
2021-01-11 20:17:34 +01:00
Bram Moolenaar
48e11c1054
patch 8.2.2328: some test files may not be deleted
...
Problem: Some test files may not be deleted.
Solution: Add a delete() call, correct name. (Dominique Pellé, closes #7654 )
2021-01-11 18:47:00 +01:00
Bram Moolenaar
69f7050ceb
patch 8.2.2263: Vim9: compilation error with try-catch in skipped block
...
Problem: Vim9: compilation error with try-catch in skipped block.
Solution: Do not bail out when generate_instr() returns NULL. (closes #7584 )
2021-01-01 16:10:46 +01:00
Bram Moolenaar
2949cfdbe4
patch 8.2.2257: Vim9: using -> for lambda is ambiguous
...
Problem: Vim9: using -> for lambda is ambiguous.
Solution: Stop supporting ->, must use =>.
2020-12-31 21:28:47 +01:00
Bram Moolenaar
a629495530
patch 8.2.2225: Vim9: error when using :import in legacy script twice
...
Problem: Vim9: error when using :import in legacy script twice.
Solution: Make it possible to redefine an import when reloading.
2020-12-27 13:39:50 +01:00
Bram Moolenaar
07a65d26e7
patch 8.2.2224: Vim9: crash if script reloaded with different variable type
...
Problem: Vim9: crash if script reloaded with different variable type.
Solution: Check the type when accessing the variable.
2020-12-26 20:09:15 +01:00
Bram Moolenaar
cdc40c43f1
patch 8.2.2223: Vim9: Reloading marks a :def function as deleted
...
Problem: Vim9: Reloading marks a :def function as deleted.
Solution: Clear the function contents but keep the index.
2020-12-26 17:43:08 +01:00
Bram Moolenaar
2b32700dab
patch 8.2.2222: Vim9: cannot keep script variables when reloading
...
Problem: Vim9: cannot keep script variables when reloading.
Solution: Add the "noclear" argument to :vim9script.
2020-12-26 15:39:31 +01:00
Bram Moolenaar
f8103f274e
patch 8.2.2214: ":e#" does not give a warning for missing white space
...
Problem: ":e#" does not give a warning for missing white space.
Solution: Adjust the check for white space. (closes #7545 )
2020-12-25 17:36:27 +01:00
Bram Moolenaar
4aab88d919
patch 8.2.2208: Vim9: after reloading a script variable index may be invalid
...
Problem: Vim9: after reloading a script variable index may be invalid.
Solution: When the sequence number doesn't match give an error for using a
script-local variable from a compiled function. (closes #7547 )
2020-12-24 21:56:41 +01:00
Bram Moolenaar
6f17a3f023
patch 8.2.2180: Vim9: test for error after error is flaky
...
Problem: Vim9: test for error after error is flaky.
Solution: Wait for job to finish instead of a fixed delay.
2020-12-21 18:11:24 +01:00
Bram Moolenaar
5082471f91
patch 8.2.2172: Vim9: number of arguments is not always checked
...
Problem: Vim9: number of arguments is not always checked. (Yegappan
Lakshmanan)
Solution: Check number of arguments when calling function by name.
2020-12-20 21:10:17 +01:00
Bram Moolenaar
090728ad4d
patch 8.2.2169: Vim9: test leaves file behind
...
Problem: Vim9: test leaves file behind.
Solution: Rename script files. (Dominique Pellé, closes #7511 )
Use try/finally.
2020-12-20 15:43:31 +01:00
Bram Moolenaar
17f700ac8b
patch 8.2.2164: Vim9: autoload function doesn't work in uppercased script
...
Problem: Vim9: autoload function doesn't work in script that starts with
an upper case letter.
Solution: Check for the autoload character. (closes #7502 )
2020-12-19 21:23:42 +01:00
Bram Moolenaar
03290b8444
patch 8.2.2162: Vim9: Cannot load or store autoload variables
...
Problem: Vim9: Cannot load or store autoload variables.
Solution: Add ISN_LOADAUTO and ISN_STOREAUTO. (closes #7485 )
2020-12-19 16:30:44 +01:00
Bram Moolenaar
025cb1ca86
patch 8.2.2144: Vim9: some corner cases not tested
...
Problem: Vim9: some corner cases not tested.
Solution: Add a few tests.
2020-12-14 18:31:27 +01:00
Bram Moolenaar
b5b9480ee9
patch 8.2.2138: Vim9: "exit_cb" causes Vim to exit
...
Problem: Vim9: "exit_cb" causes Vim to exit.
Solution: Require white space after a command in Vim9 script. (closes #7467 )
Also fix that Vim9 style heredoc was not always recognized.
2020-12-13 17:50:20 +01:00
Bram Moolenaar
e498429087
patch 8.2.2137: Vim9: :echo and :execute give error for empty argument
...
Problem: Vim9: :echo and :execute give error for empty argument.
Solution: Ignore an empty argument. (closes #7468 )
2020-12-13 14:19:25 +01:00
Bram Moolenaar
93f82cbee5
patch 8.2.2135: Vim9: #{ still seen as start of dict in some places
...
Problem: Vim9: #{ still seen as start of dict in some places.
Solution: Remove check for { after #. (closes #7456 )
2020-12-12 21:25:56 +01:00
Bram Moolenaar
70249ee831
patch 8.2.2127: Vim9: executing user command from Vim9 script not tested
...
Problem: Vim9: executing user command defined in Vim9 script not tested.
Solution: Add a test.
2020-12-10 21:01:30 +01:00
Bram Moolenaar
9ec7026f24
patch 8.2.2122: Vim9: crash when sourcing vim9script early
...
Problem: Vim9: crash when sourcing vim9script early.
Solution: Use set_option_value() instead of setting p_cpo directly.
(closes #7441 )
2020-12-09 17:16:59 +01:00
Bram Moolenaar
918a424917
patch 8.2.2099: Vim9: some checks are not tested
...
Problem: Vim9: some checks are not tested.
Solution: Add a few more tests. Give better error messages.
2020-12-06 14:37:08 +01:00