Bummer. I have this:
C:\Users\mtied>path
PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn;C:\Program Files\Microsoft SQL Server\140\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn;C:\Program Files\Microsoft SQL Server\140\DTS\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Windows Live\Shared;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Users\mtied\AppData\Local\Microsoft\WindowsApps;C:\Users\mtied\AppData\Local\Programs\Fiddler;C:\Users\mtied\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\RemObjects Software\Elements\Bin;
And the compiler still complains:
Severity Code Description Project File Line Suppression State
Error (E0) Internal error: System.DllNotFoundException: Unable to load DLL ‘RemObjects.Elements.LLVM.dll’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at LLVM.Interop.LLVMInterop.LLVMInitializeAll()
at RemObjects.Elements.Island.IslandOutput…cctor() WebAsmModule C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\RemObjects Software\Elements\RemObjects.Elements.Island.WebAssembly.targets 42
… time passes …
Seems like there are more paths at the front of the path string that the advanced path editor doesn’t list. Could be one of those is invalid and screws up the path search mechanism, but I don’t see how to fix those.
Off to Bing I go…
… time passes …
All the rest of the path pieces DO exist.
… time passes …
I read something about being admin to edit system environment variables so I loaded control panel as administrator and it still didn’t show a bunch of the paths. Nothing Is Ever Easy (niee)
… time passes …
Oh, I got it. The top and bottom of the panel show different sets of variables. I just have to select the bottom one. I just saw the path at the top end pressed the edit button. Gotta learn to look around more
It is still a problem though since all the paths seem valid, but compiler still isn’t finding llvm.dll.
… time passes …
Oh, that is odd. Although I quit VS and re-entered it, it still didn’t compile. So I checked that VS was really gone from task manager and it was gone. But when I just now went in to VS again, NOW it finds it and compiles. Weird. Almost like the change to the path had a time delay or something. Or it was cached.
Oh well, I appear to be good to go on and find the next oddball thing.
Thanks to both Marc and Carlo.
… time passes …
Rats. Although it compiled, I don’t think it is running right. I see the static text in the example on the page, but the webassembly code didn’t seem to do what I think it is doing (locating a field by id and changing its text). In the debug output window I get:
Connected to remote debugger
Loading module
An exception of type: ReferenceError occurred and was ignored
The program ‘WebAsmModule: C:\Users\mtied\Documents\Visual Studio 2017\Projects\WebAsm\WebAsmModule\WebAsmModule\bin\Debug\WebAssembly\WebAsmModule’ has exited with code 0 (0x0).
Not sure what the “referenceerror” is about, but I’m guessing it ignored the webassembly code part.
I see: WebAsmModule.instantiate(“wasm/WebAsmModule.wasm”).then(function (result) {
and I see the wasm is actually in “wasm32” subfolder. Tried changing that line to wasm32, but it didn’t make a difference. I also tried putting the full path to the wasm. Still no go. Am I missing something else in the path?