support yarn pnp for nodeAddonIncludes by Mesteery · Pull Request #7123 · microsoft/vscode-cpptools · GitHub
Skip to content

support yarn pnp for nodeAddonIncludes#7123

Merged
sean-mcmanus merged 2 commits into
microsoft:mainfrom
Mesteery:patch-1
Mar 15, 2021
Merged

support yarn pnp for nodeAddonIncludes#7123
sean-mcmanus merged 2 commits into
microsoft:mainfrom
Mesteery:patch-1

Conversation

@Mesteery

@Mesteery Mesteery commented Mar 7, 2021

Copy link
Copy Markdown
Contributor

This solves problems with Yarn PnP and node addon includes.

✅ Works correctly.

@ghost

ghost commented Mar 7, 2021

Copy link
Copy Markdown

@Mesteery Mesteery marked this pull request as draft March 7, 2021 18:26
This solves problems with Yarn PnP and node addon includes.
@Mesteery Mesteery marked this pull request as ready for review March 7, 2021 19:39
@sean-mcmanus

Copy link
Copy Markdown
Contributor

Thanks for the contribution. We'll try to review this later this week.

@sean-mcmanus sean-mcmanus requested review from a team and sean-mcmanus March 8, 2021 21:59

@sean-mcmanus sean-mcmanus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The stdout I get from yarn is

'yarn node v1.19.1\n"<workspaceFolder>\node_modules\\node-addon-api"\nDone in 0.51s.'

which isn't processed correctly because the code just expects the middle line. Is that supposed to work correctly and/or how are you getting it to work?

Comment thread Extension/src/LanguageServer/configurations.ts
@Mesteery

Copy link
Copy Markdown
Contributor Author

This is normal, because it's for Yarn Berry.
https://yarnpkg.com/getting-started/install

@sean-mcmanus

Copy link
Copy Markdown
Contributor

@sean-mcmanus sean-mcmanus requested a review from a team March 13, 2021 00:35
@sean-mcmanus sean-mcmanus merged commit 8285897 into microsoft:main Mar 15, 2021
@Mesteery Mesteery deleted the patch-1 branch March 15, 2021 21:40
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants