Scripts without import/export appear to be duplicated
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript
調査の方向性
リンクされたPlaygroundの例で発生している重複を再現し、その後 src/components/editor/monacoTabs.tsx と src/components/editor/setupSolid.ts を調査してください。まず、rootモデルと各タブのモデルがどのように作成されるか、またTypeScriptがimportやexportのないファイルをどのように扱うかを追跡します。これらのスクリプトが重複して表示されなくなり、タブのコンパイルも壊れていなければ完了です。
索引モデルが issue の本文から書いたものです。
説明

As described by @modderme123 in https://github.com/solidjs/solid-playground/pull/103#issuecomment-1121503818:
This is an issue with files that don't have imports or exports and are then treated as a global script file. One trick might be to add a tsconfig flag to ignore output_dont_import.tsx?
I tried adding an exclude option to languages.typescript.typescriptDefaults.setCompilerOptions (in src/components/editor/setupSolid.ts) but it doesn't seem to fix the problem.
I previously wrote:
It seems that
src/components/editor/monacoTabs.tsx'sMonacoTabscreates two models: themodelat the top of the function and themodelfor each tab in tabs. I'm seeing the same source code in both the root model and a tab, which is presumably the source of the problem. [...] Could we remove one of the duplicates (presumably the top-level model?)?
- 主要言語
- TypeScript
- スター
- 246
- フォーク
- 71
- 平均マージ
- 5分
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
solidjs/solid-playground のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
solidjs/solid-playground#194 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
solidjs/solid-playground#190 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
solidjs/solid-playground#179 · コメント 2 件 ·
-
Missing editor fontsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 38/100
solidjs/solid-playground#176 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
solidjs/solid-playground#175 ·
solidjs/solid-playground の issue をすべて見る
似ている issue
-
area: cli bug flake ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
gazetta-studio/gazetta-studio#1772 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
microsoft/playwright#43875 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
calagopus/panel#285 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信