-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix installation to paths with spaces #907
Comments
This is the config we set: https://github.com/appsignal/appsignal-nodejs/blob/main/binding.gyp |
I can't find any place we set the current path and don't escape it. This issue (nodejs/node-gyp#65), although closed, has activity on it indicating it's not fixed in the latest versions. Here's a possible fix in a PR: nodejs/node-gyp#2556 If it exists in node-gyp and it's not being fixed we can tell people to not use spaces in their path or switch to another tool. |
I've confirmed the issue is fixed by using nodejs/node-gyp#2556, so it's not on our end. What shall we do: document, make noise on the issues/PRs, switch to another tool? |
Thank you for confirming it. 💯 I don't know. I don't understand why that PR hasn't been merged for over a year. Perhaps because of the comment that says that it should be fixed upstream, where it hasn't been fixed either. I don't know what alternatives exist to |
I'd love it if we could move it along by providing a test case or fixing it upstream, if that's their preferred solution. The more difficult part (for me) will be a sending a PR with a reproducible test case.
cmake-js #386 got suggested once, would also remove our Python dependency(?), but I have no idea how good that tool is. We might be trading in one set of quirks for another set we'd have to get burned by again. |
Submitted the fix upstream (the work of @davej (oh hi 👋)) in nodejs/gyp-next#204. Let's see what happens. |
Fix submitted upstream in nodejs/gyp-next#204. Closing issue, although I don't see it being merged soon. |
When the full file system path of the folder where the
package.json
is located contains spaces, the AppSignal extension fails to compile when installing the AppSignal package from npm. At least on macOS, but probably not just on macOS. Repro:You'll see in the install report that
node-gyp
at some point passes a path toclang
unquoted, resulting in:It's unclear at this moment whether this is an issue with node-gyp itself, or with how we configure it.
It looks to be a bug in node-gyp: #907 (comment)
The text was updated successfully, but these errors were encountered: