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

Visual Studio finder is doing a case-sensitive path check #1805

Closed
watchclocker opened this issue Jul 3, 2019 · 3 comments
Closed

Visual Studio finder is doing a case-sensitive path check #1805

watchclocker opened this issue Jul 3, 2019 · 3 comments
Assignees

Comments

@watchclocker
Copy link

  • Node Version: v12.5.0 -- npm 6.9.0
  • Platform: Windows 10
  • Compiler: Visual Studio 2017 (msbuild v15.9.13)
  • Module: node-gyp configure

The Visual Studio finder is doing a case-sensitive check on paths Those checks should probably be case insensitive.

See lines 406 and 410 of ./lib/find-visualstudio.js

406: if (this.configPath && this.configPath !== vsPath)
410: if (this.envVcInstallDir && this.envVcInstallDir !== vsPath) {

Those might better be:

406: if (this.configPath && this.configPath.toLowerCase() !== vsPath.toLowerCase())
410: if (this.envVcInstallDir && this.envVcInstallDir.toLowerCase() !== vsPath.toLowerCase()) {

Verbose output (from npm or node-gyp):
C:\Users\watch\projects\edge-js>node-gyp configure --msvs_version=2017
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.2
gyp info using node@12.5.0 | win32 | ia32
gyp info find Python using Python version 2.7.16 found at "c:\python27\python2.exe"
gyp ERR! find VS
gyp ERR! find VS msvs_version was set from command line or npm config
gyp ERR! find VS - looking for Visual Studio version 2017
gyp ERR! find VS running in VS Command Prompt, installation path is:
gyp ERR! find VS "d:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise"
gyp ERR! find VS - will only use this version
gyp ERR! find VS checking VS2019 (16.1.29025.244) found at:
gyp ERR! find VS "d:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise"
gyp ERR! find VS - found "Visual Studio C++ core features"
gyp ERR! find VS - found VC++ toolset: v142
gyp ERR! find VS - found Windows SDK: 10.0.17763.0
gyp ERR! find VS - msvs_version does not match this version
gyp ERR! find VS checking VS2017 (15.9.28307.718) found at:
gyp ERR! find VS "D:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise"
gyp ERR! find VS - found "Visual Studio C++ core features"
gyp ERR! find VS - found VC++ toolset: v141
gyp ERR! find VS - found Windows SDK: 10.0.17763.0
gyp ERR! find VS - does not match this Visual Studio Command Prompt
gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - found in "D:\Program Files (x86)\Microsoft Visual Studio 14.0"
gyp ERR! find VS - MSBuild in "C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe"
gyp ERR! find VS - msvs_version does not match this version
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS msvs_version does not match this VS Command Prompt or the
gyp ERR! find VS installation cannot be used.
gyp ERR! find VS
@bzoz
Copy link
Contributor

bzoz commented Jul 4, 2019

cc @refack

@joaocgreis
Copy link
Member

I think this one is for me. I'll test it and open a PR.

@joaocgreis joaocgreis self-assigned this Jul 4, 2019
joaocgreis added a commit to JaneaSystems/node-gyp that referenced this issue Jul 4, 2019
@joaocgreis
Copy link
Member

PR: #1806

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 a pull request may close this issue.

3 participants