Skip to content
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

Update patchYamlJsonPackage.js to handle paths with spaces in applyPatch #270

Merged
merged 1 commit into from
May 29, 2024

Conversation

twwildey
Copy link
Contributor

Problem

When language-servers is checked out under a directory that contains spaces in the full path, npm install will fail to complete due to patchYamlJsonPackage.js.

Solution

This commit fixes this issue by ensuring file paths are quoted to support spaces in them.

Testing

Ensured npm install succeeds in a directory with spaces in the full path (i.e. under a user's Application Support folder for Sublime Text on OS X).

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@twwildey twwildey requested review from a team as code owners May 29, 2024 19:44
@twwildey
Copy link
Contributor Author

Updated PR for #268.

@justinmk3
Copy link
Contributor

I've once again created the PR: #270

Why? That loses the PR comments. Please just force-push to your existing branch instead of creating new PRs.

…yPatch`

When `language-servers` is checked out under a directory that contains spaces in the full path, `npm install` will fail to complete due to `patchYamlJsonPackage.js`.

This commit fixes this issue by ensuring file paths are quoted to support spaces in them.
@twwildey
Copy link
Contributor Author

I've updated to use execFileSync instead of execFile.

@twwildey
Copy link
Contributor Author

I've once again created the PR: #270

Why? That loses the PR comments. Please just force-push to your existing branch instead of creating new PRs.

Truth be told, I haven't used the PR feature for GitHub in ages, and I did not realize you could force-push to update an existing PR.

@justinmk3 justinmk3 merged commit 373c71c into aws:main May 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants