Comments (8)
It looks like you have pyls
installed and it's failing to communicate with it (can't find the Content-Length
header).
Do you have a sample project I could test on?
from helix.
You may try testing on my WIP project https://github.com/tuxiqae/Friecipe
Or any other Python project TBH
from helix.
P.S. Seems like pyls
really isn't working
❯ pyls
Traceback (most recent call last):
File "/home/user/.local/bin/pyls", line 5, in <module>
from pyls.__main__ import main
ModuleNotFoundError: No module named 'pyls'
from helix.
So this is a language server integration issue, I was able to navigate your project without issue, but I don't have pyls at all, so that may have helped.
I think the editor should probably show an error, saying it couldn't start/communicate with the language server and just disables it to prevent crashing unexpectedly
from helix.
Reopening because I'd still like to solve the underlying cause, but at least it shouldn't panic anymore
from helix.
I don't think this is specific to pyls
. I frequently get random crashes with rust-analyzer
, too.
from helix.
Some debug logging reveals that language servers may sometimes send ill-formed messages:
2021-06-18T19:11:50.957 helix_lsp::transport [INFO] header: Content-Length: 111
2021-06-18T19:11:50.957 helix_lsp::transport [INFO] header:
2021-06-18T19:11:50.957 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","id":142,"method":"window/workDoneProgress/create","params":{"token":"rustAnalyzer/Indexing"}}
2021-06-18T19:11:50.957 helix_lsp::transport [INFO] header: Content-Length: 141
2021-06-18T19:11:50.957 helix_lsp::transport [INFO] header:
2021-06-18T19:11:50.957 helix_lsp::transport [INFO] <- {"jsonrpc":"2.0","method":"$/progress","params":{"token":"rustAnalyzer/Indexing","value":{"kind":"begin","title":"Indexing","percentage":0}}}
2021-06-18T19:11:50.961 helix_lsp::transport [INFO] header: Content-Length: 157
2021-06-18T19:11:50.961 helix_lsp::transport [INFO] header:
2021-06-18T19:11:50.961 helix_lsp::transport [INFO] -> {"jsonrpc":"2.0","result":null,"id":142}
2021-06-18T19:11:50.961 helix_lsp::transport [INFO] header: {"jsonrpc":"2.0","method":"$/progress","params":{"token":"rustAnalyzer/Indexing","value":{"kind":"report","message":"40/523 (tokio_macros)","percentage":7}}}Content-Length: 156
2021-06-18T19:11:50.961 helix_lsp::transport [INFO] header:
<crash happened here>
Notice that the last message does not look right at all.
from helix.
#306 should fix this issue. (I think the pyls error is also caused by the content_length
unwrap.)
from helix.
Related Issues (20)
- File autocomplete in :open breaks with symlinks HOT 1
- `CTRL+c` causes Helix to crash after Nushell LSP crashes HOT 1
- Space / global search feature is broken HOT 3
- Weird behaviour: sometimes 'normal' parts of Latex code get highlighted as warning.
- support multiple root directories for file picker HOT 4
- Extremely slow python autocomplete performance HOT 3
- Display recent files at the top of file picker HOT 2
- Auto-Complete adds double $ character after choosing a value from the dropdown menu
- lua-language-server exits on start
- Feature Request: Custom Snippet Support
- Enhancement: Custom Snippet Support HOT 1
- Clojure-lsp go to definition not working for dependencies/core library functions
- Insert cursor bar style
- sequences of commands interact poorly with interactive commands in mappings
- Crash when trying to debug: "no entry found for key" HOT 3
- Pop-up menu on long-press of modifier keys HOT 3
- Helix Crashes when accessing suggestion for text completion HOT 2
- Godot Classes Break
- `x=` freeze in typescript file HOT 1
- Make clang-tidy work with helix editor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helix.