-
Notifications
You must be signed in to change notification settings - Fork 4
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
Rust debug message make nvim think something went wrong #21
Comments
One idea coming to my mind is to use
|
I fixed the issue on |
I still have the same issue after updating to the latest master, eg:
|
Strange, because it does work for me with CLI on syntax on
filetype plugin on
packadd! himalaya
" native, fzf or telescope
let g:himalaya_executable = '/path/to/himalaya/target/debug/himalaya'
let g:himalaya_config_path = '/path/to/config.toml'
let g:himalaya_folder_picker = 'telescope'
let g:himalaya_folder_picker_telescope_preview = v:false
let g:himalaya_complete_contact_cmd = 'echo test@localhost' |
I finally got time to get back to this. I updated himalaya to master, build it with cargo to enable the keyring feature I need, and made sure it’s the one picked by nvim. {
"pimalaya/himalaya-vim",
config = function()
vim.g.himalaya_executable = "~/.cargo/bin/himalaya"
vim.g.himalaya_folder_picker = "telescope"
vim.g.himalaya_folder_picker_telescope_preview = false
end,
}, Listing the envelopes works fine, but as soon as I perform an action, eg deleting an email, the debug comes through and nvim flags it as en error:
Note the the action is actually performed as the next time I open himalaya vim, the email in gone. |
I still cannot reproduce. My intuition is that your Lua config bypasses the Vim's one. If you manually add vim.g.himalaya_executable = "RUST_LOG=off ~/.cargo/bin/himalaya" |
Thanks a lot for your patience! I had tried this before without success, but I tried again right now, and it’s working great! sorry for the noise… |
I tried using a new build of himalaya with neovim and the rust log debug coming on stderr confuse neovim in that it believes something went wrong.
Eg when sending an email:
A solution is to make an intermediate shell script the quiets down debug messages:
himalaya_fix.sh
and in nvim/init.lua:
setting the environment variable inside the init.lua file did not work, neither did setting the variable at nvim call.
The text was updated successfully, but these errors were encountered: