summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_vim9_import.vim
AgeCommit message (Collapse)Author
2022-09-03patch 9.0.0366: cannot use import->Func() in lambdav9.0.0366Bram Moolenaar
Problem: Cannot use import->Func() in lambda. (Israel Chauca Fuentes) Solution: Adjust how an expression in a lambda is parsed. (closes #11042)
2022-09-02patch 9.0.0363: common names in test files causes tests to be flakyv9.0.0363Bram Moolenaar
Problem: Common names in test files causes tests to be flaky. Solution: Use more specific names.
2022-08-29patch 9.0.0323: using common name in tests leads to flaky testsv9.0.0323Bram Moolenaar
Problem: Using common name in tests leads to flaky tests. Solution: Rename files and directories to be more specific.
2022-08-28patch 9.0.0303: it is not easy to get information about a scriptv9.0.0303Yegappan Lakshmanan
Problem: It is not easy to get information about a script. Solution: Make getscriptinf() return the version. When selecting a specific script return functions and variables. (Yegappan Lakshmanan, closes #10991)
2022-08-25patch 9.0.0269: getscriptinfo() does not include the versionv9.0.0269Yegappan Lakshmanan
Problem: getscriptinfo() does not include the version. Cannot select entries by script name. Solution: Add the "version" item and the "name" argument. (Yegappan Lakshmanan, closes #10962)
2022-08-24patch 9.0.0257: "->" in ":scriptnames" output not tested yetv9.0.0257Bram Moolenaar
Problem: "->" in ":scriptnames" output not tested yet. Solution: Add a check.
2022-08-24patch 9.0.0253: a symlink to an autoload script results in two entriesv9.0.0253Bram Moolenaar
Problem: A symlink to an autoload script results in two entries in the list of scripts, items expected in one are actually in the other. Solution: Have one script item refer to the actually sourced one. (closes #10960)
2022-08-22patch 9.0.0244: cannot easily get the list of sourced scriptsv9.0.0244Yegappan Lakshmanan
Problem: Cannot easily get the list of sourced scripts. Solution: Add the getscriptinfo() function. (Yegappan Lakshmanan, closes #10957)
2022-06-26patch 8.2.5165: import test fails because 'diffexpr' isn't resetv8.2.5165Bram Moolenaar
Problem: Import test fails because 'diffexpr' isn't reset. Solution: Reset 'diffexpr'.
2022-05-26patch 8.2.5025: Vim9: a few lines not covered by testsv8.2.5025Bram Moolenaar
Problem: Vim9: a few lines not covered by tests. Solution: Add a few tests.
2022-04-24patch 8.2.4821: crash when imported autoload script was deletedv8.2.4821Bram Moolenaar
Problem: Crash when imported autoload script was deleted. Solution: Initialize local variable. (closes #10274) Give a more meaningful error message.
2022-04-23patch 8.2.4809: various things no6 properly testedv8.2.4809Yegappan Lakshmanan
Problem: Various things no6 properly tested. Solution: Add various test cases. (Yegappan Lakshmanan, closes #10259)
2022-04-15patch 8.2.4755: cannot use <SID>FuncRef in completion specv8.2.4755Bram Moolenaar
Problem: Cannot use <SID>FuncRef in completion spec. Solution: Dereference a function name in another way. (closes #10197)
2022-04-14patch 8.2.4751: mapping <SID>name.Func does not work for autoload scriptv8.2.4751Bram Moolenaar
Problem: Mapping <SID>name.Func does not work for script in autoload directory. Solution: Use the # form for a script in the autoload directory. (closes #10186)
2022-04-14patch 8.2.4748: cannot use an imported function in a mappingv8.2.4748Bram Moolenaar
Problem: Cannot use an imported function in a mapping. Solution: Recognize <SID>name.Func.
2022-04-03patch 8.2.4680: build failure without +postscriptv8.2.4680Bram Moolenaar
Problem: Build failure without +postscript. Solution: Use another error message.
2022-04-03patch 8.2.4678: Vim9: not all code is testedv8.2.4678Bram Moolenaar
Problem: Vim9: not all code is tested. Solution: Add a few more tests.
2022-03-31patch 8.2.4656: Vim9: can't use item from "import autoload" with autoload dirv8.2.4656Bram Moolenaar
Problem: Vim9: can't use items from "import autoload" with autoload directory name. Solution: Let sn_autoload_prefix overrule sn_import_autoload. (closes #10054)
2022-03-31patch 8.2.4653: "import autoload" does not check the file namev8.2.4653Bram Moolenaar
Problem: "import autoload" does not check the file name. Solution: Give an error if the file is not readable. (closes #10049)
2022-03-30patch 8.2.4650: "import autoload" only works with using 'runtimepath'v8.2.4650Bram Moolenaar
Problem: "import autoload" only works with using 'runtimepath'. Solution: Also support a relative and absolute file name.
2022-03-21patch 8.2.4606: test fails because of changed error messagev8.2.4606Bram Moolenaar
Problem: Test fails because of changed error message. Solution: Update the expected error message
2022-02-21patch 8.2.4429: using script-local function from the wrong scriptv8.2.4429Bram Moolenaar
Problem: Using script-local function from the wrong script when using a partial. (Yegappan Lakshmanan) Solution: Include the script ID in the partial name.
2022-02-16patch 8.2.4404: Vim9: some code not covered by testsv8.2.4404Bram Moolenaar
Problem: Vim9: some code not covered by tests. Solution: Add a few specific test cases.
2022-02-12patch 8.2.4360: Vim9: allowing use of "s:" leads to inconsistenciesv8.2.4360Bram Moolenaar
Problem: Vim9: allowing use of "s:" leads to inconsistencies. Solution: Disallow using "s:" in Vim9 script at the script level.
2022-02-08patch 8.2.4330: Vim9: no error if script imports itselfv8.2.4330Bram Moolenaar
Problem: Vim9: no error if script imports itself. Solution: Give an error when a script imports itself.
2022-02-06patch 8.2.4308: Vim9: cannot list autoload functionv8.2.4308Bram Moolenaar
Problem: Vim9: cannot list autoload function. Solution: Don't give an error for using # when listing a function. (closes #9703)
2022-01-31patch 8.2.4277: Vim9: an import does not shadow a command modifierv8.2.4277Bram Moolenaar
Problem: Vim9: an import does not shadow a command modifier. Solution: Do not accept a command modifier followed by a dot.
2022-01-30patch 8.2.4264: Vim9: can use old style autoload function namev8.2.4264Bram Moolenaar
Problem: Vim9: can use old style autoload function name. Solution: Give an error for old style autoload function name.
2022-01-30patch 8.2.4260: Vim9: can still use a global function without g:v8.2.4260Bram Moolenaar
Problem: Vim9: can still use a global function without g: at the script level. Solution: Also check for g: at the script level. (issue #9637)
2022-01-29patch 8.2.4257: Vim9: finding global function without g: prefix inconsistentv8.2.4257Bram Moolenaar
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-25patch 8.2.4216: Vim9: cannot use a function from an autoload import directlyv8.2.4216Bram Moolenaar
Problem: Vim9: cannot use a function from an autoload import directly. Solution: Add the AUTOLOAD instruction to figure out at runtime. (closes #9620)
2022-01-24patch 8.2.4209: partial in 'opfunc' cannot use an imported functionv8.2.4209Bram Moolenaar
Problem: partial in 'opfunc' cannot use an imported function. Solution: Also expand the function name in a partial. (closes #9614)
2022-01-24patch 8.2.4202: Vim9: cannot export function that exists globallyv8.2.4202Bram Moolenaar
Problem: Vim9: cannot export function that exists globally. Solution: When checking if a function already exists only check for script-local functions. (closes #9615)
2022-01-24patch 8.2.4200: some tests do not clean up properlyv8.2.4200Yegappan Lakshmanan
Problem: Some tests do not clean up properly. Solution: Delete created files. (Yegappan Lakshmanan, closes #9611)
2022-01-23patch 8.2.4197: cannot use an import in the "expr" part of 'spellsuggest'v8.2.4197Bram Moolenaar
Problem: Cannot use an import in the "expr" part of 'spellsuggest'. Solution: Set the script context when evaluating "expr" of 'spellsuggest'.
2022-01-23patch 8.2.4193: cannot use an import in 'charconvert'v8.2.4193Bram Moolenaar
Problem: Cannot use an import in 'charconvert'. Solution: Set the script context when evaluating 'charconvert'. Also expand script-local functions in 'charconvert'.
2022-01-23patch 8.2.4192: cannot use an import in 'printexpr'v8.2.4192Bram Moolenaar
Problem: Cannot use an import in 'printexpr'. Solution: Set the script context when evaluating 'printexpr'.
2022-01-22patch 8.2.4186: cannot use an import in 'patchexpr'v8.2.4186Bram Moolenaar
Problem: Cannot use an import in 'patchexpr'. Solution: Set the script context when evaluating 'patchexpr'. Do not require 'patchexpr' to return a bool, it was ignored anyway.
2022-01-22patch 8.2.4185: cannot use an import in 'indentexpr'v8.2.4185Bram Moolenaar
Problem: Cannot use an import in 'indentexpr'. Solution: Set the script context when evaluating 'indentexpr'
2022-01-22patch 8.2.4184: cannot use an import in 'includeexpr'v8.2.4184Bram Moolenaar
Problem: Cannot use an import in 'includeexpr'. Solution: Set the script context when evaluating 'includeexpr'
2022-01-22patch 8.2.4183: cannot use an import in 'formatexpr'v8.2.4183Bram Moolenaar
Problem: Cannot use an import in 'formatexpr'. Solution: Set the script context when evaluating 'formatexpr'.
2022-01-22patch 8.2.4181: Vim9: cannot use an import in 'diffexpr'v8.2.4181Bram Moolenaar
Problem: Vim9: cannot use an import in 'diffexpr'. Solution: Set the script context when evaluating 'diffexpr'. Do not require 'diffexpr' to return a bool, it was ignored anyway.
2022-01-22patch 8.2.4179: 'foldtext' is evaluated in the current script contextv8.2.4179Bram Moolenaar
Problem: 'foldtext' is evaluated in the current script context. Solution: Use the script context where the option was set.
2022-01-22patch 8.2.4177: Vim9: autoload script not loaded after "vim9script noclear"v8.2.4177Bram Moolenaar
Problem: Vim9: autoload script not loaded after "vim9script noclear". Solution: Check IMP_FLAGS_AUTOLOAD properly.
2022-01-22patch 8.2.4176: Vim9: cannot use imported function with call()v8.2.4176Bram Moolenaar
Problem: Vim9: cannot use imported function with call(). Solution: Translate the function name. (closes #9590)
2022-01-21patch 8.2.4174: Vim9: can use an autoload name in normal scriptv8.2.4174Bram Moolenaar
Problem: Vim9: can use an autoload name in normal script. Solution: Disallow using an autoload name.
2022-01-21patch 8.2.4173: cannot use an import in 'foldexpr'v8.2.4173Bram Moolenaar
Problem: Cannot use an import in 'foldexpr'. Solution: Set the script context to where 'foldexpr' was set. (closes #9584) Fix that the script context was not set for all buffers.
2022-01-21patch 8.2.4171: cannot invoke option function using autoload importv8.2.4171Bram Moolenaar
Problem: Cannot invoke option function using autoload import. Solution: Expand the import to an autoload function name. (closes #9578)
2022-01-20patch 8.2.4167: Vim9: error message for old style importv8.2.4167Bram Moolenaar
Problem: Vim9: error message for old style import. Solution: Use another error message. Add a test.
2022-01-20patch 8.2.4163: no error for omitting function name after autoload prefixv8.2.4163Bram Moolenaar
Problem: No error for omitting function name after autoload prefix. Solution: Check for missing function name. (issue #9577)