Please consider adding ability to configure path to Godot project subfolder within Zed project folder
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
調査の方向性
まず、GDScript 拡張機能がプロジェクトルートをどのように特定し、Godot 言語サーバーを起動するかを追跡します。より大きな Zed プロジェクト内にネストされた Godot プロジェクトで、.gdshader バッファーも含めて問題を再現します。オプションの相対プロジェクトパスを設定でき、言語サーバーがそれを使用してファイルを誤分類しなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Hopefully the gibberish in the title above makes some sense. Can you please consider adding an optional GDScript extension setting to specify the relative path to Godot project subfolder if not the same as Zed project root folder?
Basically, when your Zed project root and your Godot project root is the same folder everything appears to be working fine. However when your Godot project is a subfolder buried somewhere down the hierarchy of your Zed project folder structure this is where things start to happen.
Most notably, when you open the Zed project you are always greeted by a toast saying "The GDScript Language Server might not work correctly with other projects than the one opened in Godot".
Another issue is that Godot LSP appears to start parsing incorrect file types with GDScript syntax, even its own types. For example, if say you have a .gdshader file open in one of Zed buffers with something like this:
shader_type spatial;
render_mode unshaded, skip_vertex_transform;
Re-saving this buffer without any changes will trigger new LSP errors all over the place in it clearly todo with shader code being treated as .gdscript instead of .gdshader:
None of this appears to happen when both Zed and Godot project roots are the same folder. Potentially also related to https://github.com/GDQuest/zed-gdscript/issues/6.
The debugger appears to work fine regardless of whether Zed project root == Godot Project root or is down the hierarchy. It looks like only Godot LSP is affected.
Now if you ask me why do I even need to have Godot project in a subfolder of Zed project it is just common sense when organising your project structure. Any game will most likely have other related resources that need to live side-by-side with your Godot project but not a direct part of it. You may have a Documents folder for notes and docs, a Blender/Houdini/Whatever folder for modelling, a Gimp/Affinity/Whatever folder for imaging, server backend source code, you name it. Everything sitting in a common project root dir under source control in a single git repo. At least this is how I'm grouping project stuff together where it makes sense.
This way you can hop between your notes, godot code, server backend code, etc related stuff in a single instance of Zed. As well use Zed's built-in Git support for source control.
- 主要言語
- Tree-sitter Query
- スター
- 210
- フォーク
- 23
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず 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
-
documentation good first issue help wanted
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
zmo2s/agent-toolbox#23 ·
-
raised-by:worker
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
medici-finance/assay#2486 ·
メンテナーはふだん 1 日以内に返信
-
bug traffic
難易度 2/5 1時間未満 初心者へのやさしさ 74/100
-
enhancement good first issue Stellar Wave trivial
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
StellarCanary/ProtocolCanary-Fixtures#258 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
mvanhorn/cli-printing-press#4980 ·
メンテナーはふだん 1 日以内に返信