VSCode cannot find the header files while compiling dependencies like bcrypt
vbservices opened this issue · 1 comments
Not sure how I can initialize the C++ environment from Visual Studio?
(Debugger) Initialization failed because an exception was raised:
** (Mix.Error) Could not compile with "nmake" (exit status: 2).
One option is to install a recent version of
Visual C++ Build Tools
either manually or using Chocolatey -
choco install VisualCppBuildTools
.
After installing Visual C++ Build Tools, look in the "Program Files (x86)"
directory and search for "Microsoft Visual Studio". Note down the full path
of the folder with the highest version number. Open the "run" command and
type in the following command (make sure that the path and version number
are correct):
cmd /K "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
This should open up a command prompt with the necessary environment variables
set, and from which you will be able to run the "mix compile", "mix deps.compile",
and "mix test" commands.
(mix) lib/mix.ex:291: Mix.raise/1
lib/mix/tasks/compile.make.ex:95: Mix.Tasks.Compile.ElixirMake.run/1
(mix) lib/mix/task.ex:314: Mix.Task.run_task/3
This project has moved!
It's now being maintained by proactive volunteers from the Elixir community over at elixir-lsp/vscode-elixir-ls. The main ElixirLS codebase is now at elixir-lsp/elixir-ls. Updates will continue to be published from that repo to the original VS Code extension, so no need to switch plugins.
To avoid inundating the new maintainers with issues, please verify that your issue persists with the latest version of the extension (which is published from the new repo) before re-filing your issue there.
Thanks for using ElixirLS!