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

Elixir formatter and autocomplete does not work (Elixir 1.15, Erlang 26) #6183

Closed
1 task done
shahryarjb opened this issue Jun 22, 2023 · 2 comments
Closed
1 task done
Labels
bug [core label] elixir Elixir programming language support language server An umbrella label for all language servers language An umbrella label for all programming languages syntax behaviors

Comments

@shahryarjb
Copy link

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Before Zed 0.91.3 I have no problem. the formatter and autocomplete not work in my simple elixir project.

The only dependency I have in my project is {:dialyxir, "~> 1.3", only: [:dev], runtime: false}

.formatter.exs

[
  inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]

Without formatter I have this error in my console

** (Mix) Expected one or more files/patterns to be given to mix format or for a .formatter.exs file to exist with an :inputs or :subdirectories key

Environment

Zed: v0.91.3 (stable)
OS: macOS 13.4.0
Memory: 32 GiB
Architecture: x86_64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

2023-06-21T22:54:12 [INFO] ========== starting zed ==========
2023-06-21T22:54:12 [INFO] Opening main db
2023-06-21T22:54:13 [INFO] Opening main db
2023-06-21T22:54:13 [INFO] set status on client 0: Authenticating
2023-06-21T22:54:13 [INFO] set status on client 0: Connecting
2023-06-21T22:54:13 [INFO] Opening main db
2023-06-21T22:54:13 [INFO] Opening main db
2023-06-21T22:54:13 [INFO] set environment variables from shell:/bin/zsh, path:/Users/shahryar/.bun/bin:/usr/local/opt/ruby/bin:/Users/shahryar/.asdf/shims:/Users/shahryar/.asdf/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/shahryar/.bun/bin:/usr/local/opt/ruby/bin:/Users/shahryar/.fig/bin:/Users/shahryar/.local/bin:/usr/local/sbin:/usr/local/sbin
2023-06-21T22:54:13 [INFO] starting language server name:elixir-ls, path:"/Users/shahryar/Documents/Programming/Elixir/mishka_pub", id:0
2023-06-21T22:54:14 [INFO] unhandled notification client/registerCapability:
{
"registrations": [
{
"id": "271d6e2c-a686-4439-9980-40866274d583",
"method": "workspace/didChangeWorkspaceFolders",
"registerOptions": {}
}
]
}
2023-06-21T22:54:15 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2023-06-21T22:54:15 [ERROR] crates/project/src/project.rs:2459: Permission denied (os error 13)
2023-06-21T22:54:16 [INFO] add connection to peer
2023-06-21T22:54:16 [INFO] waiting for server hello
2023-06-21T22:54:16 [INFO] got server hello
2023-06-21T22:54:16 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 186, id: 288825 })
2023-06-21T22:54:16 [INFO] set status on client 0: Connected { peer_id: PeerId { owner_id: 186, id: 288825 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2023-06-22T00:58:56 [ERROR] connection error: delay between messages too long
2023-06-22T00:58:56 [INFO] set status on client 0: ConnectionLost
2023-06-22T00:58:56 [INFO] set status on client 0: Reauthenticating
2023-06-22T00:58:56 [INFO] set status on client 0: Reconnecting
2023-06-22T00:59:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2023-06-22T00:59:03 [INFO] set status on client 0: ConnectionError
2023-06-22T00:59:03 [ERROR] failed to connect timed out trying to establish connection
2023-06-22T00:59:03 [INFO] set status on client 0: ReconnectionError { next_reconnection: Instant { t: 206825934143426 } }
2023-06-22T00:59:03 [INFO] set status on client 0: Reauthenticating
2023-06-22T00:59:03 [INFO] set status on client 0: Reconnecting
2023-06-22T00:59:04 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2023-06-22T00:59:11 [INFO] add connection to peer
2023-06-22T00:59:11 [INFO] waiting for server hello
2023-06-22T00:59:11 [INFO] set status on client 0: ConnectionError
2023-06-22T00:59:11 [ERROR] failed to connect timed out waiting on hello message from server
2023-06-22T00:59:11 [INFO] set status on client 0: ReconnectionError { next_reconnection: Instant { t: 206833079159789 } }
2023-06-22T00:59:11 [INFO] set status on client 0: Reauthenticating
2023-06-22T00:59:11 [INFO] set status on client 0: Reconnecting
2023-06-22T00:59:11 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2023-06-22T00:59:18 [INFO] set status on client 0: ConnectionError
2023-06-22T00:59:18 [ERROR] failed to connect timed out trying to establish connection
2023-06-22T00:59:18 [INFO] set status on client 0: ReconnectionError { next_reconnection: Instant { t: 206840815586356 } }
2023-06-22T00:59:18 [INFO] set status on client 0: Reauthenticating
2023-06-22T00:59:18 [INFO] set status on client 0: Reconnecting
2023-06-22T00:59:19 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2023-06-22T00:59:26 [INFO] set status on client 0: ConnectionError
2023-06-22T00:59:26 [ERROR] failed to connect timed out trying to establish connection
2023-06-22T00:59:26 [INFO] set status on client 0: ReconnectionError { next_reconnection: Instant { t: 206848491770627 } }
2023-06-22T00:59:26 [INFO] set status on client 0: Reauthenticating
2023-06-22T00:59:26 [INFO] set status on client 0: Reconnecting
2023-06-22T00:59:26 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2023-06-22T00:59:30 [INFO] add connection to peer
2023-06-22T00:59:30 [INFO] waiting for server hello
2023-06-22T00:59:30 [INFO] got server hello
2023-06-22T00:59:30 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 2 }, peer id: PeerId { owner_id: 186, id: 293684 })
2023-06-22T00:59:30 [INFO] set status on client 0: Connected { peer_id: PeerId { owner_id: 186, id: 293684 }, connection_id: ConnectionId { owner_id: 0, id: 2 } }
2023-06-22T02:53:09 [ERROR] connection error: delay between messages too long
2023-06-22T02:53:09 [INFO] set status on client 0: ConnectionLost
2023-06-22T02:53:09 [INFO] set status on client 0: Reauthenticating
2023-06-22T02:53:09 [INFO] set status on client 0: Reconnecting
2023-06-22T02:53:12 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2023-06-22T02:53:15 [INFO] set status on client 0: ConnectionError
2023-06-22T02:53:15 [ERROR] failed to connect timed out trying to establish connection
2023-06-22T02:53:15 [INFO] set status on client 0: ReconnectionError { next_reconnection: Instant { t: 213678118162201 } }
2023-06-22T02:53:18 [INFO] set status on client 0: Reauthenticating
2023-06-22T02:53:18 [INFO] set status on client 0: Reconnecting
2023-06-22T02:53:19 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2023-06-22T02:53:23 [INFO] add connection to peer
2023-06-22T02:53:23 [INFO] waiting for server hello
2023-06-22T02:53:23 [INFO] got server hello
2023-06-22T02:53:23 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 3 }, peer id: PeerId { owner_id: 186, id: 298276 })
2023-06-22T02:53:23 [INFO] set status on client 0: Connected { peer_id: PeerId { owner_id: 186, id: 298276 }, connection_id: ConnectionId { owner_id: 0, id: 3 } }
2023-06-22T07:13:45 [ERROR] oneshot canceled
2023-06-22T07:13:52 [INFO] ========== starting zed ==========
2023-06-22T07:13:52 [INFO] Opening main db
2023-06-22T07:13:52 [INFO] set status on client 0: Authenticating
2023-06-22T07:13:52 [INFO] set status on client 0: Connecting
2023-06-22T07:13:52 [INFO] Opening main db
2023-06-22T07:13:52 [INFO] Opening main db
2023-06-22T07:13:52 [INFO] Opening main db
2023-06-22T07:13:52 [INFO] starting language server name:elixir-ls, path:"/Users/shahryar/Documents/Programming/Elixir/mishka_pub", id:0
2023-06-22T07:13:53 [INFO] set environment variables from shell:/bin/zsh, path:/Users/shahryar/.bun/bin:/usr/local/opt/ruby/bin:/Users/shahryar/.asdf/shims:/Users/shahryar/.asdf/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/shahryar/.bun/bin:/usr/local/opt/ruby/bin:/Users/shahryar/.fig/bin:/Users/shahryar/.local/bin:/usr/local/sbin:/usr/local/sbin
2023-06-22T07:13:54 [ERROR] crates/project/src/project.rs:2459: Permission denied (os error 13)
2023-06-22T07:13:54 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2023-06-22T07:13:54 [INFO] unhandled notification client/registerCapability:
{
"registrations": [
{
"id": "fa995cbc-9645-4261-b6fa-8d747d164c18",
"method": "workspace/didChangeWorkspaceFolders",
"registerOptions": {}
}
]
}
2023-06-22T07:13:55 [INFO] add connection to peer
2023-06-22T07:13:55 [INFO] waiting for server hello
2023-06-22T07:13:55 [INFO] got server hello
2023-06-22T07:13:55 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 186, id: 308401 })
2023-06-22T07:13:55 [INFO] set status on client 0: Connected { peer_id: PeerId { owner_id: 186, id: 308401 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2023-06-22T07:30:10 [ERROR] unexpected item event after pane was dropped
2023-06-22T07:34:26 [ERROR] unexpected item event after pane was dropped
2023-06-22T07:34:58 [ERROR] oneshot canceled
2023-06-22T07:35:06 [INFO] ========== starting zed ==========
2023-06-22T07:35:06 [INFO] Opening main db
2023-06-22T07:35:06 [INFO] set status on client 0: Authenticating
2023-06-22T07:35:06 [INFO] set status on client 0: Connecting
2023-06-22T07:35:06 [INFO] Opening main db
2023-06-22T07:35:06 [INFO] Opening main db
2023-06-22T07:35:07 [INFO] Opening main db
2023-06-22T07:35:07 [INFO] set environment variables from shell:/bin/zsh, path:/Users/shahryar/.bun/bin:/usr/local/opt/ruby/bin:/Users/shahryar/.asdf/shims:/Users/shahryar/.asdf/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/shahryar/.bun/bin:/usr/local/opt/ruby/bin:/Users/shahryar/.fig/bin:/Users/shahryar/.local/bin:/usr/local/sbin:/usr/local/sbin
2023-06-22T07:35:07 [INFO] starting language server name:elixir-ls, path:"/Users/shahryar/Documents/Programming/Elixir/mishka_pub", id:0
2023-06-22T07:35:07 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2023-06-22T07:35:08 [INFO] unhandled notification client/registerCapability:
{
"registrations": [
{
"id": "2a066c65-0761-4bc3-8b61-293f75c8fba5",
"method": "workspace/didChangeWorkspaceFolders",
"registerOptions": {}
}
]
}
2023-06-22T07:35:08 [ERROR] unexpected item event after pane was dropped
2023-06-22T07:35:08 [INFO] add connection to peer
2023-06-22T07:35:08 [INFO] waiting for server hello
2023-06-22T07:35:08 [INFO] got server hello
2023-06-22T07:35:08 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 186, id: 309138 })
2023-06-22T07:35:08 [INFO] set status on client 0: Connected { peer_id: PeerId { owner_id: 186, id: 309138 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2023-06-22T07:35:08 [ERROR] crates/project/src/project.rs:2459: Permission denied (os error 13)
2023-06-22T07:37:09 [INFO] starting language server name:json-language-server, path:"/Users/shahryar/Documents/Programming/Elixir/mishka_pub", id:1
2023-06-22T07:38:49 [ERROR] unexpected item event after pane was dropped
2023-06-22T07:44:09 [ERROR] view 194 not found when computing available actions
2023-06-22T07:44:10 [ERROR] view 194 not found when computing available actions

@shahryarjb shahryarjb added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Jun 22, 2023
@moomerman
Copy link
Contributor

moomerman commented Jun 22, 2023

This seems to be related to #6178 due to:

2023-06-22T07:35:08 [ERROR] crates/project/src/project.rs:2459: Permission denied (os error 13)

@JosephTLyons JosephTLyons added elixir Elixir programming language support language An umbrella label for all programming languages syntax behaviors language server An umbrella label for all language servers and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Jun 26, 2023
@JosephTLyons
Copy link
Collaborator

Thanks @moomerman, I think we willl close this out in favor of #6179 (#1760 was closed out in favor of it as well).

@JosephTLyons JosephTLyons transferred this issue from zed-industries/community Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] elixir Elixir programming language support language server An umbrella label for all language servers language An umbrella label for all programming languages syntax behaviors
Projects
None yet
Development

No branches or pull requests

3 participants