Linting blocks vim for multiple seconds and keeps a lock on the working dir
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- vim
- Ambito
- developer-experience
Direzione di ricerca
Start by tracing how the Syntastic cargo checker invokes Cargo from rust.vim; the report identifies the checker as cargo and says linting blocks Vim while holding the build directory lock. Check the lint invocation and any related tests for synchronous process handling. Done means linting no longer freezes Vim or blocks other Cargo commands while it runs.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi, when i run a syntastic lint while this plugin is installed, vim gets blocked for multiple seconds.
Apparently i am unable to run any other cargo commands while the lint is going on aswell since this plugin seems to lock the directory.
Output from other cargo commands while linting
Blocking waiting for file lock on build directory
- rust.vim version: Vim Plug and rust.vim@4aa69b84c8a58fcec6b6dad6fe244b916b1cf830
Steps to reproduce:
- Use Vim Plug, Syntastic and rust.vim together
- Open any rust project
- Run a syntastic lint
Expected vs. actual behavior:
rust.vim shouldnt lock my working directory and shouldnt freeze vim.
it should run asynchronously in the background
RustInfo
rust.vim Global Variables:
let g:ftplugin_rust_source_path = v:null
let g:loaded_syntastic_rust_cargo_checker = 1
let g:loaded_syntastic_rust_filetype = v:null
let g:loaded_syntastic_rust_rustc_checker = 1
let g:rust_bang_comment_leader = v:null
let g:rust_cargo_avoid_whole_workspace = v:null
let g:rust_clip_command = v:null
let g:rust_conceal = v:null
let g:rust_conceal_mod_path = v:null
let g:rust_conceal_pub = v:null
let g:rust_conceal_mod_path = v:null
let g:rust_conceal_pub = v:null
let g:rust_fold = v:null
let g:rust_last_args = v:null
let b:rust_last_args = []
let g:rust_last_rustc_args = v:null
let b:rust_last_rustc_args = []
let g:rust_original_delimitMate_excluded_regions = v:null
let g:rust_playpen_url = v:null
let g:rust_prev_delimitMate_quotes = v:null
let g:rust_recent_nearest_cargo_tol = v:null
let g:rust_recent_root_cargo_toml = v:null
let b:rust_recent_root_cargo_toml = 'Cargo.toml'
let g:rust_recommended_style = v:null
let g:rust_set_conceallevel = v:null
let g:rust_set_conceallevel=1 = v:null
let g:rust_set_foldmethod = v:null
let g:rust_set_foldmethod=1 = v:null
let g:rust_shortener_url = v:null
let g:rustc_makeprg_no_percent = v:null
let g:rustc_path = v:null
let g:rustfmt_autosave = 1
let g:rustfmt_autosave_if_config_present = v:null
let g:rustfmt_command = 'rustfmt'
let g:rustfmt_emit_files = 1
let g:rustfmt_fail_silently = 0
let g:rustfmt_options = ''
let g:syntastic_extra_filetypes = ['rust']
let g:syntastic_rust_cargo_fname = ''
rustfmt 1.4.37-nightly (003d8d3 2021-10-04)
rustc 1.57.0-nightly (003d8d3f5 2021-10-04)
cargo 1.57.0-nightly (d56b42c54 2021-09-27)
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Übersetzt von nixbld
Features: +acl +iconv +tui
See ":help feature-compile"
System-vimrc-Datei: "$VIM/sysinit.vim"
Voreinstellung für $VIM: "/nix/store/fg64f7rll0i3gk8ay4q2mca1vjk8klvc-neovim-unwrapped-0.6.1/share/nvim"
Run :checkhealth for more info
----
Info from Syntastic:
Syntastic version: 3.10.0-32 (Vim 800, Neovim, Linux)
Info for filetype: rust
Global mode: active
Filetype rust is active
The current file will be checked automatically
Available checkers: cargo rustc
Currently enabled checker: cargo
- Lingua principale
- Vim Script
- Stelle
- 4.2k
- Fork
- 323
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rust-lang/rust.vim
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
-
It's Dead, Jim!Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
-
Remove hard coded edition fallbackForse già presa @alerque l’ha presa 230 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 35/100
-
README.md syntastic to aleAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 55/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
Tutte le issue di rust-lang/rust.vim
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
mglaman/phpstan-drupal#1078 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Python mod.Box[T] annotation gets a false generic_arg edge that replaces the parameter_type one ('is' on tree-sitter nodes)Forse già presa @rohit-jsfreaky l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Graphify-Labs/graphify#5110 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
voyageurworks/launch-guard-pack#29 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
bigbio/sdrf-pipelines#372 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno