mfussenegger / nvim-dap-python

An extension for nvim-dap, providing default configurations for python and methods to debug individual test methods or classes.
GNU General Public License v3.0
571 stars 51 forks source link

Lua version not up to date #150

Closed JulesVerne22 closed 5 months ago

JulesVerne22 commented 5 months ago

When I try to install nvim-dap-python via lazy, I get the error that it requires lua version 5.1 and I'm using lua5.4. Why does it require an older version of lua? Thanks in advance!

Kang-geophysics commented 5 months ago

image Is this same problem?

JulesVerne22 commented 5 months ago

Yeah

JulesVerne22 commented 5 months ago

I think I just discovered that brew is just installing the wrong lua version for the luarocks version it installs.

Kang-geophysics commented 5 months ago

I downgraded lua. I meet another problem....

    compilation terminated.
    Fetching Lua 5.1.5 (cached)
    Verifying SHA256 checksum
    Building Lua 5.1.5
    Skipping 1 patch, use --patch to apply it
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o lapi.o lapi.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o lauxlib.o lauxlib.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o lbaselib.o lbaselib.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o lcode.o lcode.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o ldblib.o ldblib.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o ldebug.o ldebug.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o ldo.o ldo.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o ldump.o ldump.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o lfunc.o lfunc.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o lgc.o lgc.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o linit.o linit.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o liolib.o liolib.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o llex.o llex.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o lmathlib.o lmathlib.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o lmem.o lmem.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o loadlib.o loadlib.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o lobject.o lobject.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o lopcodes.o lopcodes.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o loslib.o loslib.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o lparser.o lparser.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o lstate.o lstate.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o lstring.o lstring.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o lstrlib.o lstrlib.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o ltable.o ltable.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o ltablib.o ltablib.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o ltm.o ltm.c
    Running gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o lua.o lua.c
    Error: got exitcode 1 from command gcc -O2 -Wall -Wextra -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE -c -o lua.o lua.c
JulesVerne22 commented 5 months ago

I was able to download and install lua5.1, probably could also manually install the correct version of luarocks. I'm just going to wait for brew to fix its installation though and leave python dap uninstalled until then.

folke commented 5 months ago

luarocks is no longer needed for nvim-dap-python. You can update lazy.nvim and close this issue...

JulesVerne22 commented 5 months ago

@folke is correct. I'm closing the issue.