Skip to content

Error when client sends null settings #540

@rmand97

Description

@rmand97

Using the Zed editor on Windows, but code in WSL.

Seems like it never finishes initializing

Logs

14:27:58.357 instance_id=19D48F3182F [debug] sent notification server -> client window/logMessage

14:27:58.356 instance_id=19D48F3182F [info] Received request textDocument/hover before engine for PokerMind was initialized. Ignoring.

14:27:58.357 instance_id=19D48F3182F [debug] handled request client -> server textDocument/hover in 3ms

14:28:25.770 instance_id=19D49043516 [info] Expert v0.1.0-3fe1565 starting on stdio

14:28:25.785 instance_id=19D49043516 [info] Starting NodePortMapper on nonode@nohost

14:28:25.789 instance_id=19D49043516 [info] Child XPForge.NodePortMapper of Supervisor XPExpert.Supervisor started
Pid: #PID<0.163.0>
Start Call: XPForge.NodePortMapper.start_link([])
Restart: :permanent
Shutdown: 5000
Type: :worker

14:28:25.791 instance_id=19D49043516 [info] Child XPForge.Document.Store of Supervisor XPExpert.Supervisor started
Pid: #PID<0.164.0>
Start Call: XPForge.Document.Store.start_link([derive: [analysis: &XPForge.Ast.analyze/1]])
Restart: :permanent
Shutdown: 5000
Type: :worker

14:28:25.792 instance_id=19D49043516 [info] Child XPExpert.ProjectSupervisor of Supervisor XPExpert.Supervisor started
Pid: #PID<0.165.0>
Start Call: DynamicSupervisor.start_link([name: XPExpert.ProjectSupervisor, strategy: :one_for_one])
Restart: :permanent
Shutdown: :infinity
Type: :supervisor

14:28:25.792 instance_id=19D49043516 [info] Child XPExpert.DynamicSupervisor of Supervisor XPExpert.Supervisor started
Pid: #PID<0.166.0>
Start Call: DynamicSupervisor.start_link([name: XPExpert.DynamicSupervisor])
Restart: :permanent
Shutdown: :infinity
Type: :supervisor

14:28:25.800 instance_id=19D49043516 [info] Child XPGenLSP.Assigns of Supervisor XPExpert.Supervisor started
Pid: #PID<0.167.0>
Start Call: XPGenLSP.Assigns.start_link([name: XPExpert.Assigns])
Restart: :permanent
Shutdown: 5000
Type: :worker

14:28:25.801 instance_id=19D49043516 [info] Child :expert_task_queue of Supervisor XPExpert.Supervisor started
Pid: #PID<0.168.0>
Start Call: Task.Supervisor.start_link([name: :expert_task_queue])
Restart: :permanent
Shutdown: :infinity
Type: :supervisor

14:28:25.803 instance_id=19D49043516 [info] Child XPGenLSP.Buffer of Supervisor XPExpert.Supervisor started
Pid: #PID<0.169.0>
Start Call: XPGenLSP.Buffer.start_link([name: XPExpert.Buffer])
Restart: :permanent
Shutdown: 5000
Type: :worker

14:28:25.803 instance_id=19D49043516 [info] Child XPExpert.ActiveProjects of Supervisor XPExpert.Supervisor started
Pid: #PID<0.170.0>
Start Call: XPExpert.ActiveProjects.start_link()
Restart: :permanent
Shutdown: 5000
Type: :worker

14:28:25.804 instance_id=19D49043516 [debug] [name: XPExpert, buffer: XPExpert.Buffer, task_supervisor: :expert_task_queue, dynamic_supervisor: XPExpert.DynamicSupervisor, assigns: XPExpert.Assigns]

14:28:25.815 instance_id=19D49043516 [info] Child XPExpert of Supervisor XPExpert.Supervisor started
Pid: #PID<0.171.0>
Start Call: XPExpert.start_link([name: XPExpert, buffer: XPExpert.Buffer, task_supervisor: :expert_task_queue, dynamic_supervisor: XPExpert.DynamicSupervisor, assigns: XPExpert.Assigns])
Restart: :permanent
Shutdown: 500
Type: :worker

14:28:25.816 instance_id=19D49043516 [info] Application xp_expert started at :nonode@nohost

14:28:26.107 instance_id=19D49043516 [debug] handled request client -> server initialize in 271ms

14:28:26.119 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.119 instance_id=19D49043516 [info] Server initialized, registering capabilities

14:28:26.128 instance_id=19D49043516 [debug] sent request server -> client client/registerCapability

14:28:26.144 instance_id=19D49043516 [debug] handled notification client -> server initialized in 31ms

14:28:26.144 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.144 instance_id=19D49043516 [info] Starting project

14:28:26.158 instance_id=19D49043516 [info] Child {XPExpert.EngineSupervisor, "PokerMind::47211593"} of Supervisor :"PokerMind::47211593::supervisor" started
Pid: #PID<0.176.0>
Start Call: XPExpert.EngineSupervisor.start_link(%XPForge.Project{root_uri: "file:///home/rma97/code/PokerMind", mix_exs_uri: "file:///home/rma97/code/PokerMind/mix.exs", mix_project?: true, mix_env: nil, mix_target: nil, env_variables: %{}, project_module: nil, entropy: 3058})
Restart: :permanent
Shutdown: 5000
Type: :worker

14:28:26.161 instance_id=19D49043516 [debug] sent request server -> client window/workDoneProgress/create

14:28:26.162 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.162 instance_id=19D49043516 [error] ** (FunctionClauseError) no function clause matching in XPExpert.Configuration.apply_config_change/2
    (xp_expert 0.1.0-3fe1565) lib/expert/configuration.ex:105: XPExpert.Configuration.apply_config_change(%XPExpert.Configuration{support: %XPExpert.Configuration.Support{code_action_dynamic_registration: true, hierarchical_symbols: true, snippet: true, deprecated: true, tags: %{value_set: [1]}, signature_help: %XPGenLSP.Structures.SignatureHelpClientCapabilities{context_support: nil, signature_information: %{documentation_format: ["markdown", "plaintext"], parameter_information: %{label_offset_support: true}, active_parameter_support: true}, dynamic_registration: true}, work_done_progress: true, show_message: %XPGenLSP.Structures.ShowMessageRequestClientCapabilities{message_action_item: %{additional_properties_support: true}}}, client_name: "Zed", additional_watched_extensions: nil, workspace_symbols: %XPExpert.Configuration.WorkspaceSymbols{min_query_length: 2}, log_level: :info}, nil)
    (xp_expert 0.1.0-3fe1565) lib/expert/state.ex:91: XPExpert.State.apply/2
    (xp_expert 0.1.0-3fe1565) lib/expert.ex:403: XPExpert.apply_to_state/2
    (xp_expert 0.1.0-3fe1565) lib/expert.ex:218: XPExpert.handle_notification/2
    (xp_gen_lsp 0.11.3) lib/gen_lsp.ex:600: anonymous fn/2 in XPGenLSP.handle_notification_sync/3
    (xp_telemetry 1.3.0) /home/runner/work/expert/expert/apps/expert/deps/telemetry/src/telemetry.erl:324: :xp_telemetry.span/3
    (xp_gen_lsp 0.11.3) lib/gen_lsp.ex:599: XPGenLSP.handle_notification_sync/3
    (xp_gen_lsp 0.11.3) lib/gen_lsp.ex:502: XPGenLSP.loop/3


14:28:26.163 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.168 instance_id=19D49043516 [debug] sent notification server -> client $/progress

14:28:26.181 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.181 instance_id=19D49043516 [info] Opened file:///home/rma97/code/PokerMind/mix.exs

14:28:26.182 instance_id=19D49043516 [debug] handled notification client -> server textDocument/didOpen in 18ms

14:28:26.186 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.186 instance_id=19D49043516 [info] Opened file:///home/rma97/code/PokerMind/lib/poker_mind_web/components/core_components.ex

14:28:26.187 instance_id=19D49043516 [debug] handled notification client -> server textDocument/didOpen in 4ms

14:28:26.189 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.189 instance_id=19D49043516 [info] Opened file:///home/rma97/code/PokerMind/lib/poker_mind/Engine/match/coordinator.ex

14:28:26.189 instance_id=19D49043516 [debug] handled notification client -> server textDocument/didOpen in 2ms

14:28:26.191 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.191 instance_id=19D49043516 [info] Opened file:///home/rma97/code/PokerMind/lib/poker_mind/Engine/match/suite.ex

14:28:26.191 instance_id=19D49043516 [debug] handled notification client -> server textDocument/didOpen in 2ms

14:28:26.191 instance_id=19D49043516 [info] Child XPForge.EPMD of Supervisor :net_sup started
Pid: #PID<0.183.0>
Start Call: XPForge.EPMD.start_link()
Restart: :permanent
Shutdown: 2000
Type: :worker

14:28:26.193 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.193 instance_id=19D49043516 [info] Opened file:///home/rma97/code/PokerMind/.formatter.exs

14:28:26.193 instance_id=19D49043516 [debug] handled notification client -> server textDocument/didOpen in 2ms

14:28:26.195 instance_id=19D49043516 [info] Child :auth of Supervisor :net_sup started
Pid: #PID<0.185.0>
Start Call: :auth.start_link()
Restart: :permanent
Shutdown: 2000
Type: :worker

14:28:26.198 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.198 instance_id=19D49043516 [info] Opened file:///home/rma97/code/PokerMind/lib/poker_mind/Engine/tablestate.ex

14:28:26.199 instance_id=19D49043516 [debug] handled notification client -> server textDocument/didOpen in 5ms

14:28:26.201 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.201 instance_id=19D49043516 [info] Opened file:///home/rma97/code/PokerMind/lib/poker_mind/Engine/match/game.ex

14:28:26.202 instance_id=19D49043516 [debug] handled notification client -> server textDocument/didOpen in 3ms

14:28:26.204 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.204 instance_id=19D49043516 [info] Opened file:///home/rma97/code/PokerMind/.credo.exs

14:28:26.204 instance_id=19D49043516 [debug] handled notification client -> server textDocument/didOpen in 2ms

14:28:26.223 instance_id=19D49043516 [info] Child :net_kernel of Supervisor :net_sup started
Pid: #PID<0.186.0>
Start Call: :net_kernel.start_link(%{name: :"expert-manager-PokerMind-3058@127.0.0.1", supervisor: :net_sup_dynamic, net_tickintensity: 4, net_ticktime: 60, name_domain: :longnames, clean_halt: false})
Restart: :permanent
Shutdown: 2000
Type: :worker

14:28:26.223 instance_id=19D49043516 [debug] Child :net_sup_dynamic of Supervisor :kernel_sup started
Pid: #PID<0.179.0>
Start Call: :erl_distribution.start_link(%{name: :"expert-manager-PokerMind-3058@127.0.0.1", supervisor: :net_sup_dynamic, net_tickintensity: 4, net_ticktime: 60, name_domain: :longnames, clean_halt: false})
Restart: :permanent
Shutdown: 1000
Type: :supervisor

14:28:26.228 instance_id=19D49043516 [debug] sent request server -> client window/workDoneProgress/create

14:28:26.230 instance_id=19D49043516 [debug] sent notification server -> client $/progress

14:28:26.478 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.478 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.478 instance_id=19D49043516 [info] Received request textDocument/codeAction before engine for PokerMind was initialized. Ignoring.

14:28:26.479 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.479 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.479 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.479 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.479 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.478 instance_id=19D49043516 [info] Received request textDocument/codeAction before engine for PokerMind was initialized. Ignoring.

14:28:26.479 instance_id=19D49043516 [info] Received request textDocument/codeAction before engine for PokerMind was initialized. Ignoring.

14:28:26.479 instance_id=19D49043516 [info] Received request textDocument/codeAction before engine for PokerMind was initialized. Ignoring.

14:28:26.479 instance_id=19D49043516 [info] Received request textDocument/codeAction before engine for PokerMind was initialized. Ignoring.

14:28:26.479 instance_id=19D49043516 [info] Received request textDocument/codeAction before engine for PokerMind was initialized. Ignoring.

14:28:26.479 instance_id=19D49043516 [info] Received request textDocument/codeAction before engine for PokerMind was initialized. Ignoring.

14:28:26.480 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:26.480 instance_id=19D49043516 [info] Received request textDocument/codeAction before engine for PokerMind was initialized. Ignoring.

14:28:26.522 instance_id=19D49043516 [debug] handled request client -> server textDocument/codeAction in 108ms

14:28:26.522 instance_id=19D49043516 [debug] handled request client -> server textDocument/codeAction in 102ms

14:28:26.523 instance_id=19D49043516 [debug] handled request client -> server textDocument/codeAction in 104ms

14:28:26.523 instance_id=19D49043516 [debug] handled request client -> server textDocument/codeAction in 104ms

14:28:26.523 instance_id=19D49043516 [debug] handled request client -> server textDocument/codeAction in 105ms

14:28:26.523 instance_id=19D49043516 [debug] handled request client -> server textDocument/codeAction in 103ms

14:28:26.523 instance_id=19D49043516 [debug] handled request client -> server textDocument/codeAction in 107ms

14:28:26.523 instance_id=19D49043516 [debug] handled request client -> server textDocument/codeAction in 106ms

14:28:29.346 instance_id=19D49043516 [debug] sent notification server -> client window/logMessage

14:28:29.346 instance_id=19D49043516 [info] Received request textDocument/hover before engine for PokerMind was initialized. Ignoring.

14:28:29.352 instance_id=19D49043516 [debug] handled request client -> server textDocument/hover in 28ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions