noib3 / nvim-completion

:zap: An async autocompletion framework for Neovim
MIT License
503 stars 13 forks source link

no argument named `profile` #4

Closed KadoBOT closed 2 years ago

KadoBOT commented 2 years ago

The run command is failing here. See the output below:

➜ cargo build --release
   Compiling proc-macro2 v1.0.36
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.86
   Compiling cc v1.0.73
   Compiling serde_derive v1.0.136
   Compiling serde v1.0.136
   Compiling memchr v2.4.1
   Compiling autocfg v1.1.0
   Compiling pkg-config v0.3.24
   Compiling erased-serde v0.3.20
   Compiling once_cell v1.9.0
   Compiling rustc-hash v1.1.0
   Compiling compleet v0.1.0 (/[HIDDEN_PATH]/nvim-compleet)
error: there is no argument named `profile`
  --> build.rs:10:15
   |
10 |     @cp ./target/{profile}/libcompleet.so ./lua/compleet.so
   |                  ^^^^^^^^^

error: there is no argument named `profile`
  --> build.rs:11:15
   |
11 |     @cp ./target/{profile}/deps/*.rlib ./lua/deps
   |                  ^^^^^^^^^

error: could not compile `compleet` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
noib3 commented 2 years ago

What your rustc --version? I believe that syntax is only supported for 1.58+.

KadoBOT commented 2 years ago

That was it. I made sure to update to the latest version while trying, but didn't notice that there was two install paths, and the old one was the one being used. Thanks!

KadoBOT commented 2 years ago

OK, I was able to run the cargo build --release successfully although, I don't see the .so file:

nvim-compleet on master ≡
➜ make install
cp: ./target/release/libcompleet.so: No such file or directory
make: *** [install] Error 1
nvim-compleet on master ≡ x
➜ ls target/release
 build   deps   examples   incremental   libcompleet.d   libcompleet.dylib
nvim-compleet on master ≡
➜ rustc --version
rustc 1.59.0 (9d1b2106e 2022-02-23)
noib3 commented 2 years ago

Mh, try renaming libcompleet.dylib to libcompleet.so and run make install again.