Checking an exercise takes too long
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- rust
- 領域
- cli, performance, tooling
調査の方向性
まず、演習を編集中に rust-analyzer を有効にした状態で遅延を再現し、次に rustlings がファイルの変更を検出して exercises フォルダー全体でチェックを実行する仕組みを追跡します。編集によってすべての演習に対する不要なチェックが実行されず、h、n、l、q などのコマンドが引き続きすぐに応答すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
This is the video that the issue happens:
https://github.com/user-attachments/assets/00adc400-8e44-4899-9646-a7cff18bd7aa
It can be shown that every time I update the code of an exercise, the rust-analyzer builds the whole exercises folder (it has like 156 exercises and the extension run the code check for every single of them). During this process, I cannot use any command (h, n, l or q). Only after it finishes, rustlings tells me if my solution is correct or not and directs me to the next exercise.
I don't think it's a bug, but rather a code design issue. If I turn of rust-analyzer, it seems the issue's gone but I still have to wait for like 1-2 seconds for rustlings to detect file changes.
Please look into this issue and fix it. Thanks!
System Information
- OS: Windows 10 x64 (10.0.19045)
- VSCode: version 1.19.0
- rust-analyzer: 0.3.2062
- rustlings: 6.1.0
- 主要言語
- Rust
- スター
- 64.6k
- フォーク
- 11.3k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rust-lang/rustlings のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
A-exercises C-enhancement P-low
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
Proposal: German (Deutsch) translation for Community Exercises再び着手できるかも @mo8it が 63 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
rust-lang/rustlings#2445 · コメント 4 件 · リアクション 2 件 · 担当者 1 名 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
rust-lang/rustlings の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
quarto-dev/q2#1155 ·
メンテナーはふだん 1 日以内に返信
-
backlog priority: low ui
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
storytold/vectorcraft#6445 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area: cli kind:docs priority: P3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
tursodatabase/libsql#2312 ·
メンテナーはふだん 11 日以内に返信
-
`NodeOwned::size_in_bytes` does not count the `ChildrenNodesOwned` heap allocation (since #216)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
paritytech/trie#251 ·
メンテナーはふだん 1 日以内に返信