Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Helix not using pyenv python version #6108

Closed
Mouradost opened this issue Feb 26, 2023 · 9 comments
Closed

Helix not using pyenv python version #6108

Mouradost opened this issue Feb 26, 2023 · 9 comments
Labels
C-discussion Category: Discussion or questions that doesn't represent real issues

Comments

@Mouradost
Copy link

Mouradost commented Feb 26, 2023

Summary

Hi,

As the title point out, Helix seems to not use the pyenv python version, but instead defaults to system python version.
I have found a file in ~/.config/helix/.python-version which contains system. Changing this file to 3.11.0 (the pyenv current system-wide version instead of 3.11.2) nothing seems to happen and helix still uses the version 3.11.2.

Additionally, there seems to be a bug with pyright, I use it with neovim. However, it seems to be related to the python version used by helix.

Reproduction Steps

This is the output of echo $PATH:

zsh ❯ echo $PATH
/home/Mouradost/.pyenv/shims:/home/Mouradost/.pyenv/bin:/home/Mouradost/.local/bin:/home/Mouradost/bin:/usr/share/Modules/bin:/usr/lib64/ccache:/home/Mouradost/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/Mouradost/.local/bin/

This is the output of hx --health python:

zsh ❯ hx --health python
Configured language server: pyright-langserver
Binary for language server: /usr/local/bin/pyright-langserver
Configured debug adapter: None
Highlight queries: ✓
Textobject queries: ✓
Indent queries: ✓

This is my python config in ~/.config/helix/languages.toml:

# --Python
[[language]]
name = "python"
roots = [
  "pyproject.toml",
  "main.py",
  "setup.py",
  "setup.cfg",
  "requirements.txt",
  "Pipfile",
  "pyrightconfig.json",
]
language-server = { command = "pyright-langserver", args = ["--stdio"] }
formatter = { command = "black", args = ["--quiet", "-"] }
auto-format = true
config = { }

This is my pyenv versions output:

zsh ❯ pyenv versions
  system
  3.10.8
* 3.11.0 (set by /home/Mouradost/.pyenv/version)

This is the content of ~/.config/helix/.python-version :

system

Helix log

~/.cache/helix/helix.log
2023-02-26T15:33:19.117 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(1)), original request likely timed out
2023-02-26T15:33:22.617 helix_term::application [ERROR] Language Server: Method not found client/registerCapability
2023-02-26T15:33:22.619 helix_term::application [ERROR] received malformed method call from Language Server: workspace/configuration: protocol error: InvalidParams: Invalid params: invalid value: string "", expected relative URL without a base.
2023-02-26T15:34:00.676 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:02.068 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:02.383 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:02.719 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:05.717 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:07.303 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:07.413 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:07.770 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:08.126 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:08.525 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:08.671 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:08.920 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:09.205 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:09.516 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:09.917 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:25.614 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:26.013 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:27.876 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:28.575 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:28.980 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:29.509 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-26T15:34:29.873 helix_view::editor [ERROR] editor error: Async job failed: request timed out

Platform

Linux

Terminal Emulator

Alacritty

Helix Version

helix 22.12

@Mouradost Mouradost added the C-bug Category: This is a bug label Feb 26, 2023
@the-mikedavis
Copy link
Member

The pyright issue looks like #5958 from the log. You may be able to fix that by downgrading pyright to 1.1.292.

Helix doesn't integrate with pyenv at all - I'm not sure where the ~/.config/helix/.python-version file came from but Helix doesn't look for it. When executing a language server we execute the configured command in the languages.toml entry: pyright-langserver --stdio in this case which looks like /usr/local/bin/pyright-langserver from the --health output. If there is a pyright-langserver binary or shim in one of the ~/.pyenv directories, you may want to point to that directly instead:

[[language]]
name = "python"
language-server = { command = "/path/to/.pyenv/bin/pyright-langserver", args = ["--stdio"] }

@Mouradost
Copy link
Author

@the-mikedavis thank you for your clarifications. The ~/.config/helix/.python-version might be an artifact from some other program.
For pyenv it stores scrips under ~/.pyenv/shims/ for each program and not the actual binaries, the script consists of setting up the python environment, then executing the program as shown below.

#!/usr/bin/env bash
set -e
[ -n "$PYENV_DEBUG" ] && set -x

program="${0##*/}"

export PYENV_ROOT="~/.pyenv"
exec "~/.pyenv/libexec/pyenv" exec "$program" "$@"

Setting hilex language server path to ~/.pyenv/shims/pyright-langserver causes it to not find the python binary ? file as shown in the log. But I'm assuming what's really happening is that helix might have some checking mechanism to know whether the path provided lead to some binaries, and since the ~/.pyenv/shims/pyright-langserver is script it doesn't work? A bit confused 😕

2023-02-27T13:06:49.839 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-02-27T13:06:55.128 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-02-27T13:07:05.476 helix_view::editor [ERROR] Failed to initialize the LSP for `source.python` { cannot find binary path }
2023-02-27T13:15:29.104 helix_term::application [ERROR] Timed out waiting for language servers to shutdown

By the way this is the languages.toml:

[[language]]
name = "python"
language-server = { command = "~/.pyenv/shims/pyright-langserver", args = ["--stdio"] }

@gabydd
Copy link
Member

gabydd commented Feb 27, 2023

Not sure why it can't find the binary but you can try bash as the command instead and move the script path to the args

@Mouradost
Copy link
Author

@gabydd tried it with bash and it's not finding the file now here is the log output:

language-server = { command = "bash", args = ["~/.pyenv/shims/pyright-langserver", "--stdio"] }
2023-02-27T15:00:13.652 helix_lsp::transport [ERROR] err <- "/usr/bin/bash: ~/.pyenv/shims/pyright-langserver: No such file or directory\n"
2023-02-27T15:00:13.652 helix_lsp [ERROR] failed to initialize language server: server closed the stream
2023-02-27T15:00:13.652 helix_lsp::transport [ERROR] err: <- StreamClosed

I made sure that it does work when using the command line directly

Mouradost in ~ took 4s 
fsh ❯ bash ~/.pyenv/shims/pyright-langserver --stdio

added 1 package, and audited 2 packages in 1s

found 0 vulnerabilities
Content-Length: 119

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Pyright language server 1.1.295 starting"}}Content-Length: 180

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Server root directory: /tmp/pyright-python-langserver.-6590457998793883031/node_modules/pyright/dist/"}}

@the-mikedavis
Copy link
Member

I believe the ~ is not expanded, you will need to use an absolute path from root

@Mouradost
Copy link
Author

@the-mikedavis you were right. However, didn't work as expected I'm having this problem now from the lsp:

using language-server = { command = "bash", args = ["/home/Mouradost/.pyenv/shims/pyright-langserver", "--stdio"] }

2023-02-27T22:35:12.962 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(1)), original request likely timed out
2023-02-27T22:35:12.962 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(2)), original request likely timed out
2023-02-27T22:35:12.962 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(3)), original request likely timed out
2023-02-27T22:35:12.962 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(4)), original request likely timed out
2023-02-27T22:35:12.963 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(5)), original request likely timed out
2023-02-27T22:35:12.963 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(6)), original request likely timed out
2023-02-27T22:35:12.971 helix_lsp::transport [ERROR] err: <- StreamClosed
2023-02-27T22:35:12.972 helix_term::application [ERROR] received malformed method call from Language Server: workspace/configuration: protocol error: InvalidParams: Invalid params: invalid value: string "", expected relative URL without a base.
2023-02-27T22:35:20.094 helix_term::application [ERROR] Language Server: Method not found client/registerCapability
2023-02-27T22:35:20.095 helix_term::application [ERROR] received malformed method call from Language Server: workspace/configuration: protocol error: InvalidParams: Invalid params: invalid value: string "", expected relative URL without a base.

using language-server = { command = "/home/Mouradost/.pyenv/shims/pyright-langserver", args = ["--stdio"] }

2023-02-27T22:35:51.537 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-02-27T22:35:53.624 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-02-27T22:36:01.676 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-02-27T22:36:04.053 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-02-27T22:36:21.712 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-02-27T22:36:28.154 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-02-27T22:36:35.473 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-02-27T22:36:37.250 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-02-27T22:36:49.188 helix_term::application [ERROR] Language Server: Method not found client/registerCapability
2023-02-27T22:36:49.189 helix_term::application [ERROR] received malformed method call from Language Server: workspace/configuration: protocol error: InvalidParams: Invalid params: invalid value: string "", expected relative URL without a base.

@gabydd
Copy link
Member

gabydd commented Feb 27, 2023

Probably comes from this part when you run the shim, might need some way to make it quite

added 1 package, and audited 2 packages in 1s

found 0 vulnerabilities
``

@the-mikedavis
Copy link
Member

You can see the full communication between Helix and pyright in the log by running in verbose mode (hx -v)

The line in the log:

2023-02-27T22:36:49.189 helix_term::application [ERROR] received malformed method call from Language Server: workspace/configuration: protocol error: InvalidParams: Invalid params: invalid value: string "", expected relative URL without a base.

looks like #5958 (comment). You can try downgrading your pyright version to 1.1.292. Compatibility with 1.1.293+ is waiting on a PR in Helix and one in pyright.

@Mouradost
Copy link
Author

Ok I will give it a try.

Results after running hx -v

2023-02-27T23:23:49.260 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"shutdown","params":null,"id":1}
2023-02-27T23:23:49.300 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":1,"result":null}
2023-02-27T23:23:49.301 helix_lsp::transport [INFO] <- null
2023-02-27T23:23:49.301 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"exit","params":null}
2023-02-27T23:23:50.637 helix_view::clipboard [INFO] Using wl-copy+wl-paste to interact with the system and selection (primary) clipboard
2023-02-27T23:23:50.672 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"completion":{"completionItem":{"insertReplaceSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]},"snippetSupport":false},"completionItemKind":{}},"hover":{"contentFormat":["markdown"]},"publishDiagnostics":{},"rename":{"dynamicRegistration":false,"honorsChangeAnnotations":false,"prepareSupport":false},"signatureHelp":{"signatureInformation":{"activeParameterSupport":true,"documentationFormat":["markdown"],"parameterInformation":{"labelOffsetSupport":true}}}},"window":{"workDoneProgress":true},"workspace":{"applyEdit":true,"configuration":true,"didChangeConfiguration":{"dynamicRegistration":false},"executeCommand":{"dynamicRegistration":false},"symbol":{"dynamicRegistration":false},"workspaceFolders":true}},"processId":163900,"rootPath":"/home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion","rootUri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion","workspaceFolders":[{"name":"TrafficDiffusion","uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion"}]},"id":0}
2023-02-27T23:23:53.439 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Pyright language server 1.1.295 starting"}}
2023-02-27T23:23:53.439 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Server root directory: /tmp/pyright-python-langserver.18446687154936299/node_modules/pyright/dist/"}}
2023-02-27T23:23:53.439 helix_term::application [INFO] window/logMessage: LogMessageParams { typ: Info, message: "Pyright language server 1.1.295 starting" }
2023-02-27T23:23:53.440 helix_term::application [INFO] window/logMessage: LogMessageParams { typ: Info, message: "Server root directory: /tmp/pyright-python-langserver.18446687154936299/node_modules/pyright/dist/" }
2023-02-27T23:23:53.446 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Starting service instance \"TrafficDiffusion\""}}
2023-02-27T23:23:53.446 helix_term::application [INFO] window/logMessage: LogMessageParams { typ: Info, message: "Starting service instance \"TrafficDiffusion\"" }
2023-02-27T23:23:53.447 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":0,"result":{"capabilities":{"textDocumentSync":2,"definitionProvider":{"workDoneProgress":true},"declarationProvider":{"workDoneProgress":true},"typeDefinitionProvider":{"workDoneProgress":true},"referencesProvider":{"workDoneProgress":true},"documentSymbolProvider":{"workDoneProgress":true},"workspaceSymbolProvider":{"workDoneProgress":true},"hoverProvider":{"workDoneProgress":true},"documentHighlightProvider":{"workDoneProgress":true},"renameProvider":{"prepareProvider":true,"workDoneProgress":true},"completionProvider":{"triggerCharacters":[".","["],"resolveProvider":true,"workDoneProgress":true,"completionItem":{"labelDetailsSupport":true}},"signatureHelpProvider":{"triggerCharacters":["(",",",")"],"workDoneProgress":true},"codeActionProvider":{"codeActionKinds":["quickfix","source.organizeImports"],"workDoneProgress":true},"executeCommandProvider":{"commands":[],"workDoneProgress":true},"callHierarchyProvider":true}}}
2023-02-27T23:23:53.447 helix_lsp::transport [INFO] <- {"capabilities":{"callHierarchyProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","source.organizeImports"],"workDoneProgress":true},"completionProvider":{"completionItem":{"labelDetailsSupport":true},"resolveProvider":true,"triggerCharacters":[".","["],"workDoneProgress":true},"declarationProvider":{"workDoneProgress":true},"definitionProvider":{"workDoneProgress":true},"documentHighlightProvider":{"workDoneProgress":true},"documentSymbolProvider":{"workDoneProgress":true},"executeCommandProvider":{"commands":[],"workDoneProgress":true},"hoverProvider":{"workDoneProgress":true},"referencesProvider":{"workDoneProgress":true},"renameProvider":{"prepareProvider":true,"workDoneProgress":true},"signatureHelpProvider":{"triggerCharacters":["(",",",")"],"workDoneProgress":true},"textDocumentSync":2,"typeDefinitionProvider":{"workDoneProgress":true},"workspaceSymbolProvider":{"workDoneProgress":true}}}
2023-02-27T23:23:53.447 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"initialized","params":{}}
2023-02-27T23:23:53.447 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"python","text":"from pathlib import Path\n\nimport hydra\nfrom omegaconf import DictConfig, OmegaConf\nfrom hydra.utils import instantiate\nimport wandb\n\nimport torch\n\nfrom helpers.utils import overview\nfrom helpers.viz import plot_overview, set_plotting_style\n\n\[email protected](\n    version_base=None,\n    config_path=(Path.cwd() / \"config\").as_posix(),\n    config_name=\"config\",\n)\ndef main(cfg: DictConfig) -> None:\n    # torch.autograd.set_detect_anomaly(True)\n    # Set plotting style to Paper\n    set_plotting_style(style=\"Paper\")\n    # Choosing a device\n    cfg.device = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n    # Config overview\n    with (Path.cwd() / \"config.yaml\").open(mode=\"w\") as f:\n        OmegaConf.save(cfg, f)\n    # Initiate diffusion\n    diffusion = instantiate(cfg.diffusion)\n    # Initiate the model\n    model = instantiate(cfg.model)\n    # Training\n    # Initiate dataset\n    dataset = instantiate(cfg.dataset, train=True)\n    # Initiate logger\n    if cfg.log.wandb.enable:\n        wandb.init(\n            project=cfg.log.wandb.project,\n            entity=cfg.log.wandb.entity,\n            name=f\"{dataset.name}_{cfg.model.name}_{diffusion.name}\",\n        )\n    # Initiate trainer\n    trainer = instantiate(cfg.trainer, diffusion=diffusion, model=model, logger=\"\")\n    # Load model if exist\n    trainer.load_model(path=Path.cwd() / f\"model_{model.name}_weights.pth\")\n    # Train\n    trainer.train(dataset.get_data_loader())\n    # Save model\n    trainer.save_model(path=Path.cwd() / f\"model_{model.name}_weights.pth\")\n\n    # Testing\n    # Initiate dataset\n    dataset = instantiate(cfg.dataset, train=False)\n    # Generating predictions and grounds\n    predictions, targets = trainer.get_predictions(dataset.get_data_loader())\n    # Saving\n    torch.save(\n        (predictions, targets), Path.cwd() / f\"predictions_{dataset.window_size}.pt\"\n    )\n    # Saving overview plot 24h sample\n    for i in range(cfg.dataset.window_size):\n        plot_overview(\n            predictions=predictions,\n            grounds=targets,\n            dataset=dataset,\n            timestamp=i,\n            hours=24,\n            node_id=0,\n            model_name=model.name,\n        ).savefig(Path.cwd() / f\"ground_vs_pred_24h_sample_{i+1}.pdf\", transparent=True)\n\n    # Saving overview\n    overview(path=Path.cwd(), predictions=predictions, targets=targets, dataset=dataset)\n\n\nif __name__ == \"__main__\":\n    main()\n","uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":0}}}
2023-02-27T23:23:53.449 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":0,"method":"client/registerCapability","params":{"registrations":[{"id":"0d628340-651c-4166-8271-8acf4f662f7a","method":"workspace/didChangeWorkspaceFolders","registerOptions":{}}]}}
2023-02-27T23:23:53.449 helix_term::application [ERROR] Language Server: Method not found client/registerCapability
2023-02-27T23:23:53.450 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Starting service instance \"<default>\""}}
2023-02-27T23:23:53.450 helix_term::application [INFO] window/logMessage: LogMessageParams { typ: Info, message: "Starting service instance \"<default>\"" }
2023-02-27T23:23:53.450 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":1,"method":"workspace/configuration","params":{"items":[{"scopeUri":"","section":"python"}]}}
2023-02-27T23:23:53.450 helix_term::application [ERROR] received malformed method call from Language Server: workspace/configuration: protocol error: InvalidParams: Invalid params: invalid value: string "", expected relative URL without a base.
2023-02-27T23:23:53.950 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/completion","params":{"position":{"character":0,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":1}
2023-02-27T23:23:54.279 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/completion","params":{"position":{"character":0,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":2}
2023-02-27T23:23:55.616 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":0,"line":1},"start":{"character":0,"line":1}},"text":"i"}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":1}}}
2023-02-27T23:23:55.629 helix_vcs::diff::worker [INFO] Diff computation timed out, update of diffs might appear delayed
2023-02-27T23:23:55.918 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":1,"line":1},"start":{"character":1,"line":1}},"text":"m"}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":2}}}
2023-02-27T23:23:56.176 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":2,"line":1},"start":{"character":2,"line":1}},"text":"p"}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":3}}}
2023-02-27T23:23:56.354 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":3,"line":1},"start":{"character":3,"line":1}},"text":"o"}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":4}}}
2023-02-27T23:23:56.367 helix_vcs::diff::worker [INFO] Diff computation timed out, update of diffs might appear delayed
2023-02-27T23:23:56.487 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":4,"line":1},"start":{"character":4,"line":1}},"text":"r"}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":5}}}
2023-02-27T23:23:56.778 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":5,"line":1},"start":{"character":5,"line":1}},"text":"t"}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":6}}}
2023-02-27T23:23:56.790 helix_vcs::diff::worker [INFO] Diff computation timed out, update of diffs might appear delayed
2023-02-27T23:23:57.008 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":6,"line":1},"start":{"character":6,"line":1}},"text":" "}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":7}}}
2023-02-27T23:23:57.290 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":7,"line":1},"start":{"character":7,"line":1}},"text":"t"}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":8}}}
2023-02-27T23:23:57.424 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":8,"line":1},"start":{"character":8,"line":1}},"text":"o"}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":9}}}
2023-02-27T23:23:57.551 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":9,"line":1},"start":{"character":9,"line":1}},"text":"r"}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":10}}}
2023-02-27T23:23:57.956 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/completion","params":{"position":{"character":10,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":3}
2023-02-27T23:23:58.237 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/completion","params":{"position":{"character":10,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":4}
2023-02-27T23:23:58.496 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/completion","params":{"position":{"character":10,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":5}
2023-02-27T23:23:58.757 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/completion","params":{"position":{"character":10,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":6}
2023-02-27T23:23:59.159 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/completion","params":{"position":{"character":10,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":7}
2023-02-27T23:23:59.438 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":10,"line":1},"start":{"character":9,"line":1}},"text":""}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":11}}}
2023-02-27T23:23:59.443 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/signatureHelp","params":{"position":{"character":9,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":8}
2023-02-27T23:23:59.642 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":9,"line":1},"start":{"character":8,"line":1}},"text":""}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":12}}}
2023-02-27T23:23:59.647 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/signatureHelp","params":{"position":{"character":8,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":9}
2023-02-27T23:23:59.797 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":8,"line":1},"start":{"character":7,"line":1}},"text":""}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":13}}}
2023-02-27T23:23:59.808 helix_vcs::diff::worker [INFO] Diff computation timed out, update of diffs might appear delayed
2023-02-27T23:23:59.809 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/signatureHelp","params":{"position":{"character":7,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":10}
2023-02-27T23:23:59.983 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":7,"line":1},"start":{"character":6,"line":1}},"text":""}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":14}}}
2023-02-27T23:23:59.985 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/signatureHelp","params":{"position":{"character":6,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":11}
2023-02-27T23:24:00.142 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":6,"line":1},"start":{"character":5,"line":1}},"text":""}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":15}}}
2023-02-27T23:24:00.146 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/signatureHelp","params":{"position":{"character":5,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":12}
2023-02-27T23:24:00.307 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":5,"line":1},"start":{"character":4,"line":1}},"text":""}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":16}}}
2023-02-27T23:24:00.312 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/signatureHelp","params":{"position":{"character":4,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":13}
2023-02-27T23:24:00.503 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":4,"line":1},"start":{"character":3,"line":1}},"text":""}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":17}}}
2023-02-27T23:24:00.508 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/signatureHelp","params":{"position":{"character":3,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":14}
2023-02-27T23:24:00.712 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":3,"line":1},"start":{"character":2,"line":1}},"text":""}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":18}}}
2023-02-27T23:24:00.717 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/signatureHelp","params":{"position":{"character":2,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":15}
2023-02-27T23:24:00.947 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":2,"line":1},"start":{"character":1,"line":1}},"text":""}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":19}}}
2023-02-27T23:24:00.951 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/signatureHelp","params":{"position":{"character":1,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":16}
2023-02-27T23:24:01.365 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":1,"line":1},"start":{"character":0,"line":1}},"text":""}],"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py","version":20}}}
2023-02-27T23:24:01.370 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"textDocument/signatureHelp","params":{"position":{"character":0,"line":1},"textDocument":{"uri":"file:///home/Mouradost/Documents/Code/Python/lab/TrafficDiffusion/src/run.py"}},"id":17}
2023-02-27T23:24:13.952 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:14.279 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:17.958 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:18.238 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:18.497 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:18.759 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:19.160 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:19.444 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:19.648 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:19.810 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:19.987 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:20.148 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:20.313 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:20.510 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:20.717 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:20.953 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:21.371 helix_view::editor [ERROR] editor error: Async job failed: request timed out
2023-02-27T23:24:47.668 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"shutdown","params":null,"id":18}
2023-02-27T23:24:48.134 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":18,"result":null}
2023-02-27T23:24:48.134 helix_lsp::transport [INFO] <- null
2023-02-27T23:24:48.134 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","method":"exit","params":null}
2023-02-27T23:24:48.134 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":8,"result":null}
2023-02-27T23:24:48.134 helix_lsp::transport [INFO] <- null
2023-02-27T23:24:48.134 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(8)), original request likely timed out
2023-02-27T23:24:48.134 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":9,"result":null}
2023-02-27T23:24:48.134 helix_lsp::transport [INFO] <- null
2023-02-27T23:24:48.134 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(9)), original request likely timed out
2023-02-27T23:24:48.134 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":10,"result":null}
2023-02-27T23:24:48.134 helix_lsp::transport [INFO] <- null
2023-02-27T23:24:48.134 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(10)), original request likely timed out
2023-02-27T23:24:48.134 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":11,"result":null}
2023-02-27T23:24:48.134 helix_lsp::transport [INFO] <- null
2023-02-27T23:24:48.134 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(11)), original request likely timed out
2023-02-27T23:24:48.135 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":12,"result":null}
2023-02-27T23:24:48.135 helix_lsp::transport [INFO] <- null
2023-02-27T23:24:48.135 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(12)), original request likely timed out
2023-02-27T23:24:48.135 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":13,"result":null}
2023-02-27T23:24:48.135 helix_lsp::transport [INFO] <- null
2023-02-27T23:24:48.135 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(13)), original request likely timed out
2023-02-27T23:24:48.135 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":14,"result":null}
2023-02-27T23:24:48.135 helix_lsp::transport [INFO] <- null
2023-02-27T23:24:48.135 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(14)), original request likely timed out
2023-02-27T23:24:48.135 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":15,"result":null}
2023-02-27T23:24:48.135 helix_lsp::transport [INFO] <- null
2023-02-27T23:24:48.135 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(15)), original request likely timed out
2023-02-27T23:24:48.135 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":16,"result":null}
2023-02-27T23:24:48.135 helix_lsp::transport [INFO] <- null
2023-02-27T23:24:48.135 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(16)), original request likely timed out
2023-02-27T23:24:48.135 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":17,"result":null}
2023-02-27T23:24:48.135 helix_lsp::transport [INFO] <- null
2023-02-27T23:24:48.135 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(17)), original request likely timed out

@kirawi kirawi added C-discussion Category: Discussion or questions that doesn't represent real issues and removed C-bug Category: This is a bug labels Mar 9, 2023
@helix-editor helix-editor locked and limited conversation to collaborators Apr 16, 2024
@pascalkuthe pascalkuthe converted this issue into discussion #10469 Apr 16, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
C-discussion Category: Discussion or questions that doesn't represent real issues
Projects
None yet
Development

No branches or pull requests

4 participants