Should not call `rustfmt --help` unconditionally
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Estagnada
- Stack de tecnologia
- rust, vim
- Domínio
- developer-experience, tooling
Direção de pesquisa
Start by locating where rust.vim invokes rustfmt --help and trace which code paths run during save. Check the existing tests or test setup for rustfmt invocation behavior. Done means saving and exiting a Cargo project with an uninstalled toolchain does not invoke rustfmt --help; run the relevant tests to confirm.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
- rust.vim version: Latest from git (4aa69b84c8a58fcec6b6dad6fe244b916b1cf830)
Steps to reproduce:
- Create a new Cargo project.
- Create a file
rust-toolchaincontaining:
[toolchain]
channel = "nightly-2022-06-30"
components = ["cargo", "llvm-tools-preview", "rust-src", "rust-std", "rustc", "rustc-dev", "rustfmt"]
- (This assumes you don't have that toolchain installed.)
- Edit the source file.
ZZ
Expected vs. actual behavior:
I expected this to quickly save and exit. Instead, it hung with no visible output. I had to strace it to realize that it was running rustfmt --help, which was updating itself via rustup because of the rust-toolchain file.
Please don't run rustfmt --help unless actually running rustfmt.
Paste debugging info from the Rust Vim plugin via one of the following
commands: :RustInfo, :RustInfoToClipboard, or :RustInfoToFile <filename>.
rust.vim Global Variables:
let g:ftplugin_rust_source_path = v:null
let g:loaded_syntastic_rust_cargo_checker = v:null
let g:loaded_syntastic_rust_filetype = v:null
let g:loaded_syntastic_rust_rustc_checker = v:null
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_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 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 = 0
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 = v:null
rustfmt 1.4.38-stable (a8314ef 2022-06-27)
rustc 1.62.0 (a8314ef7d 2022-06-27)
cargo 1.62.0 (a748cf5a3 2022-06-08)
NVIM v0.7.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by [email protected]
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"
Run :checkhealth for more info
- Linguagem predominante
- Vim Script
- Estrelas
- 4.2k
- Forks
- 323
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de rust-lang/rust.vim
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 76/100
-
It's Dead, Jim!Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
-
Remove hard coded edition fallbackTalvez já em andamento @alerque assumiu há 231 dias. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 35/100
-
README.md syntastic to aleAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 55/100
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
Todas as issues de rust-lang/rust.vim
Issues semelhantes
-
good first issue help wanted python up-for-grabs
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
andrewsiah/agentswarm-data-tasks#121 ·
Mantenedores costumam responder em até 1 dia
-
agent:either area:adapters priority:p3 type:chore
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
jojo-stand36/Tacet#251 ·
Mantenedores costumam responder em até 1 dia
-
environments
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
calkit/calkit#2056 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug needs-triage P1 tier:1-mechanical
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
krakenhavoc/cmd_and_ctrl#5434 ·
Mantenedores costumam responder em até 1 dia
-
enhancement good first issue
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 95/100