Bram Moolenaar
0289a093a4
patch 8.2.2605: Vim9: string index and slice does not include composing chars
...
Problem: Vim9: string index and slice does not include composing chars.
Solution: Include composing characters. (issue #6563 )
2021-03-14 18:40:19 +01:00
Bram Moolenaar
2e34c34be1
patch 8.2.2602: Vim9: continue doesn't work if :while is very first command
...
Problem: Vim9: continue doesn't work if :while is very first command.
(Yegappan Lakshmanan)
Solution: Add one to the continue instruction index.
2021-03-14 12:13:33 +01:00
Bram Moolenaar
cb4e80fab9
patch 8.2.2597: Vim9: "import * as" does not work at script level
...
Problem: Vim9: "import * as" does not work at script level.
Solution: Implement using an imported namespace.
2021-03-13 20:57:19 +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
04947cc6ed
patch 8.2.2574: Vim9: crash when calling partial with wrong function
...
Problem: Vim9: crash when calling partial with wrong function.
Solution: Check argument types of called function. (closes #7912 )
2021-03-06 19:26:46 +01:00
Bram Moolenaar
1bd3cb2019
patch 8.2.2549: crash after using "g:" in a for loop
...
Problem: Crash after using "g:" in a for loop.
Solution: Increment the reference count. (closes #7892 )
2021-02-24 12:27:31 +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
5b5ae29bd3
patch 8.2.2533: Vim9: cannot use a range with :unlet
...
Problem: Vim9: cannot use a range with :unlet.
Solution: Implement ISN_UNLETRANGE.
2021-02-20 17:04:02 +01:00
Bram Moolenaar
12d265315f
patch 8.2.2530: Vim9: not enough testing for profiling
...
Problem: Vim9: not enough testing for profiling.
Solution: Add a test with nested functions and a lambda. Fix profiling
for calling a compiled function.
2021-02-19 19:13:21 +01:00
Bram Moolenaar
8d4be89011
patch 8.2.2509: tests fail on s390 build
...
Problem: Tests fail on s390 build.
Solution: Initialize trycmd_T.
2021-02-13 18:33:02 +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
f785aa1354
patch 8.2.2501: not always clear where an error is reported
...
Problem: Not always clear where an error is reported.
Solution: Add the where_T structure and pass it around. (closes #7796 )
2021-02-11 21:19:34 +01:00
Bram Moolenaar
fef8064b54
patch 8.2.2461: Coverity warns for unchecked return value
...
Problem: Coverity warns for unchecked return value.
Solution: Add "(void)" to avoid the warning.
2021-02-03 20:01:19 +01:00
Bram Moolenaar
3445320839
patch 8.2.2435: setline() gives an error for some types
...
Problem: setline() gives an error for some types.
Solution: Allow any type, convert each item to a string.
2021-01-31 13:08:38 +01:00
Bram Moolenaar
e5ea346a07
patch 8.2.2409: Vim9: profiling only works for one function
...
Problem: Vim9: profiling only works for one function.
Solution: Select the right instructions when calling and returning.
(closes #7743 )
2021-01-25 21:01:48 +01:00
Bram Moolenaar
107e9cecf7
patch 8.2.2404: Vim9: profiling try/catch not correct
...
Problem: Vim9: profiling try/catch not correct.
Solution: Add profile instructions. Fix that "entry" did not rethrow an
excpetion.
2021-01-24 20:52:00 +01:00
Bram Moolenaar
f002a41d12
patch 8.2.2401: build fails without +profiling feature
...
Problem: Build fails without +profiling feature.
Solution: Add #ifdefs.
2021-01-24 13:34:18 +01:00
Bram Moolenaar
b204990346
patch 8.2.2400: Vim9: compiled functions are not profiled
...
Problem: Vim9: compiled functions are not profiled.
Solution: Add initial changes to profile compiled functions. Fix that a
script-local function was hard to debug.
2021-01-24 12:53:53 +01:00
Bram Moolenaar
0d3de8cb59
patch 8.2.2391: memory leak when creating a global function with closure
...
Problem: Memory leak when creating a global function with closure.
Solution: Create a separate partial for every instantiated function.
2021-01-22 20:46:27 +01:00
Bram Moolenaar
b3005ce191
patch 8.2.2390: Vim9: using positive offset is unexpected
...
Problem: Vim9: using positive offset is unexpected.
Solution: Use int8_T instead of char. (James McCoy)
2021-01-22 17:51:06 +01:00
Bram Moolenaar
9b6344613e
patch 8.2.2389: test failure on a few systems
...
Problem: Test failure on a few systems.
Solution: Avoid that "char" value is negative.
2021-01-21 22:53:38 +01:00
Bram Moolenaar
e32e516dfa
patch 8.2.2387: runtime type check does not mention argument index
...
Problem: Runtime type check does not mention argument index.
Solution: Add ct_arg_idx. (closes #7720 )
2021-01-21 20:21:29 +01:00
Bram Moolenaar
f904133e1a
patch 8.2.2386: Vim9: crash when using ":silent! put"
...
Problem: Vim9: crash when using ":silent! put".
Solution: When ignoring an error for ":silent!" rewind the stack and skip
ahead to restoring the cmdmod. (closes #7717 )
2021-01-21 19:41:16 +01:00
Bram Moolenaar
b1f2857096
patch 8.2.2382: build failure
...
Problem: Build failure.
Solution: Add missing changes.
2021-01-21 13:03:20 +01:00
Bram Moolenaar
99880f96cf
patch 8.2.2378: Vim9: no error message for dividing by zero
...
Problem: Vim9: no error message for dividing by zero.
Solution: Give an error message. (issue #7704 )
2021-01-20 21:23:14 +01:00
Bram Moolenaar
a28639e711
patch 8.2.2377: Vim9: crash when using a range after another expression
...
Problem: Vim9: crash when using a range after another expression.
Solution: Set the variable type to number. Fix using :put with a range and
the "=" register. (closes #7706 )
2021-01-19 22:48:09 +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
239f8d9326
patch 8.2.2367: test failures on some less often used systems
...
Problem: Test failures on some less often used systems.
Solution: Adjust printf formats and types. (James McCoy, closes #7691 )
2021-01-17 13:21:20 +01:00
Bram Moolenaar
883cf97f10
patch 8.2.2356: Vim9: ":put =expr" does not handle a list properly
...
Problem: Vim9: ":put =expr" does not handle a list properly.
Solution: Use the same logic as eval_to_string_eap(). (closes #7684 )
2021-01-15 18:04:43 +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
6601b62943
patch 8.2.2344: using inclusive index for slice is not always desired
...
Problem: Using inclusive index for slice is not always desired.
Solution: Add the slice() method, which has an exclusive index. (closes
#7408 )
2021-01-13 21:47:15 +01:00
Bram Moolenaar
cb6cbf29e9
patch 8.2.2333: Vim9: warning for uninitialized variable
...
Problem: Vim9: warning for uninitialized variable. (Tony Mechelynck)
Solution: Initialize "res".
2021-01-12 17:17:01 +01:00
Bram Moolenaar
9567efa1b4
patch 8.2.2332: Vim9: missing :endif not reported when using :windo
...
Problem: Vim9: missing :endif not reported when using :windo.
Solution: Pass a getline function to do_cmdline(). (closes #7650 )
2021-01-11 22:16:30 +01:00
Bram Moolenaar
16a6f91ccb
patch 8.2.2327: debugging code included
...
Problem: Debugging code included.
Solution: Remove the debugging code.
2021-01-10 23:58:28 +01:00
Bram Moolenaar
0186e58639
patch 8.2.2322: Vim9: closure nested limiting to one level
...
Problem: Vim9: closure nested limiting to one level.
Solution: Add outer_T. Also make STOREOUTER work.
2021-01-10 18:33:11 +01:00
Bram Moolenaar
ab360526ef
patch 8.2.2321: Vim9: cannot nest closures
...
Problem: Vim9: cannot nest closures.
Solution: Add the nesting level to ISN_LOADOUTER and ISN_STOREOUTER.
(closes #7150 , closes #7635 )
2021-01-10 14:02:28 +01:00
Bram Moolenaar
657137ca48
patch 8.2.2319: "exptype_T" can be read as "expected type"
...
Problem: "exptype_T" can be read as "expected type".
Solution: Rename to "exprtype_T", expression type.
2021-01-09 15:45:23 +01:00
Bram Moolenaar
e7525c5520
patch 8.2.2318: Vim9: string and list index work differently
...
Problem: Vim9: string and list index work differently.
Solution: Make string index work like list index. (closes #7643 )
2021-01-09 13:20:37 +01:00
Bram Moolenaar
299f3036ec
patch 8.2.2314: Vim9: returning zero takes two instructions
...
Problem: Vim9: returning zero takes two instructions.
Solution: Add ISN_RETURN_ZERO.
2021-01-08 20:53:09 +01:00
Bram Moolenaar
ece0b87c0f
patch 8.2.2313: Vim9: using uninitialized field when parsing range
...
Problem: Vim9: using uninitialized field when parsing range. ":silent!" not
respected when parsing range fails.
Solution: Initialize ea.skip. On pattern failure handle it like an error.
(closes #7636 )
2021-01-08 20:40:45 +01:00
Bram Moolenaar
32b3f82010
patch 8.2.2306: Vim9: when using function reference type is not checked
...
Problem: Vim9: when using function reference type is not checked.
Solution: When using a function reference lookup the type and check the
argument types. (issue #7629 )
2021-01-06 21:59:39 +01:00
Bram Moolenaar
0acbf5ae66
patch 8.2.2304: Vim9: no test for unletting an imported variable
...
Problem: Vim9: no test for unletting an imported variable.
Solution: Add a test. Fix line number in error.
2021-01-05 20:58:25 +01:00
Bram Moolenaar
752fc692ac
patch 8.2.2301: Vim9: cannot unlet a dict or list item
...
Problem: Vim9: cannot unlet a dict or list item.
Solution: Add ISN_UNLETINDEX. Refactor assignment code to use for unlet.
2021-01-04 21:57:11 +01:00
Bram Moolenaar
d1510ee946
patch 8.2.2299: Vim9: invalid memory access making error message flaky
...
Problem: Vim9: invalid memory access making error message flaky.
Solution: Do not check cmd_argt for CMD_USER. (issue #7467 )
2021-01-04 16:15:58 +01:00
Bram Moolenaar
82c38fe508
patch 8.2.2294: VMS: a few remaining problems
...
Problem: VMS: a few remaining problems.
Solution: Add VMS specific changes. Add Lua support. (Zoltan Arpadffy)
2021-01-04 10:47:26 +01:00
Bram Moolenaar
aa210a3aec
patch 8.2.2272: Vim9: extend() can violate the type of a variable
...
Problem: Vim9: extend() can violate the type of a variable.
Solution: Add the type to the dictionary or list and check items against it.
(closes #7593 )
2021-01-02 15:41:03 +01:00
Bram Moolenaar
38a434f7ba
patch 8.2.2270: warning for size_t to int conversion
...
Problem: Warning for size_t to int conversion. (Randall W. Morris)
Solution: Add a type cast.
2021-01-02 12:45:45 +01:00
Bram Moolenaar
3862ea3f62
patch 8.2.2268: Vim9: list unpack seen as declaration
...
Problem: Vim9: list unpack seen as declaration.
Solution: Check for "var". (closes #7594 )
2021-01-01 21:05:55 +01:00