(Dev) Profiler: "Register fn" with an unknown name throws "fn-sym not found"
まだ誰も着手していません。
評価
調査の方向性
src/main/frontend/handler/profiler.cljs の register-fn! と、src/main/frontend/components/profiler.cljs の :on-click ハンドラーから始めてください。無効な名前と未修飾シンボルの経路を追い、その後、未知の名前で Register fn をクリックしたときに、未捕捉例外が発生することなく、ユーザー向けの拒否が表示されるか、何も実行されないことを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Steps
- Settings > Advanced > turn on Developer mode.
- Open the right sidebar (
t r) and pick "(Dev) Profiler". - Type
ccinto the input next to "Register fn" (any name that is not a loaded function, such as a typo). - Click "Register fn".
Expected
The name is refused with a message, or nothing happens.
Actual
An uncaught exception from the click handler, Error: fn-sym not found: cc (a cljs.core/ExceptionInfo), reported to the window as uncaught. Nothing tells the user why nothing happened.
Cause
register-fn! in src/main/frontend/handler/profiler.cljs throws (ex-info (str "fn-sym not found: " fn-sym) {}) when the name does not resolve, and the button's :on-click in src/main/frontend/components/profiler.cljs calls it without a catch. It also calls (assert (qualified-symbol? fn-sym)), which throws for a name without a namespace in builds that keep asserts.
Found by a monkey test (gremlins.js with trusted Playwright input) of the web build of master 16c4ed1a0, seed 203, action 227. The steps above reproduced it 2 of 2 times on that build.
- 主要言語
- 言語のデータがありません
- スター
- 28
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
logseq/db-test のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
Pressing Delete after double-clicking a journal page's title row throws in keydown-delete-handlerオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
似ている issue
-
feature task
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
RealDevSquad/website-www#1178 ·
-
priority: P2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PedestrianDynamics/pyFDS-Evac#338 ·
メンテナーはふだん 1 日以内に返信
-
accessibility bug revealjs
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
quarto-dev/quarto-cli#14961 ·
メンテナーはふだん 1 日以内に返信
-
[Simple] NavigationBar primary commands do not render AppBarButton.Content when it is a UIElementオープンcontrol/navigationbar kind/bug triage/untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
unoplatform/uno.toolkit.ui#1652 ·
メンテナーはふだん 1 日以内に返信