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

Đang mở
#461 21 bình luận 23 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust, vim
Lĩnh vực
tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Vim Script
Star
4.2k
Fork
323
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rust-lang/rust.vim

Tất cả issue của rust-lang/rust.vim

Issue tương tự

Thêm issue về DevTools

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.