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

Unable to install jsregexp (OS: Windows) #1220

Open
hrcHarry opened this issue Aug 6, 2024 · 3 comments
Open

Unable to install jsregexp (OS: Windows) #1220

hrcHarry opened this issue Aug 6, 2024 · 3 comments

Comments

@hrcHarry
Copy link

hrcHarry commented Aug 6, 2024

Hi, I have checked #569 but I have a slightly different situation.

OS: Windows 10
Neovim Version:
NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1713484068

The installation of Luasnip via Lazy gives the following message

git submodule init
process_begin: CreateProcess(NULL, uname, ...) failed.
process_begin: CreateProcess(NULL, pwd, ...) failed.
process_begin: CreateProcess(NULL, pwd, ...) failed.
git submodule update
make "CC=cc" "INCLUDE_DIR=-I'/deps/lua51_include/'" LDLIBS="" -C "deps/jsregexp"
make[1]: Entering directory `C:/Users/User/AppData/Local/nvim-data/lazy/LuaSnip/deps/jsregexp'
cc -I'/deps/lua51_include/' -O2 -fPIC -c jsregexp.c -o jsregexp.o
process_begin: CreateProcess(NULL, cc -I/deps/lua51_include/ -O2 -fPIC -c jsregexp.c -o jsregexp.o, ...) failed.

make[1]: *** [jsregexp.o] Error 2
make[1]: Leaving directory `C:/Users/User/AppData/Local/nvim-data/lazy/LuaSnip/deps/jsregexp'
make: *** [jsregexp] Error 2

Additional info:
I have installed gcc, g++, zig, and clang (Visual Studio) is installed on my machine before installing Luasnip.

Could anyone help? Thanks.

@JohnWilliston
Copy link

I have the very same issue with a clean install of Neovim and clean pull of the plugin.

@JohnWilliston
Copy link

JohnWilliston commented Oct 25, 2024

Wow. And at the end of the day, it doesn't make one whit of difference. I finally fought through all the nonsense necessary to get the make files and everything building without errors in the right directory and everything. The following screenshot is of me using the MSYS2 UCRT64 command window to do an uninstall and a reinstall in the very LuaSnip folder:

2024-10-24 19_40_35-_c_Users_John_AppData_Local_nvim-data_lazy_LuaSnip

The jsregexp.so file builds just fine and copies to deps/luasnip-jsregexp.so just fine. I can copy both of those *.so files to my nvim/lua folder or anywhere else, but checking health still complains that the jsregexp library is not installed. I seriously don't know how to make this thing happy.

@JohnWilliston
Copy link

JohnWilliston commented Oct 26, 2024

For anyone following this thread, or other other threads about the difficulties of getting jsregexp working with Luasnip on Windows, I posted a reply today on one of the jsregexp issues that explains how I eventually got it working. I hope it might prove useful to others as a guide what not to do and what to do as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants