-
-
Notifications
You must be signed in to change notification settings - Fork 247
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 #569
Comments
Mhmm that sucks :/ |
No, that's not it, the dynamic library is (on my system at least) located at |
ldd $(which nvim) |grep luajit |
Aha, yes ofc, very nice 👍 |
Is this info enough to identify the problem? |
Yess, thank you! |
I am getting the same error: ❯ make install_jsregexp
git submodule init
git submodule update
# conditional: find lua nvim is linked against, and link against it too.
make INCLUDE_DIR=-I/Users/ts/.local/share/nvim/site/pack/packer/start/LuaSnip/deps/lua51
_include/ LDLIBS=-llua5.1 -C deps/jsregexp
gcc -shared jsregexp.o cutils.o libregexp.o libunicode.o -llua5.1 -o jsregexp.so
ld: library not found for -llua5.1
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [jsregexp.so] Error 1
make: *** [jsregexp] Error 2 I even tried to hardcode: LUA_LIBNAME=luajit5.1.2
JSREGEXP_PATH=deps/jsregexp
jsregexp:
git submodule init
git submodule update
# conditional: find lua nvim is linked against, and link against it too.
make INCLUDE_DIR=-I$(shell pwd)/deps/lua51_include/ LDLIBS=-l${LUA_LIBNAME} -C ${JSREGEXP_PATH} but library still not found:
|
Can you try with an empty |
Ah, my bad, the name should be |
I pulled the code, now the output is:
@kmarius if I make LDLIBS empty output is:
|
I tested on other mac, which has Intel processor (2,2 GHz Quad-Core Intel Core i7), it works!
Maybe previous error somehow related that mac has arm64 architecture? |
Mhm, I pushed once more, maybe that does it 😅
Could you try that again? The current output is very unexpected, it somehow ends up at the target
Oho, could you find out (via |
@sidlatau You deleted too much causing it to use the root Makefile (with the
|
The output now:
|
Output is:
|
Okay, that looks good, do transformations work now? |
On Intel macos brew directory is different: https://docs.brew.sh/Installation
Output:
But build generates |
I am not seeing transformations to work, but maybe I am doing something wrong. "Built Value Type File": {
"prefix": "bvtf",
"body": [
"import 'package:built_collection/built_collection.dart';",
"import 'package:built_value/built_value.dart';",
"",
"part '$TM_FILENAME_BASE.g.dart';",
"",
"abstract class ${TM_FILENAME_BASE/(.*)$/${1:/pascalcase}/} implements Built<${TM_FILENAME_BASE/(.*)$/${1:/pascalcase}/}, ${TM_FILENAME_BASE/(.*)$/${1:/pascalcase}/}Builder> {",
" ${2}",
"",
" ${TM_FILENAME_BASE/(.*)$/${1:/pascalcase}/}._();",
" factory ${TM_FILENAME_BASE/(.*)$/${1:/pascalcase}/}([void Function(${TM_FILENAME_BASE/(.*)$/${1:/pascalcase}/}Builder) updates]) = _$${TM_FILENAME_BASE/(.*)$/${1:/pascalcase}/};",
"}"
],
"description": "Built Value Type File whose name corresponds to the file name"
}, Output: import 'package:built_collection/built_collection.dart';
import 'package:built_value/built_value.dart';
part 'order_notes_state.g.dart';
abstract class order_notes_state implements Built<order_notes_state, order_notes_stateBuilder> {
order_notes_state._();
factory order_notes_state([void Function(order_notes_stateBuilder) updates]) = _$order_notes_state;
}
|
Ahh, nice work, yeah that's exactly what was going wrong 👍
Great, that sounds good |
Ahhh, yeah we don't support all of those yet (only those in the lsp-spec, |
@L3MON4D3 thanks! Should I close this issue now or any work is still pending for it? |
Oh, go ahead, I'm about to push the fix |
See [here](https://docs.brew.sh/Installation), the prefix `/opt/hombrew` is not searched by apples ld, so we just pass it.
Ok, that's odd. We shouldn't need to link against lua since we are building a shared object. In fact, I can build it just fine on my machines (including an arm64) without any lua installed. |
My original problem was solved, so closing an issue. Thanks! |
I was also facing the same issue but after i installed lua51-jsregexp 0.0.7-1 package using pacman the issue was resolved. |
I get an error when trying to install
jsregexp
.OS: macOS Monterey (M1 chip)
Neovim version:
NVIM v0.8.0-dev-2299-gc96020b2b
Build type: Release
LuaJIT 2.1.0-beta3
The text was updated successfully, but these errors were encountered: