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

"Protected" error when re-providing a third party function

オープン
#283 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
領域
documentation

調査の方向性

mischief/function の呼び出しを含む require/provide の例で発生するドキュメントビルドの失敗を再現し、その後、scribblings/composition.scrbl とスタックトレースに示された Scribble の評価パス(scribble/eval.rkt を含む)を調査します。サードパーティ関数が再度 provide されたときに、ドキュメントビルドが dynamic-require: name is protected を発生させなくなれば完了です。

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

説明

bug

Hello,
I attempted to re-provide a function from a third party module (call from mischief/function) in my module, without modification. E.g.:

(require (only-in mischief/function call))
(provide call)

The code built successfully and the tests passed, but the Scribble docs failed to build with dynamic-require: name is protected (full error pasted below).

As a workaround, I manually copied the implementation from the third party source and provided it afresh from within my module without require-ing it; this is the commit that does that. This works, as expected. [Note: I just noticed that there is a redundant deftogether in that commit - this does not affect the error either way (I just checked).]

Environment
Racket 7.8 CS

Full error message:

Note that the error implicates a module (composition.scrbl) that isn't modified by the offending code.

examples: exception raised in example
  error: "dynamic-require: name is protected\n  name: 'syntax-local-expand-observer\n  module: #<resolved-module-path:'#%expobs>"
  context...:
   do-error
   .../scribble/eval.rkt:308:23: with-handlers-handler102
   .../private/more-scheme.rkt:163:2: select-handler/no-breaks
   .../scribble/eval.rkt:356:9
   .../private/map.rkt:40:19: loop
   [repeats 6 more times]
   .../private/manual-vars.rkt:218:40
   .../private/manual-vars.rkt:167:0: *deftogether
   interpret
   loop
   interpret
   [repeats 3 more times]
   proc
   call-in-empty-metacontinuation-frame
   body of "/Users/siddhartha/work/lisp/racket/relation/scribblings/composition.scrbl"
   interpret-expr

  context...:
   do-error
   call-in-empty-metacontinuation-frame
   .../setup/parallel-do.rkt:332:4: !work-done method in list-queue%
   .../setup/parallel-do.rkt:282:17
   .../setup/parallel-do.rkt:236:4
   dynamic-wind
   .../setup/scribble.rkt:138:0: setup-scribblings
   call-in-empty-metacontinuation-frame
   winder-dummy
   .../setup/setup-core.rkt:72:0: setup-core
   call-in-empty-metacontinuation-frame
   body of "/Applications/Racket v7.8/collects/setup/main.rkt"
   temp35_0
   run-module-instance!
   call-in-empty-metacontinuation-frame
   body of "/Applications/Racket v7.8/collects/raco/main.rkt"
主要言語
Racket
スター
250
フォーク
102
平均マージ
11日 9時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

racket/scribble のほかの issue

racket/scribble の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

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

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