-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Panicked on macOS Catalina when editing python code #1204
Comments
For pasting, since you're using tabs I assume that you haven't changed the tab width via |
No, I did't. There's no |
Try pasting through Helix ( |
|
Yeah, the terminal is messing it up by converting the indentation. Not sure how Vim avoids that. |
I'll try to reproduce the crush in the beginning. |
I can reproduce this with ElixirLS by creating a file that fails to compile. The code looks roughly like: Mox.defmock(MyMock, for: SomeModuleThatIsNotABehaviour) The logger shows this message from the LS right before the crash: {
"jsonrpc": "2.0",
"method": "textDocument/publishDiagnostics",
"params": {
"diagnostics": [
{
"message": "(ArgumentError) module SomeModuleThatIsNotABehaviour is not a behaviour, please pass a behaviour to :for\n\nStacktrace:\n │ (mox 1.0.1) lib/mox.ex:365: Mox.validate_behaviour!/1\n │ (mox 1.0.1) lib/mox.ex:383: anonymous fn/2 in Mox.generate_compile_time_dependency/1\n │ (elixir 1.13.4) lib/enum.ex:2396: Enum.\"-reduce/3-lists^foldl/2-0-\"/3\n │ (mox 1.0.1) lib/mox.ex:382: Mox.generate_compile_time_dependency/1\n │ (mox 1.0.1) lib/mox.ex:349: Mox.defmock/2",
"range": {
"end": { "character": 0, "line": -1 },
"start": { "character": 0, "line": -1 }
},
"severity": 1,
"source": "Elixir"
}
],
"uri": "file:///home/michael/snip/snip/test/support/mocks.ex"
}
} And here's the full backtrace:
That message from the language server is malformed: We should be able to remove the panic in this block and replace it with an error log: Lines 277 to 283 in 4b1fe36
Ultimately this is an upstream bug with ElixirLS though. It must not give |
Hello, I guess helix just crashed in
iTerm2
and I got this messageI noticed that when pasting python code to helix running in
iTerm2
,iTerm2
warns you about tab size.Paste the exact same code to
Vim
, no warnings at all.And the code pasted into helix have messed up indent as well.
vim
hx
I know the code doesn't make sense, but the indent was twisted in helix.
The code was copied from a browser.
I was using
python-lsp-server[full]
and here's the output ofpip3 list
Here's the log info in
~/.cache/helix/helix.log
uname -a
:env | rg LC_CTYPE
env | rg LC_TERMINAL
The text was updated successfully, but these errors were encountered: