v2.1.0 Equipment Entry: Changes on webpage can lead to crash
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- python
調査の方向性
The crash is a ValueError in PiFinder/equipment.py set_active_eyepiece (line 44), where self.eyepieces.index(eyepiece) fails after webserver edits because the in-memory list is stale. Start by reproducing: edit an eyepiece via the webserver (PiFinder server code), then navigate into the eyepiece menu in ui/text_menu.py and check how config.set_option in config.py syncs with equipment.py. Also compare the telescope list path per the issue note. Done means webserver edits are reflected on the device and selecting the edited eyepiece no longer crashes.
索引モデルが issue の本文から書いたものです。
説明
When changing equipment on the entry page of the webserver, changes are not reflected in the Equipment view.
Steps to reproduce:
- Enter tools > equipment > eyepiece
- Leave that screen by moving left
- Open the equipment page in the server
- update the focal length of an eyepiece and save.
Expected behavior:
5. enter the eyepiece screen again.
6. changes from entering are reflected in the view.
Experienced behavior:
5. enter the eyepiece screen again
6. Changes are not reflected there.
7. selecting the changed eyepiece creates a crash
Note: If the selected eyepiece is changed, the change is reflected in "Equipment" on the screen.
Crash report from step 7:
Traceback (most recent call last):
File "/home/grimaldi/Projects/PiFinder/PiFinder/python/PiFinder/main.py", line 876, in
main(log_helper, args.script, args.fps, args.verbose)
File "/home/grimaldi/Projects/PiFinder/PiFinder/python/PiFinder/main.py", line 665, in main
menu_manager.key_right()
File "/home/grimaldi/Projects/PiFinder/PiFinder/python/PiFinder/ui/menu_manager.py", line 469, in key_right
self.stack[-1].key_right()
File "/home/grimaldi/Projects/PiFinder/PiFinder/python/PiFinder/ui/text_menu.py", line 188, in key_right
self.config_object.set_option(config_option, config_value)
File "/home/grimaldi/Projects/PiFinder/PiFinder/python/PiFinder/config.py", line 71, in set_option
self.equipment.set_active_eyepiece(value)
File "/home/grimaldi/Projects/PiFinder/PiFinder/python/PiFinder/equipment.py", line 44, in set_active_eyepiece
self.active_eyepiece_index = self.eyepieces.index(eyepiece)
ValueError: Eyepiece(make='TS', name='Überblick', focal_length_mm=38.0, afov=70, field_stop=0.0) is not in list
Please also check list of telescope for same bug.
- 主要言語
- Jupyter Notebook
- スター
- 253
- フォーク
- 63
- 平均マージ
- 11時間 55分
- マージ済み PR(30日)
- 8
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
brickbots/PiFinder のほかの issue
-
Discord Link Invalidオープン
難易度 1/5 1時間未満 初心者へのやさしさ 67/100
brickbots/PiFinder#682 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
catalogs enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信