-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
Debugger stopped working when installing 1.74 in MacOS Ventura #168635
Comments
I have a nestjs typescript project (docker) and I'm having the same problem, after upgrading to last release the debug stoped to working and is not disconnecting on clicking the button, I have to reload the vscode window. Os: linux At the current moment using version: 1.73.1 and it worked perfectly. |
I have more insights on the debugger behavior. It seems that it's only affecting breakpoints that are set at the beginning of the program's life cycle. It looks like the debugger is taking a lot of time to get active and by the time it's active, some breakpoints cannot be hit. Not sure what changed in this version but in conjunction with MacOS Ventura made the debugger response time to grow. As I said, with the previous version in the same OS it works fine. |
By the way, my machine is an M1 Max with 64GB. |
Interestingly, if I change this: "outFiles": [
"${workspaceFolder}/extension/.output.bundle/desktop/*.*",
"${workspaceFolder}/extension/.output.bundle/frontend/*.*"
], to "outFiles": [
"${workspaceFolder}/extension/.output.bundle/**/*.*",
], it works again. I'll keep this open in case the team wants to track this degradation in the debugging experience but I can at least debug now. |
I can confirm that this same issue is affecting latest insiders version (1.75) in Windows 11 working with WSL. |
Thanks, will look at it. |
If you can share your logs as well, that would helpful: /jsDebugLogs |
Please collect trace logs using the following instructions:
|
Hi @connor4312. I just sent you an email with the js logs. Let me know if you need anything else. |
Thanks. @andreamah / @roblourens this looks like a change or regression in the const disposable = vscode.commands.registerCommand('extension.helloWorld', async () => {
const results: string[] = [];
const glob = await vscode.window.showInputBox({ prompt: 'Glob pattern' });
await vscode.workspace.findTextInFiles({ pattern: 'foo' }, {
include: new vscode.RelativePattern(vscode.workspace.workspaceFolders![0], glob!),
}, r => results.push(r.uri.toString()));
vscode.window.showInformationMessage(JSON.stringify(results));
}); ...and a workspace with files This is not the first issue about how globs get combined--would this be easier to deal with if the API took an array of glob patterns instead of requiring the consumer to combine them? As a stopgap I could have js-debug issue separate |
Was |
I also tried it with 1.68 (from quite a while ago) and I wasn't able to see it working there either? |
Yea, I'm not sure whether this is a regression or not. |
Did you use comma-separated globs previously and it worked? |
I believe it did at one point, or perhaps in some circumstances, though it's always been a little hit and miss. Maybe they were just 'accidentally' supported in the way things got passed into ripgrep. |
From what I'm seeing, the API assumes that there is only one glob assigned to Instead of passing in comma-separated globs, perhaps allowing
I'm not too sure what behavior you were seeing before with the comma-separated system working? |
In grooming, I saw #104889, is that the same? |
Probably can be merged, will close it
Would be great! |
FYI, I cannot reproduce the issue anymore with the latest |
@connor4312 I sent a email with my log trace that just test again and still having problem with version 1.74.1 |
My exact text file on launch:
|
@iurylippo your issue is not related to this; please open a new issue. Also, the log you sent is truncated. |
Fixes #1479 Relates to microsoft/vscode#168635 Previously, we naively joined all incoming globs together and ran a single search for them. However, there are two problems: - vscode's findTextInFiles doesn't really support multiple globs - **-prefixed negations, like `!**/node_modules/**`, should apply everywhere, but globbing behavior is to only apply that to the base path, which led to confusion (#1479) This PR redoes the logic. If there are N positive globs, we'll do N searches in parallel, and apply relevant negations to each one.
I was touching glob stuff for a related issue, so I have also taken the workaround in microsoft/vscode-js-debug#1486 which seems to work. But once this gets fixed I can move back to the single glob run and just do some mutations instead. |
Thinking about this, I think that something like |
Are there any updates here? I'm still experiencing this. (Workaround was to download a previous release and use that instead.) Thank you. |
merging with #169422, which is the root cause. For now, the js debugger should have a fix for this on the user side. |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
Other things I've tested:
I'll try to update this issue with some project I can share exposing this behavior.
The text was updated successfully, but these errors were encountered: