summaryrefslogtreecommitdiffstats
path: root/src/eval.c
AgeCommit message (Collapse)Author
2021-12-31patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-27patch 8.2.3916: no error for passing an invalid line number to append()v8.2.3916Bram Moolenaar
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-19patch 8.2.3852: Vim9: not enough testsv8.2.3852Bram Moolenaar
Problem: Vim9: not enough tests. Solution: Also run existing tests for Vim9 script. Make errors more consistent.
2021-12-19patch 8.2.3850: illegal memory access when displaying a partialv8.2.3850Bram Moolenaar
Problem: Illegal memory access when displaying a partial. Solution: Terminate the string with a NUL. (closes #9371)
2021-12-18patch 8.2.3847: illegal memory access when using a lambda with an errorv8.2.3847Bram Moolenaar
Problem: Illegal memory access when using a lambda with an error. Solution: Avoid skipping over the NUL after a string.
2021-12-17patch 8.2.3836: Vim9: comment after expression not skipped to find NLv8.2.3836Bram Moolenaar
Problem: Vim9: comment after expression not skipped to find NL. Solution: After evaluating an expression look for a newline after a # comment.
2021-12-16patch 8.2.3830: error messages are spread outv8.2.3830Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
2021-12-15patch 8.2.3815: Vim9: cannot have a multi-line dict inside a blockv8.2.3815Bram Moolenaar
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-14patch 8.2.3810: Vim9: expr4 test fails on MS-Windowsv8.2.3810Bram Moolenaar
Problem: Vim9: expr4 test fails on MS-Windows. Solution: Do not give an error for a missing function name when skipping.
2021-12-14patch 8.2.3809: Vim9: crash when garbage collecting a nested partialv8.2.3809Bram Moolenaar
Problem: Vim9: crash when garbage collecting a nested partial. (Virginia Senioria) Solution: Set references in all the funcstacks. (closes #9348)
2021-12-14patch 8.2.3807: Vim9: can call import with star directlyv8.2.3807Bram Moolenaar
Problem: Vim9: can call import with star directly. Solution: Check that the import used star.
2021-12-13patch 8.2.3796: the funcexe_T struct members are not named consistentlyv8.2.3796Bram Moolenaar
Problem: The funcexe_T struct members are not named consistently. Solution: Prefix "fe_" to all the members.
2021-12-12patch 8.2.3788: lambda for option that is a function may be freedv8.2.3788Yegappan Lakshmanan
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-11patch 8.2.3783: confusing error for using a variable as a functionv8.2.3783Bram Moolenaar
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-09patch 8.2.3767: crash when using NULL partialv8.2.3767Bram Moolenaar
Problem: Crash when using NULL partial. Solution: Check for NULL.
2021-12-09patch 8.2.3766: converting a funcref to a string leaves out "g:"v8.2.3766Bram Moolenaar
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-06patch 8.2.3751: cannot assign a lambda to an option that takes a functionv8.2.3751Yegappan Lakshmanan
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-11-29patch 8.2.3695: confusing error for missing keyv8.2.3695Bram Moolenaar
Problem: Confusing error for missing key. Solution: Use the actualy key for the error. (closes #9241)
2021-11-22patch 8.2.3650: Vim9: for loop variable can be a list memberv8.2.3650Bram Moolenaar
Problem: Vim9: for loop variable can be a list member. Solution: Check for valid variable name. (closes #9179)
2021-10-23patch 8.2.3560: using freed memory with lambdav8.2.3560Bram Moolenaar
Problem: Using freed memory with lambda. Solution: Do not free lines early, keep them until the expression is finished.
2021-09-09patch 8.2.3418: garbage collection while evaluating may cause troublev8.2.3418Christian Brabandt
Problem: Garbage collection while evaluating may cause trouble. Solution: Disable garbage collection while evaluating an expression. (Christian Brabandt, issue #8848)
2021-08-23patch 8.2.3370: Vim9: no check for white space before type in declarationv8.2.3370Bram Moolenaar
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-15patch 8.2.3347: check for legacy script is incompletev8.2.3347Bram Moolenaar
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-14patch 8.2.3346: Vim9: no error for using "." for concatenation after ":vim9cmd"v8.2.3346Bram Moolenaar
Problem: Vim9: no error for using "." for concatenation after ":vim9cmd". (Naohiro Ono) Solution: Check for Vim9 script syntax. (closes #8756)
2021-08-13patch 8.2.3340: accessing uninitialized pointerv8.2.3340Bram Moolenaar
Problem: Accessing uninitialized pointer. Solution: Set pointer to NULL.
2021-08-13patch 8.2.3339: Vim9: cannot lock a member in a local dictv8.2.3339Bram Moolenaar
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-11patch 8.2.3332: Vim9: cannot assign to range in listv8.2.3332Bram Moolenaar
Problem: Vim9: cannot assign to range in list. Solution: Implement overwriting a list range.
2021-08-05patch 8.2.3297: cannot use all commands inside a {} blockv8.2.3297Bram Moolenaar
Problem: Cannot use all commands inside a {} block after :command and :autocmd. Solution: Do consider \n to separate commands. (closes #8620)
2021-08-04patch 8.2.3284: no error for insert() or remove() changing a locked blobv8.2.3284Sean Dewar
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-01patch 8.2.3264: Vim9: assign test failsv8.2.3264Bram Moolenaar
Problem: Vim9: assign test fails. Solution: Add missing change.
2021-07-29patch 8.2.3249: Vim9: error for re-imported function with default argumentv8.2.3249Bram Moolenaar
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-27patch 8.2.3229: Vim9: runtime and compile time type checks are not the samev8.2.3229Yegappan Lakshmanan
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-26patch 8.2.3224: cannot call script-local function after :vim9cmdv8.2.3224Bram Moolenaar
Problem: Cannot call script-local function after :vim9cmd. (Christian J. Robinson) Solution: Skip over "<SNR>123".
2021-07-25patch 8.2.3216: Vim9: crash when using variable in a loop at script levelv8.2.3216Bram Moolenaar
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-22patch 8.2.3201: crash in testv8.2.3201Bram Moolenaar
Problem: Crash in test. Solution: Initialize "where".
2021-07-22patch 8.2.3200: Vim9: hard to guess where a type error is givenv8.2.3200Bram Moolenaar
Problem: Vim9: hard to guess where a type error is given. Solution: Add the function name where possible. (closes #8608)
2021-07-20patch 8.2.3188: Vim9: argument types are not checked at compile timev8.2.3188Yegappan Lakshmanan
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-18patch 8.2.3179: Vim9: cannot assign to an imported variable at script levelv8.2.3179Bram Moolenaar
Problem: Vim9: cannot assign to an imported variable at script level. Solution: Lookup imported items when assigning.
2021-07-18patch 8.2.3177: Vim9: can not use "for _ in expr" at script levelv8.2.3177Bram Moolenaar
Problem: Vim9: can not use "for _ in expr" at script level. Solution: Skip assignment if the loop variable is "_".
2021-07-18patch 8.2.3175: Vim9: using illegal pointer with nested lambdas.v8.2.3175Bram Moolenaar
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-11patch 8.2.3146: Vim9: line number wrong for :execute argumentv8.2.3146Bram Moolenaar
Problem: Vim9: line number wrong for :execute argument. Solution: Use the line number of the :execute command itself. (closes #8537)
2021-07-11patch 8.2.3144: Vim9: no error when using an invalid value for a line numberv8.2.3144Bram Moolenaar
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-10patch 8.2.3139: functions for string manipulation are spread outv8.2.3139Yegappan Lakshmanan
Problem: Functions for string manipulation are spread out. Solution: Move string related functions to a new source file. (Yegappan Lakshmanan, closes #8470)
2021-07-08patch 8.2.3129: Vim9: imported uninitialized list does not get type checkedv8.2.3129Bram Moolenaar
Problem: Vim9: imported uninitialized list does not get type checked. Solution: Get type from imported variable.
2021-07-08patch 8.2.3128: Vim9: uninitialzed list does not get type checkedv8.2.3128Bram Moolenaar
Problem: Vim9: uninitialzed list does not get type checked. Solution: Set the type when initializing the variable. (closes #8529)
2021-07-05patch 8.2.3113: no error when for loop variable shadows script variablev8.2.3113Bram Moolenaar
Problem: No error when for loop variable shadows script variable. Solution: Check for the error. (closes #8512)
2021-07-05patch 8.2.3111: Vim9: confusing error with extra whitespace before colonv8.2.3111Bram Moolenaar
Problem: Vim9: confusing error with extra whitespace before colon. Solution: Check for colon after white space. (closes #8513)
2021-06-27patch 8.2.3069: error messages are spread outv8.2.3069Bram Moolenaar
Problem: Error messages are spread out. Solution: Move some error messages to errors.h. Use clearer names.
2021-06-27patch 8.2.3064: Vim9: in script cannot set item in uninitialized listv8.2.3064Bram Moolenaar
Problem: Vim9: in script cannot set item in uninitialized list. Solution: When a list is NULL allocate an empty one. (closes #8461)
2021-06-26patch 8.2.3055: strange error for assigning to "x.key" on non-dictionaryv8.2.3055Bram Moolenaar
Problem: Strange error for assigning to "x.key" on non-dictionary. Solution: Add a specific error message. (closes #8451)