Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant seem to detect project files? [Arch Linux] #20

Open
zerootoad opened this issue Nov 13, 2024 · 10 comments
Open

Cant seem to detect project files? [Arch Linux] #20

zerootoad opened this issue Nov 13, 2024 · 10 comments
Labels
bug Something isn't working help wanted Extra attention is needed zed zed related issue

Comments

@zerootoad
Copy link

Im having a problem where it wont show that im editing project files while it will show im editing per example the settings.json or any other file.

@xhyrom
Copy link
Owner

xhyrom commented Nov 13, 2024

Rust should work. Can you send LSP logs if there are any?

@zerootoad
Copy link
Author

yeah it seems there is a way, i tried again it seems to show the rich presence in the project files but breaks after a bit and wont show anything. i will send the logs below:

2024-11-14T18:09:59.251469158+01:00 [ERROR] failed to load tomorrow theme extension.toml

Caused by:
    No such file or directory (os error 2)
2024-11-14T18:09:59.284731314+01:00 [ERROR] failed to load discord presence extension.toml

Caused by:
    No such file or directory (os error 2)
2024-11-14T18:09:59.286864845+01:00 [INFO] rebuilt extension index in 137.416909ms
2024-11-14T18:09:59.502622157+01:00 [ERROR] No such file or directory (os error 2) about ["/home/zeroo/.config/rust-analyzer"]
2024-11-14T18:10:01.221373568+01:00 [ERROR] No such file or directory (os error 2) about ["/home/zeroo/.config/rust-analyzer"]
2024-11-14T18:10:02.700693508+01:00 [WARN] Generic lsp request to rust-analyzer failed: content modified
2024-11-14T18:10:02.701155635+01:00 [WARN] Generic lsp request to rust-analyzer failed: content modified
2024-11-14T18:10:02.701246559+01:00 [ERROR] content modified
2024-11-14T18:10:02.701294742+01:00 [ERROR] content modified
2024-11-14T18:10:20.042596902+01:00 [INFO] attempting to start language server "taplo", path: "/home/zeroo/Projects/Rust/structs", id: 6
2024-11-14T18:10:20.391935515+01:00 [INFO] starting language server process. binary path: "/home/zeroo/.local/share/zed/extensions/work/toml/taplo-0.9.3/taplo", working directory: "/home/zeroo/Projects/Rust/structs", args: ["lsp", "stdio"]
2024-11-14T18:10:35.920399785+01:00 [ERROR] failed to get git blame data: Failed to blame "src/main.rs"

Caused by:
    Broken pipe (os error 32)
2024-11-14T18:11:47.708895735+01:00 [INFO] Language server with id 6 sent unhandled notification taplo/didChangeSchemaAssociation:
{
  "documentUri": "file:///home/zeroo/Projects/Rust/structs/Cargo.toml",
  "schemaUri": "https://json.schemastore.org/cargo.json",
  "meta": {
    "name": "Cargo Manifest",
    "description": "Manifest for Cargo, the Rust package manager and build tool",
    "source": "catalog",
    "catalog_url": "https://www.schemastore.org/api/json/catalog.json"
  }
}
2024-11-14T18:11:48.246042561+01:00 [INFO] Language server with id 6 sent unhandled notification taplo/didChangeSchemaAssociation:
{
  "documentUri": "file:///home/zeroo/Projects/Rust/structs/Cargo.toml",
  "schemaUri": "https://json.schemastore.org/cargo.json",
  "meta": {
    "name": "Cargo Manifest",
    "description": "Manifest for Cargo, the Rust package manager and build tool",
    "source": "catalog",
    "catalog_url": "https://www.schemastore.org/api/json/catalog.json"
  }
}
2024-11-14T18:11:48.871420109+01:00 [INFO] Language server with id 6 sent unhandled notification taplo/didChangeSchemaAssociation:
{
  "documentUri": "file:///home/zeroo/Projects/Rust/structs/Cargo.toml",
  "schemaUri": "https://json.schemastore.org/cargo.json",
  "meta": {
    "name": "Cargo Manifest",
    "description": "Manifest for Cargo, the Rust package manager and build tool",
    "source": "catalog",
    "catalog_url": "https://www.schemastore.org/api/json/catalog.json"
  }
}
2024-11-14T18:11:50.085418473+01:00 [INFO] Language server with id 6 sent unhandled notification taplo/didChangeSchemaAssociation:
{
  "documentUri": "file:///home/zeroo/Projects/Rust/structs/Cargo.toml",
  "schemaUri": "https://json.schemastore.org/cargo.json",
  "meta": {
    "name": "Cargo Manifest",
    "description": "Manifest for Cargo, the Rust package manager and build tool",
    "source": "catalog",
    "catalog_url": "https://www.schemastore.org/api/json/catalog.json"
  }
}
2024-11-14T18:11:53.426727707+01:00 [INFO] open paths ["/home/zeroo/.config/zed/settings.json"]
2024-11-14T18:11:53.43139342+01:00 [INFO] attempting to start language server "json-language-server", path: "/home/zeroo/.config/zed/settings.json", id: 7
2024-11-14T18:11:53.431521895+01:00 [INFO] attempting to start language server "discord_presence", path: "/home/zeroo/.config/zed/settings.json", id: 8
2024-11-14T18:11:53.431635705+01:00 [INFO] Initializing default prettier with plugins {}
2024-11-14T18:11:53.431801217+01:00 [INFO] using project environment for language server LanguageServerName("json-language-server")
2024-11-14T18:11:53.431922856+01:00 [INFO] starting language server process. binary path: "/home/zeroo/.local/share/zed/node/node-v22.5.1-linux-x64/bin/node", working directory: "/home/zeroo/.config/zed", args: ["/home/zeroo/.local/share/zed/languages/json-language-server/node_modules/vscode-langservers-extracted/bin/vscode-json-language-server", "--stdio"]
2024-11-14T18:11:53.45098551+01:00 [INFO] starting language server process. binary path: "/home/zeroo/.local/share/zed/extensions/work/discord-presence/discord-presence-lsp-v0.5.1/discord-presence-lsp-x86_64-unknown-linux-gnu/discord-presence-lsp", working directory: "/home/zeroo/.config/zed", args: []
2024-11-14T18:12:02.31277374+01:00 [ERROR] oneshot canceled
2024-11-14T18:12:02.312909616+01:00 [ERROR] oneshot canceled

@xhyrom
Copy link
Owner

xhyrom commented Nov 14, 2024

Check out #18 (comment). I know only about this limitation that maybe make you think that it's broken.

@zerootoad
Copy link
Author

i am in write mode yet it doesnt seem to show anything.

@xhyrom
Copy link
Owner

xhyrom commented Nov 19, 2024

That's strange, i'll try to debug the LSP a bit more 🤔.

@lukeludlow
Copy link

+1 on this issue. Would be happy to help debug or share my logs, but I can't find the relevant channel for the extension in the LSP logs.

@dainank
Copy link

dainank commented Dec 31, 2024

@xhyrom Any updates on the status of this?

@xhyrom
Copy link
Owner

xhyrom commented Jan 1, 2025

@xhyrom Any updates on the status of this?

Unfortunately, not yet. This issue probably also happened to me yesterday while I was working on a Python project. The LSP couldn't detect Python files— it simply didn't start. However, opening another file (e.g., asd.txt) triggered the LSP, and it worked normally after that.

I still have no idea what’s causing this behavior or how to resolve it. It might be related to extension.toml, the LSP itself or maybe even zed, but the fact that the LSP didn't start is quite odd.


Also Happy New Year 2025 🥂🎉

@dainank
Copy link

dainank commented Jan 2, 2025

@xhyrom Any updates on the status of this?

Unfortunately, not yet. This issue probably also happened to me yesterday while I was working on a Python project. The LSP couldn't detect Python files— it simply didn't start. However, opening another file (e.g., asd.txt) triggered the LSP, and it worked normally after that.

I still have no idea what’s causing this behavior or how to resolve it. It might be related to extension.toml, the LSP itself or maybe even zed, but the fact that the LSP didn't start is quite odd.

Also Happy New Year 2025 🥂🎉

Glad to see that you can reproduce it. I appreciate that you take the time to respond. I suppose the workaround is to trick it into action via other files that can be detected. Happy new year 🎆 .

@xhyrom xhyrom added bug Something isn't working help wanted Extra attention is needed labels Jan 9, 2025
@xhyrom xhyrom added the zed zed related issue label Feb 21, 2025
@xhyrom
Copy link
Owner

xhyrom commented Feb 21, 2025

zed-industries/zed#25358

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed zed zed related issue
Projects
None yet
Development

No branches or pull requests

4 participants