Vim crashes when saving files
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- vim
- Domínio
- tooling
Direção de pesquisa
Start by reproducing the save failure with the reported Vim and Vundle setup, then inspect rust.vim's save-related autocommands and the g:rustfmt_autosave setting mentioned in the report. The issue does not identify a failing file or test, and its Vim configuration includes a malformed Rust filetype condition. Done means saving a Rust file works without Vim exiting or leaving a swap file.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
rust.vim version:
I installed the plugin with Vundle. The current commit of the repository it cloned is:
commit 4aa69b84c8a58fcec6b6dad6fe244b916b1cf830 (HEAD -> master, origin/master, origin/HEAD)
Steps to reproduce:
In terminal:
vim hello.rs
In vim:
:w
Expected vs. actual behavior:
- Expected:
save the file - Actual:
editor exits with the following error message:
[4]+ Stopped vim hellp.rs
exit
There are stopped jobs.
Running ls -a reveals that there is still a file called .hellp.rs.swp
Paste debugging info from the Rust Vim plugin via one of the following
commands: :RustInfo, :RustInfoToClipboard, or :RustInfoToFile <filename>.
Running any of the commands listed causes a crash similar to the one caused by saving the file.
Contents of ~/.vimrc:
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'https://github.com/scrooloose/nerdtree'
Plugin 'https://github.com/jiangmiao/auto-pairs'
Plugin 'https://github.com/vim-syntastic/syntastic'
Plugin 'https://github.com/frazrepo/vim-rainbow'
Plugin 'https://github.com/tpope/vim-surround'
Plugin 'https://github.com/psf/black'
Plugin 'https://github.com/Yggdroot/indentLine'
Plugin 'https://github.com/pedrohdz/vim-yaml-folds'
Plugin 'https://github.com/rust-lang/rust.vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
:set nu
:set expandtab
:set shiftwidth=2
:set tabstop=2
:set list
:set listchars=tab:>>
:set smartindent
:set autoindent
:set shell=bash\ -i
" Exit Vim if NERDTree is the only window remaining in the only tab.
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
" Configure .sh files
if &filetype ==# 'sh'
setlocal noexpandtab
endif
" Configure python files
let g:python_recommended_style=0
" Configure rust files
" Also tried calling this 'rs', and removing the section, and setting these manually, and setting them globally
if &filetype ==# 'rust
syntax enable
let g:rustfmt_autosave = 1
endif
" Activate rainbow
let g:rainbow_active = 1
" Configure syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
- 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