-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
VSCode Debug on windows SyntaxError: missing ) after argument list #27355
Comments
Any updates on this? having the same issue here |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
This command worked for me: I'm running windows 10. Verified on Node 14.5.3 + 15.0 and gatsby 2.24.91 + 2.30.1. |
I see "debugger attached" only twice. There's just 1 node process running so I guess it's alright? |
Why is this closed? What's the solution to the problem? |
Whilst this config works like a charm on Linux, on Windows 10 there's an exception. I've modified the config to use the direct path to gatsby distribution on Windows in the following way. {
"version": "0.2.0",
"configurations": [
{
"name": "Gatsby develop",
"type": "pwa-node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/.bin/gatsby",
"windows": {
"program": "${workspaceRoot}/node_modules/gatsby/dist/bin/gatsby"
},
"args": ["develop"],
"runtimeArgs": ["--nolazy"],
"console": "integratedTerminal"
},
{
"name": "Gatsby build",
"type": "pwa-node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/.bin/gatsby",
"windows": {
"program": "${workspaceRoot}/node_modules/gatsby/dist/bin/gatsby"
},
"args": ["build"],
"runtimeArgs": ["--nolazy"],
"console": "integratedTerminal"
}
]
} |
Same problem here. And the proposed solution works for me. |
I think this can be added as a temporary measure. I think it is good to try to maintain the same configuration for all platforms. Really curious, why Thank you for your PR. |
I discovered this issue when searching for troubles in debugging in vscode. I started with
Total fail. No errors, the whole thing just hangs. Now I'm using the configurations from the website https://www.gatsbyjs.com/docs/debugging-the-build-process/ and that totally works. Many thanks! One comment. When I'm looking at the new launch.json file in VSCode, there are a whole lot of warnings... Each of the configurations I copied from the link above generate four warnings:
Is that correct? |
Description
I've tried to debug the build process following the docs - VS Code Debugger (Manual Config), after saving and running
Gatsby develop
config I got the following error:I workaround this by changing the config to:
It worked but logged
Debugger attached.
4 times, which I'm not sure is the correct behavior.Steps to reproduce
gatsby new bug-repro https://github.com/gatsbyjs/gatsby-starter-hello-world
add to
.vscode/launch.json
file:Environment
IDE: VSCode 1.49.3 x64 - using git-bash version 2.23.0.windows.1 as default terminal
System:
OS: Windows 10 10.0.19041
CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
Binaries:
Node: 12.18.3 - ~\AppData\Local\Temp\yarn--1602241778964-0.05746843170514704\node.CMD
Yarn: 1.22.4 - ~\AppData\Local\Temp\yarn--1602241778964-0.05746843170514704\yarn.CMD
npm: 6.14.6 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.423.0), Chromium (85.0.564.70)
npmPackages:
gatsby: ^2.24.66 => 2.24.66
gatsby-image: ^2.4.20 => 2.4.20
gatsby-plugin-google-analytics: ^2.3.15 => 2.3.15
gatsby-plugin-manifest: ^2.4.32 => 2.4.32
gatsby-plugin-mdx: ^1.2.46 => 1.2.46
gatsby-plugin-offline: ^3.2.29 => 3.2.29
gatsby-plugin-react-helmet: ^3.3.12 => 3.3.12
gatsby-plugin-sharp: ^2.6.37 => 2.6.37
gatsby-plugin-styled-components: ^3.3.12 => 3.3.12
gatsby-plugin-typography: ^2.5.12 => 2.5.12
gatsby-remark-images: ^3.3.33 => 3.3.33
gatsby-remark-prismjs: ^3.5.16 => 3.5.16
gatsby-source-filesystem: ^2.3.31 => 2.3.31
gatsby-source-medium: ^2.3.12 => 2.3.12
gatsby-transformer-sharp: ^2.5.16 => 2.5.16
Would like to submit a PR is possible
The text was updated successfully, but these errors were encountered: