-
Notifications
You must be signed in to change notification settings - Fork 58
[wip] implement runtimeExecutable
version detection
#100
Conversation
|
I can respond more later, but what if runtimeExecutable is electron? or npm? |
First of all can we agree that 90% of cases it's For more common cases:
C:\code\3party\node-gyp> npm --versions
{ 'node-gyp': '3.6.0',
npm: '4.5.0',
ares: '1.10.1-DEV',
cldr: '30.0.3',
http_parser: '2.7.0',
icu: '58.2',
modules: '51',
node: '7.9.0',
openssl: '1.0.2k',
tz: '2016j',
unicode: '9.0',
uv: '1.11.0',
v8: '5.5.372.43',
zlib: '1.2.11' }
I'm happy to write all this code, just need some pointers from you:
P.S. From the feedback I got from JetBrains the issue of unabling to debug non-node.exe was not raised by their users (they've been doing version detection for a while). |
Yeah, most of the time we could check the version of 'node' that's on the path, and it will work out. But this introduces another tricky pitfall that will catch people.
If we don't detect whether |
My comment in nodejs/node#12364 was that you're talking edge cases.
Obviously but software is always an 90/10 game, if you can cover 10% of the cases you help 90% of your users.
Understood. We can do the check only if
As a fall back to an edge case of an edge case (user using special |
@roblourens even though it seems like
|
I feel like this is adding a lot of complexity to something that's difficult for users to understand, and difficult to debug via github issue.
I don't think that's safe. |
🤷It's your call. P.S. You could change the args to |
Thanks for the offer :) |
A very rudimentary version detection mechanism.
Let's discuss?
Fix nodejs/node#12364
Fix microsoft/vscode#24611
Ref: https://youtrack.jetbrains.com/issue/WEB-26568#comment=27-2120728