Bram Moolenaar
3b0d70f4ff
patch 9.0.0323: using common name in tests leads to flaky tests
...
Problem: Using common name in tests leads to flaky tests.
Solution: Rename files and directories to be more specific.
2022-08-29 22:31:20 +01:00
Bram Moolenaar
2984ed31d9
patch 9.0.0230: no error for comma missing in list in :def function
...
Problem: No error for comma missing in list in :def function.
Solution: Check for missing comma. (closes #10943 )
2022-08-20 14:51:17 +01:00
Bram Moolenaar
91c7cbfe31
patch 9.0.0225: using freed memory with multiple line breaks in expression
...
Problem: Using freed memory with multiple line breaks in expression.
Solution: Free eval_tofree later.
2022-08-18 13:28:31 +01:00
Bram Moolenaar
4875d6ab06
patch 9.0.0224: Using NULL pointer when skipping compiled code
...
Problem: Using NULL pointer when skipping compiled code.
Solution: Check for skipping.
2022-08-17 15:55:51 +01:00
Bram Moolenaar
3f74c0ab32
patch 9.0.0156: giving E1170 only in an expression is confusing
...
Problem: Giving E1170 only in an expression is confusing.
Solution: Give E1170 for any "#{ comment". (closes #10855 )
2022-08-06 18:12:06 +01:00
Bram Moolenaar
6809ff978a
patch 9.0.0079: error in autoload script not reported for 'foldexpr'
...
Problem: Error in autoload script not reported for 'foldexpr'.
Solution: Reset "emsg_off" when auto-loading a script. (closes #10685 )
2022-07-26 15:10:56 +01:00
Bram Moolenaar
bd3a9d2c94
patch 8.2.4973: Vim9: type error for list unpack mentions argument
...
Problem: Vim9: type error for list unpack mentions argument.
Solution: Mention variable. (close #10435 )
2022-05-17 16:12:39 +01:00
Bram Moolenaar
ec89223478
patch 8.2.4892: test failures because of changed error messages
...
Problem: Test failures because of changed error messages.
Solution: Adjust the exptected error messages.
2022-05-06 17:53:06 +01:00
Bram Moolenaar
f1d63b9cba
patch 8.2.4885: test fails with the job/channel feature
...
Problem: Test fails with the job/channel feature.
Solution: Move check for job/channel separately.
2022-05-06 13:37:42 +01:00
Bram Moolenaar
175913fb03
patch 8.2.4884: test fails without the job/channel feature
...
Problem: Test fails without the job/channel feature. (Dominique Pellé)
Solution: Add condition.
2022-05-06 13:27:08 +01:00
Bram Moolenaar
505ed0c38f
patch 8.2.4873: Vim9: using "else" differs from using "endif/if !cond"
...
Problem: Vim9: using "else" differs from using "endif/if !cond".
Solution: Leave the block and enter another one. (closes #10320 )
2022-05-05 17:02:46 +01:00
Bram Moolenaar
09d9421b67
patch 8.2.4871: Vim9: in :def function no error for misplaced range
...
Problem: Vim9: in :def function no error for using a range with a command
that does not accept one.
Solution: Check for the command to accept a range. (closes #10330 )
2022-05-05 15:20:03 +01:00
Bram Moolenaar
0395f88b84
patch 8.2.4864: Vim9: script test fails
...
Problem: Vim9: script test fails.
Solution: Remove "if" around declaration.
2022-05-04 17:29:15 +01:00
Bram Moolenaar
c9af617ac6
patch 8.2.4863: accessing freed memory in test without the +channel feature
...
Problem: Accessing freed memory in test without the +channel feature.
(Dominique Pellé)
Solution: Do not generted PUSHCHANNEL or PUSHJOB if they are not
implemented. (closes #10350 )
2022-05-04 16:46:54 +01:00
Bram Moolenaar
23d44493f1
patch 8.2.4862: Vim9: test may fail when run with valgrind
...
Problem: Vim9: test may fail when run with valgrind.
Solution: Wait longer for callback if needed.
2022-05-04 16:24:57 +01:00
LemonBoy
a5d3590505
patch 8.2.4847: crash when using uninitialized function pointer
...
Problem: Crash when using uninitialized function pointer.
Solution: Check for NULL pointer. (closes #10319 , closes #10319 )
2022-04-29 21:15:02 +01:00
Bram Moolenaar
95e4dd813a
patch 8.2.4835: Vim9: some lines not covered by tests
...
Problem: Vim9: some lines not covered by tests.
Solution: Add a few more tests. Fix disassemble output.
2022-04-27 22:15:40 +01:00
Yegappan Lakshmanan
885de449c0
patch 8.2.4809: various things no6 properly tested
...
Problem: Various things no6 properly tested.
Solution: Add various test cases. (Yegappan Lakshmanan, closes #10259 )
2022-04-23 10:51:14 +01:00
Bram Moolenaar
1061195057
patch 8.2.4678: Vim9: not all code is tested
...
Problem: Vim9: not all code is tested.
Solution: Add a few more tests.
2022-04-03 21:11:34 +01:00
Bram Moolenaar
fa010cdfb1
patch 8.2.4675: no error for missing expression after :elseif
...
Problem: No error for missing expression after :elseif. (Ernie Rael)
Solution: Check for missing expression. (closes #10068 )
2022-04-03 16:13:07 +01:00
Bram Moolenaar
97f8c1081e
patch 8.2.4666: Vim9: assignment not recognized in skipped block
...
Problem: Vim9: assignment not recognized in skipped block.
Solution: When skipping assume identifier exists. (closes #10059 )
2022-04-02 19:43:57 +01:00
Bram Moolenaar
43216611a5
patch 8.2.4622: Vim9: crash with :execute and :finish
...
Problem: Vim9: Crash with :execute and :finish. (Sergey Vlasov)
Solution: Check for NULL. (closes #10011 )
2022-03-25 11:16:28 +00:00
Bram Moolenaar
397a87ac1c
patch 8.2.4602: Vim9: not enough test coverage for executing :def function
...
Problem: Vim9: not enough test coverage for executing :def function.
Solution: Add a few more tests. Fix uncovered problem. Remove dead code.
2022-03-20 21:14:15 +00:00
Bram Moolenaar
efd73ae5d2
patch 8.2.4601: Vim9: not enough test coverage for executing :def function
...
Problem: Vim9: not enough test coverage for executing :def function.
Solution: Add a few more tests.
2022-03-20 18:51:00 +00:00
Bram Moolenaar
61efa16932
patch 8.2.4587: Vim9: double free after unpacking a list
...
Problem: Vim9: double free after unpacking a list.
Solution: Make a copy of the value instead of moving it. (closes #9968 )
2022-03-18 13:10:48 +00:00
Bram Moolenaar
4f6e772c9c
patch 8.2.4583: screendump test fails
...
Problem: Screendump test fails.
Solution: Check that making a screendump is possible.
2022-03-16 20:26:02 +00:00
Bram Moolenaar
4c8b546da2
patch 8.2.4582: useless code handling a type declaration
...
Problem: Useless code handling a type declaration.
Solution: Remove the code and give an error.
2022-03-16 20:01:39 +00:00
Bram Moolenaar
48f69cdfa4
patch 8.2.4574: Vim9: test for profiling fails
...
Problem: Vim9: test for profiling fails.
Solution: Mark function for profiling earlier to avoid E1271.
2022-03-15 16:16:47 +00:00
Bram Moolenaar
129e33e44b
patch 8.2.4564: running test leaves file behind
...
Problem: Running test leaves file behind. (Dominique Pellé)
Solution: Run the profiling in a separate Vim instance. (closes #9952 )
2022-03-14 10:50:23 +00:00
Bram Moolenaar
873f8243f6
patch 8.2.4542: Vim9: "break" inside try/catch not handled correctly
...
Problem: Vim9: "break" inside try/catch not handled correctly.
Solution: First jump to :endtry. (closes #9927 )
2022-03-10 21:53:44 +00:00
Bram Moolenaar
d523c7be5c
patch 8.2.4519: Vim9: Can still use ":fini" and ":finis" for ":finish"
...
Problem: Vim9: Can still use ":fini" and ":finis" for ":finish".
Solution: Require using ":finish".
2022-03-06 14:51:22 +00:00
Bram Moolenaar
b2175220da
patch 8.2.4514: Vim9: some flow commands can be shortened
...
Problem: Vim9: some flow commands can be shortened.
Solution: Also require using the full name for ":return", ":enddef",
":continue", ":export" and ":import".
2022-03-05 20:24:41 +00:00
Bram Moolenaar
204852ae2a
patch 8.2.4510: Vim9: shortening commands leads to confusing script
...
Problem: Vim9: shortening commands leads to confusing script.
Solution: In Vim9 script require at least ":cont" for ":continue", "const"
instead of "cons", "break" instead of "brea", "catch" instead of
"cat", "else" instead of "el" "elseif" instead of "elsei" "endfor"
instead of "endfo" "endif" instead of "en" "endtry" instead of
"endt", "finally" instead of "fina", "throw" instead of "th",
"while" instead of "wh".
2022-03-05 12:56:44 +00:00
Bram Moolenaar
330a388e18
patch 8.2.4508: Vim9: cannot assign to a global variable on the command line
...
Problem: Vim9: cannot assign to a global variable on the command line.
Solution: Allow using :vim9cmd for assignment on the command line.
2022-03-05 11:05:57 +00:00
Bram Moolenaar
6aca4d3c2b
patch 8.2.4503: Vim9: there is no point in supporting :Print and :mode
...
Problem: Vim9: there is no point in supporting :Print and :mode.
Solution: Do not recognize :Print and :mode as commands. (closes #9870 )
2022-03-04 17:10:19 +00:00
Bram Moolenaar
0e1574c406
patch 8.2.4500: Vim9: can declare a global variable on the command line
...
Problem: Vim9: can declare a global variable on the command line.
Solution: Disallow declaring a variable on the command line. (closes #9881 )
2022-03-03 17:05:35 +00:00
Bram Moolenaar
28bf649a57
patch 8.2.4499: Vim9: at the script level declarations leak to next block
...
Problem: Vim9: at the script level declarations leak from try block to
catch and finally block.
Solution: End the block and start a new one. (closes #9883 )
2022-03-03 15:11:20 +00:00
Bram Moolenaar
0c7f2610de
patch 8.2.4410: Vim9: some code not covered by tests
...
Problem: Vim9: some code not covered by tests.
Solution: Add a few more tests. Remove dead code.
2022-02-17 19:44:07 +00:00
Bram Moolenaar
75e27d78f5
patch 8.2.4371: Vim9: can create a script variable from a legacy function
...
Problem: Vim9: can create a script variable from a legacy function.
Solution: Disallow creating a script variable from a function.
2022-02-13 13:56:29 +00:00
Bram Moolenaar
a749a42ed2
patch 8.2.4360: Vim9: allowing use of "s:" leads to inconsistencies
...
Problem: Vim9: allowing use of "s:" leads to inconsistencies.
Solution: Disallow using "s:" in Vim9 script at the script level.
2022-02-12 19:52:25 +00:00
Bram Moolenaar
90a57168a4
patch 8.2.4358: Vim9: line number of exception is not set
...
Problem: Vim9: line number of exception is not set.
Solution: Set the line number before throwing an exception. (closes #9755 )
2022-02-12 14:23:17 +00:00
Bram Moolenaar
8cbf249917
patch 8.2.4314: test fails where lines are skipped
...
Problem: Test fails where lines are skipped.
Solution: Only give an error when not skipping commands.
2022-02-06 20:28:13 +00:00
Bram Moolenaar
107f7325f6
patch 8.2.4312: no error for using :vim9script in a :def function
...
Problem: No error for using :vim9script in a :def function.
Solution: Give an error when compiling.
2022-02-06 17:30:41 +00:00
Bram Moolenaar
21ebb0899e
patch 8.2.4297: Vim9: not all code covered by tests
...
Problem: Vim9: not all code covered by tests.
Solution: Add a couple more tests.
2022-02-04 21:58:58 +00:00
Bram Moolenaar
a1c5195180
patch 8.2.4285: Vim9: type of item in for loop not checked properly
...
Problem: Vim9: type of item in for loop not checked properly.
Solution: Adjust the type checking. (closes #9683 )
2022-02-02 16:20:26 +00:00
Bram Moolenaar
d8fe6d34bb
patch 8.2.4264: Vim9: can use old style autoload function name
...
Problem: Vim9: can use old style autoload function name.
Solution: Give an error for old style autoload function name.
2022-01-30 18:40:44 +00:00
Bram Moolenaar
62aec93bfd
patch 8.2.4257: Vim9: finding global function without g: prefix inconsistent
...
Problem: Vim9: finding global function without g: prefix but not finding
global variable is inconsistent.
Solution: Require using g: for a global function. Change the vim9.vim
script into a Vim9 script with exports. Fix that import in legacy
script does not work.
2022-01-29 21:45:34 +00:00
Bram Moolenaar
bed34f0a8a
patch 8.2.4147: E464 does not always include the offending command
...
Problem: E464 does not always include the offending command.
Solution: Add another error message with "%s". (closes #9564 )
2022-01-19 20:48:37 +00:00
Bram Moolenaar
53c296112e
patch 8.2.4071: Vim9: no detection of return in try/endtry
...
Problem: Vim9: no detection of return in try/endtry. (Dominique Pellé)
Solution: Check if any of the blocks inside try/endtry did not end in
return.
2022-01-12 16:18:18 +00:00
Bram Moolenaar
160aa86a9d
patch 8.2.4057: Vim9: not fully implementing the autoload mechanism
...
Problem: Vim9: not fully implementing the autoload mechanism.
Solution: Allow for exporting a legacy function. Improve test coverage.
2022-01-10 21:29:57 +00:00