xhyrom / zed-discord-presence

extension for zed that adds support for discord rich presence using lsp
https://git.sr.ht/~hyro/zed-discord-presence
GNU General Public License v3.0
104 stars 5 forks source link

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

Open zerootoad opened 2 days ago

zerootoad commented 2 days ago

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.

zerootoad commented 2 days ago

Yee dont mind my servers and pfp

image image

xhyrom commented 2 days ago

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

zerootoad commented 1 day ago

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 commented 1 day ago

Check out https://github.com/xhyrom/zed-discord-presence/issues/18#issuecomment-2442439419. I know only about this limitation that maybe make you think that it's broken.