actboy168 / lua-debug

Lua Debug Adapter for Visual Studio Code
MIT License
439 stars 95 forks source link

How to clean uninstall luamake and lua-debug #297

Open MikeLemo1 opened 3 months ago

MikeLemo1 commented 3 months ago

I accidently installed and remove luamake and lua-debug (maybe in wront directories because I didn't make to complete the installation and I initially installed the repos at ~/Downloads/ and then tried '/usr/share/' and then deleted it becuase of error) and now the symbolic links and configs of luamake are messed up on the machine and it't not something the luamake/compile/install.sh fixes, only saying

ninja: no work to do.
luamake alias already defined in /home/pong/.bashrc
Done.

sudo ./compile/build.sh -t clean doesn't do much either (trying to install it in '~/.local/share/') How do you clean it and what is the general legacy/default install location on linux ubuntu for nvim lua dap useage?

actboy168 commented 3 months ago

vim /home/pong/.bashrc Delete the code containing luamake.

MikeLemo1 commented 3 months ago

vim /home/pong/.bashrc Delete the code containing luamake.

deleting the line :alias luamake="~/.local/share/luamake/luamake" doesn't do the trick... and running ./luamake after install prints: Please use './compile/install.sh'.

actboy168 commented 3 months ago

If you want to compile luamake, please use ./compile/install.sh'. If you want to compile lua-debug, please switch to the directory of lua-debug.

MikeLemo1 commented 3 months ago

.... When I run ./luamake after the install.sh it prints me the error Please use './compile/install.sh'. and wont correct the symbolic link problem... That's what I'm trying to say

MikeLemo1 commented 3 months ago

I removed the line from "/root/.bashrc' using sudo -i but still it'll print (when trying to download dependencies for lua-debug using luamake luamake lua compile/download_deps.lua) the following: create_directories: "/usr/share/lua-debug/build/linux-x64/debug/lua54": (generic:13)Permission denied which running this with sudo-i manages to help it a little and start the build but not finish it without error like the following:

ninja: build stopped: subcommand failed.

[359/440] Compile C   build/linux-x64/release/obj/luajit/lua/lib_math.obj
FAILED: build/linux-x64/release/obj/luajit/lua/lib_math.obj 
gcc -MMD -MT build/linux-x64/release/obj/luajit/lua/lib_math.obj -MF build/linux-x64/release/obj/luajit/lua/lib_math.obj.d -std=c89 -O2 -Wall -I3rd/lua/luajit/src -Ibuild/linux-x64/release/bin -DLUAJIT_UNWIND_EXTERNAL -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DLUA_MULTILIB="lib" -DLUAJIT_ENABLE_LUA52COMPAT -DLUAJIT_NUMMODE=2 -DNDEBUG -fno-stack-protector -U_FORTIFY_SOURCE -fPIC -o build/linux-x64/release/obj/luajit/lua/lib_math.obj -c 3rd/lua/luajit/src/lib_math.c
In file included from 3rd/lua/luajit/src/lj_obj.h:13,
                 from 3rd/lua/luajit/src/lib_math.c:15:
3rd/lua/luajit/src/lj_def.h:136:25: warning: type defaults to ‘int’ in declaration of ‘inline’ [-Wimplicit-int]

Any idea what else do I need to clean / config / install to get luamake and lua-debug installed correctly?