-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Wrong command being executed for keybinding #54378
Comments
Great, thanks! I was never able to repro it, do you know what might have triggered it so that I might be able to test it myself (this may be easier if the users don't have/wan't to grab Insiders). |
@DanTup something like this:
|
@isidorn Following those instructions I ended up in a debug session, but the status bar is still blue (not orange). Ctrl+F5 actually works correctly (calls our command). In the issue reported, the users have an orange status bar but Ctrl+F5 is trying to start a debug session. I think this might be a different issue? |
@DanTup can you check with the user if he can repro with the latest insiders - if he can then we will for sure know this is not fixed. |
The other user reports no change here. |
@DanTup ok. I have simplified how we are computing debug contexts. Please try it out in tomorrows insiders. If it still does not work then please verify |
Thanks; will get them to try again and see what we can find. |
@DanTup pointed me here
Correct, no message in the Debug Console.
Yes, that breakpoint gets triggered.
I'm not sure what variable or value to report back here. Can you be specific about what variable or field I should be looking at? Thanks |
@SteveAlexander do a |
Okay, this is on Insiders Sequence of events: Interestingly, the "Flutter: Hot Restart ^F5" entry was not present in the command palette on Insiders. I tried uninstalling and reinstalling the Flutter extension, and it still wasn't there. On my VSC release version, the command is there. |
@SteveAlexander I pushed a fix for this, can you please try tomorrow's vscode insiders and let us know if it still repros. Thanks a lot |
I have the same problem... Trying to debug and the first time it's working but when I restart the debug it says i already have a debug configuration running... |
@marc1161 Out of curiosity, is this with Dart/Flutter or something else? |
@DanTup is with Golang |
It's happening to me too, but with Golang. |
I could never repro this, so can't test. @momoadeli can you confirm it's good in the latest Insiders? |
I just tested with the latest insiders. I'm still seeing the problem. Perhaps we should re-open this? Version 1.27.0-insider (1.27.0-insider) |
@DanTup I am still seeing error on my updated VSCode (Version 1.26.1 ...can't mess with 'insiders' right now-- @SteveAlexander does see issue in insiders. ). Mo |
@momoadeli I did try many things to repro with your steps without success. If you can open a clean VS Code instance and run |
There is a good chance it is a duplicate of #57255 I appologize for asking you to try it out many times since I do not have nice repro steps on my machine I can not verify it mystelf. |
@DanTup @isidorn Sorry for delay. I have the Dart log capture attached. I also have a short screen recording (QuickTime) I believe is helpful which I'm unable to attach here. I can share any way you suggest. Also, this is VS Version 1.26.1 (not insiders): |
@momoadeli This log files seems to stop during the application launch:
It's worth first checking if it's fixed in Insiders, since if so, we don't need to dig into it. Otherwise, it'd be useful to see a more complete log. I presume that this message is only seen the second time you try to launch a session, so the following steps should be a useful log:
I'm particularly interested in the log for the shutting down of the first debug session. We do log a reasonable amount of things in the disconnect request, so if something isn't working correctly there, hopefully it'll show up. I'm curious what's different for you than me. |
@DanTup upgraded to Version 1.27.0 (1.27.0). Problem still there. I assume this is NOT the 'insiders' version you're referring to? |
@momoadeli I'm not sure, I don't work on Code. Maybe @weinand can confirm if the fix from #57255 is expected in 1.27 (I would've thought so). Also, a full log would still be useful - the one you previously attached seemed to be incomplete. |
@momoadeli I did make some changes to some termination code recently - could you try with v2.18.1 Beta 1 to see if you still see the issue: https://github.com/Dart-Code/Dart-Code/releases/tag/v2.18.1-beta.1 Download the If it still repros, a log file (using |
@DanTup, issue persists. I installed v2.18.1-beta.1 and followed your instructions. I see the first/Android launch mentioned in the log but I don't see the second/iPhoneX session mentioned, although I clicked on it. As mentioned before, this works without configuration attributes added in launch.json. I also want to note I am working without it currently and it hasn't stopped my progress, so hopefully this hasn't created pressures for you. Attached is the capture log: |
Thanks for testing. I'm not surprised the second debug session doesn't appear in the logs (since based on the message, I don't think Code is trying to start it), though it looks like you may have not included the Observatory log category - which is the bit I was mostly interested (specifically to see the shutdown code). Is it possible you can re-do and ensure both Flutter Run and Observatory are ticked for the log? |
I don't know if it's the same issue as this, but I was just trying to set a command up to use Ctrl+Shift+F5 when not debugging. However, whenever I press that keybinding it starts a debug session. I believe it's running the However that one has |
Scratch that last comment - I had a typo which meant my keybinding wasn't valid. Seems to work as expected with that fixed. I think maybe Cmd+Shift+F5 is triggering Start Debugging when Restart is not valid. |
Ok people this sounds a lot like an issue I fixed yesterday #59331 |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Dup of #60191 |
Two users of Dart Code have reported this issue but I'm stuck on how to troubleshoot.
We keybind
Ctrl
+F5
in Dart Code to the "Flutter: Hot Reload" with a condition ofinDebugMode && flutterProejctLoaded
. The defaultCtrl
+F5
provided by VS Code has a condition of!inDebugMode
so there should be no conflict.Here's a screenshot of the keybinds for Ctrl+F5:
However, when these users press
Ctrl
+F5
during a debug session, they see this error:This error comes from Code, and I presume it's because it's invoking "Start Without Debugging" (the keybind when not debugging). However, the orange status bar (and that they're trying to hot reload) suggests they are indeed in a debug session. Invoking our command from the palette works fine, so I don't think there's an issue with our command.
I don't know if this is a VS Code issue, but if not, I'm hoping for some ideas on how to track down what's happening.
The text was updated successfully, but these errors were encountered: