Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some lua tests fail with lua 5.4 #8042

Closed
vp1981 opened this issue Mar 31, 2021 · 6 comments
Closed

Some lua tests fail with lua 5.4 #8042

vp1981 opened this issue Mar 31, 2021 · 6 comments
Labels

Comments

@vp1981
Copy link

vp1981 commented Mar 31, 2021

Describe the bug
Some lua tests:

Failures:                                                                                                                                                                                                                                       
        From test_lua.vim:                                                                                                                                                                                                                      
        Found errors in Test_lua_blob():                                                                                                                                                                                                        
        command line..script /home/vladimir/pkgs/vim/src/vim/src/testdir/runtest.vim[473]..function RunTheTest[44]..Test_lua_blob line 29: Expected '[string "luaeval"]:1: attempt to call a nil value (method ''xyz'')' but got '[string "luaev
al"]:1: method ''xyz'' is not callable (a nil value)': let x = luaeval("lb:xyz(3)")                                                                                                                                                             
        Found errors in Test_lua_buffer_insert():                                                                                                                                                                                               
        command line..script /home/vladimir/pkgs/vim/src/vim/src/testdir/runtest.vim[473]..function RunTheTest[44]..Test_lua_buffer_insert line 11: Expected '[string "vim chunk"]:1: attempt to call a nil value (method ''xyz'')' but got '[st
ring "vim chunk"]:1: method ''xyz'' is not callable (a nil value)': lua vim.buffer():xyz()                                                                                                                                                      
        Found errors in Test_lua_list():                                                                                                                                                                                                        
        command line..script /home/vladimir/pkgs/vim/src/vim/src/testdir/runtest.vim[473]..function RunTheTest[44]..Test_lua_list line 34: Expected '[string "luaeval"]:1: attempt to call a nil value (method ''xyz'')' but got '[string "luaev
al"]:1: method ''xyz'' is not callable (a nil value)': let x = luaeval("ll:xyz(3)")                                                                                                                                                             
        Found errors in Test_lua_luado():                                                                                                                                                                                                       
        command line..script /home/vladimir/pkgs/vim/src/vim/src/testdir/runtest.vim[473]..function RunTheTest[44]..Test_lua_luado line 10: Expected '[string "vim chunk"]:1: attempt to call a nil value (global ''func'')' but got '[string "v
im chunk"]:1: global ''func'' is not callable (a nil value)': luado func()                                                                                                                                                                      
        Found errors in Test_lua_window():                                                                                                                                                                                                      
        command line..script /home/vladimir/pkgs/vim/src/vim/src/testdir/runtest.vim[473]..function RunTheTest[44]..Test_lua_window line 12: Expected '[string "luaeval"]:1: attempt to call a nil value (field ''xyz'')' but got '[string "luae
val"]:1: field ''xyz'' is not callable (a nil value)': let n = luaeval('vim.window().xyz()') 

failed to run with lua 5.4. Seems that lua 5.4 has changed error message. Should I bother about failding tests with lua 5.4 or compile vim vs lua 5.3 only?

Additional context
OS: Archlinux x86_64
GCC: gcc (GCC) 10.2.0
LUA: lua 5.4.3

@brammool
Copy link
Member

brammool commented Mar 31, 2021 via email

@chrisbra
Copy link
Member

chrisbra commented Apr 1, 2021

@vp1981 could you prepare a PR to fix those failures?

@vp1981
Copy link
Author

vp1981 commented Apr 2, 2021

@chrisbra, I'll try to make one on weekend.

@vim-ml
Copy link

vim-ml commented Apr 2, 2021 via email

@lacygoill
Copy link

Possibly fixed by 8.2.2696 and 8.2.2699.

@vp1981
Copy link
Author

vp1981 commented Apr 4, 2021

Hi.
vim 8.2.2706 compiles fine and passes all tests.

@vp1981 vp1981 closed this as completed Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants