:RustFmt Error detected while processing function rustfmt#Format[7]..<SNR>96_RunRustfmt

オープン
#461 コメント 21 件 リアクション 23 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust, vim
領域
tooling

調査の方向性

Start by reading rust.vim's rustfmt#Format and s:RunRustfmt functions, especially the reported line 48 where the location list error occurs. Reproduce with :RustFmt in a Rust file under the reported Neovim version, then trace how the formatter handles its location list; done means formatting succeeds without E776.

索引モデルが issue の本文から書いたものです。

説明

rust.vim version:

4aa69b84c8a58fcec6b6dad6fe244b916b1cf830

Steps to reproduce:
  1. open any rust file
  2. Issue command :RustFmt<CR>
Expected vs. actual behavior:
  • expected: file is correctly formatted
  • actual: instead, the following error is shown:
Error detected while processing function rustfmt#Format[7]..<SNR>96_RunRustfmt:
line   48:
E776: No location list
Environment:
nvim --version   
NVIM v0.6.0-dev+501-gcb15055c2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by misko@prime

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/Users/misko/.local/share/nvim"

Run :checkhealth for more info
主要言語
Vim Script
スター
4.2k
フォーク
323
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rust-lang/rust.vim のほかの issue

rust-lang/rust.vim の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。