Multiple Godot projects in one window
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
調査の方向性
1つの Zed ウィンドウで複数の Godot プロジェクトが開かれている場合に、Godot language server がどのように使用されるかをまず追跡します。issue で説明されている 2 プロジェクトのシナリオを再現し、個別のインスタンスをプロジェクトパスに対応付けられるか、または無関係なファイルをスキップすべきかを判断します。別のプロジェクトのファイルによって、型が見つからない、またはファイルが見つからないという診断が発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I'm submitting a...
- Bug report.
- Feature request.
Bug report
What is the current behavior?
If you open multiple Godot projects in one Zed window it uses the connected Godot instance for files from all projects, resulting in file not found errors in Godot and type not found in Zed diagnostics.
What is the expected behavior?
Ideally, Godot language server would handle this, but given that's not under your control here maybe only operate on files in the first project in the list in Zed?
Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.
- Add two Godot projects to a single Zed window.
- Open one of them in Godot for the language server to start.
- Open a file from the other project in Zed.
- See errors reported for missing types.
Feature request
Describe the problem you're trying to solve.
I have been working on a selection of prototypes/demos in Godot and often have extra projects open for reference besides the main one I'm working on at the time, but this results in errors as detailed above.
Tell us which solutions you've explored, the solution you would pick, and why you think it would be the best for everyone.
Aside from avoiding the errors from multiple projects, it would be nice if this extension could handle multiple projects each connected to a separate running Godot instance, but I am not sure how you would go about this.
I think you'd have to detect running Godot instances and check the project paths against them, if that's even provided by the Godot LSP, to direct file diagnostic requests to the correct Godot instance or skip it if no matching instance is found.
Having the dynamic Godot instance detection could also be useful beyond this as it would allow you to run Godot on different ports without reconfiguring the plugin in Zed.
Other
Other information
I'm primarily reporting the issues I've faced with the multiple projects and don't expect multiple to be supported, but thought it would be good to document it all :) I'd love to see it at least filtering out files not a part of the main project though!
- 主要言語
- Tree-sitter Query
- スター
- 207
- フォーク
- 23
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GDQuest/zed-gdscript のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 63/100
GDQuest/zed-gdscript#98 · コメント 6 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
GDQuest/zed-gdscript#97 · コメント 4 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
GDQuest/zed-gdscript#78 · コメント 6 件 · リアクション 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
GDQuest/zed-gdscript#71 · コメント 5 件 ·
-
upstream
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
GDQuest/zed-gdscript#69 · コメント 10 件 · リアクション 1 件 ·
GDQuest/zed-gdscript の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Far-Beyond-Pulsar/Pulsar-Native#988 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
goonstation/goonstation#27983 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
Facepunch/garrysmod-issues#7073 ·