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

thread 'main' panicked at 'called Option::unwrap() on a None value' #9255

Closed
webdev23 opened this issue Jan 6, 2024 · 2 comments
Closed
Labels
C-bug Category: This is a bug

Comments

@webdev23
Copy link

webdev23 commented Jan 6, 2024

Summary

thread 'main' panicked at 'called Option::unwrap()on aNone value', /build/helix-2Yvm31/helix-23.10/helix-view/src/handlers/dap.rs:231:57

Experiencing this bug randomly, while launching a debugger session. May lead to loss of data.

Reproduction Steps

I tried this:

  1. hx myfile.php

  2. Space g l Launch debugger

  3. php myscript.php in another shell

Helix crash at point 3, when launching a PHP debugging session with php-xdebug and inteliphense. The debugger setup is fine and is running, into Helix two times out of three.

hx --health php

Configured language servers:                   
  ✓ intelephense: /usr/local/bin/intelephense  
Configured debug adapter: node                 
Binary for debug adapter: /usr/bin/node        
Highlight queries: ✓                           
Textobject queries: ✓                          
Indent queries: ✓             

I understand it's the early stages of debugging integrations, as warned it's experimental, thanks for the great work already, it's almost there!

Helix log

~/.cache/helix/helix.log
 helix_view::editor [ERROR] editor error: Currently active thread is not stopped. Switch the thread.
 helix_dap::transport [ERROR] Tried sending response into a closed channel (id=3), original request likely timed out
 helix_dap::transport [ERROR] err: <- StreamClosed
 helix_dap::transport [ERROR] err: <- IO(Os { code: 32, kind: BrokenPipe, message: "Broken pipe" })
 helix_view::editor [ERROR] editor error: Async job failed: server closed the stream
[ERROR] received malformed notification from Language Server: Unhandled
[ERROR] editor error: Debugger does not support session restarts
[ERROR] editor error: Async job failed: request 9 timed out 
[ERROR] Tried sending response into a closed channel (id=9), original request likely timed out 
[ERROR] err: <- StreamClosed 

Platform

Linux

Terminal Emulator

zsh

Installation Method

source

Helix Version

23.10

@webdev23 webdev23 added the C-bug Category: This is a bug label Jan 6, 2024
@webdev23 webdev23 changed the title thread 'main' panicked at 'called Option::unwrap() on a None value', /build/helix-2Yvm31/helix-23.10/helix-view/src/handlers/dap.rs:231:57 thread 'main' panicked at 'called Option::unwrap() on a None value' Jan 6, 2024
@gabydd
Copy link
Member

gabydd commented Jan 6, 2024

I believe this is the same bug as #8625 we aren't properly handling the breakpoint changed event

@webdev23
Copy link
Author

webdev23 commented Jan 7, 2024

Also had this crash error, using the debugger:

thread 'main' panicked at 'no entry found for key', /build/helix-2Yvm31/helix-23.10/helix-view/src/handlers/dap.rs:40:17

@webdev23 webdev23 closed this as completed Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants