Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

(Dev) Profiler: "Register fn" with an unknown name throws "fn-sym not found"

オープン 初心者向け
#1,359 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
clojure
領域
frontend

調査の方向性

src/main/frontend/handler/profiler.cljs の register-fn! と、src/main/frontend/components/profiler.cljs の :on-click ハンドラーから始めてください。無効な名前と未修飾シンボルの経路を追い、その後、未知の名前で Register fn をクリックしたときに、未捕捉例外が発生することなく、ユーザー向けの拒否が表示されるか、何も実行されないことを確認してください。

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

説明

Steps

  1. Settings > Advanced > turn on Developer mode.
  2. Open the right sidebar (t r) and pick "(Dev) Profiler".
  3. Type cc into the input next to "Register fn" (any name that is not a loaded function, such as a typo).
  4. 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

logseq/db-test のほかの issue

logseq/db-test の issue をすべて見る

似ている issue

Web Dev の issue をもっと見る

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

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