-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
Related to #68
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
fn main() { | ||
// delete existing version.txt file created by downloader | ||
let _ = std::fs::remove_file("target/release/version.txt"); | ||
// delete existing version file created by downloader | ||
let _ = std::fs::remove_file("target/release/version"); | ||
|
||
// get current sha from git | ||
let output = std::process::Command::new("git") | ||
.args(["rev-parse", "HEAD"]) | ||
.output() | ||
.unwrap(); | ||
let sha = String::from_utf8(output.stdout).unwrap(); | ||
|
||
// write to version | ||
std::fs::write("target/release/version", sha.trim()).unwrap(); | ||
} |
4 comments
on commit 3ffd31d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Saghen
After this commit I get the following error
Failed to run `config` for blink.cmp
...Dev/lazy/blink.cmp/lua/blink/cmp/fuzzy/download/init.lua:3: module 'blink.cmp.fuzzy.download.git' not found:
no field package.preload['blink.cmp.fuzzy.download.git']
cache_loader: module 'blink.cmp.fuzzy.download.git' not found
cache_loader_lib: module 'blink.cmp.fuzzy.download.git' not found
no file './blink/cmp/fuzzy/download/git.lua'
no file '/home/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1/blink/cmp/fuzzy/download/git.lua'
no file '/usr/local/share/lua/5.1/blink/cmp/fuzzy/download/git.lua'
no file '/usr/local/share/lua/5.1/blink/cmp/fuzzy/download/git/init.lua'
no file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/blink/cmp/fuzzy/download/git.lua'
no file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/blink/cmp/fuzzy/download/git/init.lua'
no file './blink/cmp/fuzzy/download/git.so'
no file '/usr/local/lib/lua/5.1/blink/cmp/fuzzy/download/git.so'
no file '/home/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/blink/cmp/fuzzy/download/git.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './blink.so'
no file '/usr/local/lib/lua/5.1/blink.so'
no file '/home/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/blink.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
# stacktrace:
- /blink.cmp/lua/blink/cmp/fuzzy/download/init.lua:3
- /blink.cmp/lua/blink/cmp/init.lua:20 _in_ **setup**
- lua/lazyvim/plugins/extras/coding/blink.lua:152 _in_ **config**
- lua/lazyvim/plugins/lsp/init.lua:181 _in_ **config**
- vim/_editor.lua:0 _in_ **cmd**
- /persistence.nvim/lua/persistence/init.lua:88 _in_ **load**
- lua/:1
- vim/_editor.lua:0 _in_ **action**
- ~/projects/plugins/snacks.nvim/lua/snacks/dashboard.lua:684
I use LazyVim and have in my options.lua
the following vim.g.lazyvim_blink_main = true
which is equivalent to setting version = false
and build = "cargo build --release"
. So, that means I'm on blink main branch currently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dpetka2001 Seems like the addition of git module of fuzzy downloading is prematurely added to init.lua, without accompanying git.lua file.
If you want a working version until fix, I suggest adding
commit = "129e422175d0e0bd25a0bc32e34455f76b9130ee",
to your blink cmp configuration (somewhere like above build = "cargo build --release",) until the issue is resolved.
This will revert to the most recently working version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I've currently reverted to the commit sha you mentioned as well as a workaround until it gets fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, sorry about that folks!
[REGRESSION]
The file blink/cmp/fuzzy/download/git.lua isn't in the repo yet, causing errors.>
Might have been a little premature there :)