modularml / max

A collection of sample programs, notebooks, and tools which highlight the power of the MAX Platform
https://www.modular.com
Other
336 stars 42 forks source link

[BUG]: Debug Mojo File fails in VS Code with `Connection shut down by remote side while waiting for reply to initial handshake packet` #227

Open rabainu opened 3 weeks ago

rabainu commented 3 weeks ago

Bug description

VS Code can no longer debug Mojo with the max 24.5 SDK installed with Magic CLI. Trying to run Debug Mojo File ends with the error message Connection shut down by remote side while waiting for reply to initial handshake packet. On the command line the debugger seems to work normally.

Steps to reproduce

% magic init project --format mojoproject
% cd project 
% magic shell
% mojo -v
mojo 24.5.0 (e8aacb95)
% code (to launch VS Code)

System information

- What OS did you do install MAX on ?

macOS 14.6.1 (23G93)

- Provide version information for MAX by pasting the output of max -v`

max 24.5.0 (e8aacb95)
Modular version 24.5.0

- Provide version information for Mojo by pasting the output of mojo -v`

mojo 24.5.0 (e8aacb95)

- Provide Modular CLI version by pasting the output of `modular -v`

zsh: command not found: modular
ehsanmok commented 2 weeks ago

Have you enabled "Mojo: Enable Magic SDK" in the vscode settings?

rabainu commented 2 weeks ago

Debugger has worked for me since VS Code extension 24.5.1 (18.9.2024) if I launch VS Code from terminal with magic shell activated. Stepping in standard library functions doesn't work yet, but I think that is a separate issue.

From: "Ehsan M. Kermani" @.> To: "modularml/max" @.> Cc: "Manne Miettinen" @.>, "Author" @.> Sent: Monday, 23 September, 2024 21:00:55 Subject: Re: [modularml/max] [BUG]: Debug Mojo File fails in VS Code with Connection shut down by remote side while waiting for reply to initial handshake packet (Issue #227)

Have you enabled "Mojo: Enable Magic SDK" in the vscode settings?

— Reply to this email directly, [ https://github.com/modularml/max/issues/227#issuecomment-2368994315 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/A6QOAXQRVEV2GQ2USMMBJE3ZYBJNPAVCNFSM6AAAAABOI6OS72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRYHE4TIMZRGU | unsubscribe ] . You are receiving this because you authored the thread. Message ID: @.***>