HAECHI-LABS/vvisp

findImportPath.js has unexpected behavior

unix1916 opened this issue · 1 comments

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[v] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Current behavior

c:\GitHub\HAECHI-LABS\vvisp-sample>vvisp compile
Compiling...
compile contracts\Haechi.sol...
compile contracts\HaechiGym.sol...
compile contracts\interface\IHaechi.sol...
compile contracts\interface\IHaechiGym.sol...
compile contracts\Migrations.sol...
compile contracts\SampleToken.sol...
compile contracts\upgradeable\VvispRegistry.sol...
(node:38464) UnhandledPromiseRejectionWarning: Error: Module path, interface/IHaechi.sol is not found
at module.exports (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\src\findImportPath.js:16:11)
at findImports (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\src\compile.js:66:33)
at Array. (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules\solc\wrapper.js:18:20)
at jsCall_viii (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:1:1120760)
at Array.Vhb (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:12:140945)
at Array.pd (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:6:30929)
at Object.Uhb [as dynCall_viii] (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:12:140893)
at invoke_viii (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:1:1120598)
at Array.Fv (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:9:32130)
at Object.wjb [as dynCall_viiii] (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:12:147059)
at invoke_viiii (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:1:1121636)
at Ev (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:9:27381)
at Array.Jv (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:9:47870)
at Object.Uab [as dynCall_ii] (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:12:102828)
at invoke_ii (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:1:1115279)
at Array.be (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:6:76407)
at Object.Uhb [as dynCall_viii] (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:12:140893)
at invoke_viii (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:1:1120598)
at Array.ce (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:6:107456)
at Object.Uhb [as dynCall_viii] (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:12:140893)
at invoke_viii (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:1:1120598)
at Array.de (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:6:110284)
at Object.Uhb [as dynCall_viii] (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:12:140893)
at invoke_viii (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:1:1120598)
at dd (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:6:6729)
at ccallFunc (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:1:8320)
at C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules@haechi-labs\vvisp-utils\node_modules.cache\vvisp\soljson-v0.4.24+commit.e67f0147.js:1:8626
at runWithReadCallback (C:\Users\AI\AppData\Roaming\npm\node_modules@haechi-labs\vvisp\node_modules\solc\wrapper.js:46:24)
(node:38464) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with
.catch(). (rejection id: 1)
(node:38464) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment


vvisp version: 1.0.2


Environment:
- Node version: v10.15.0
- Operating system: windows10 pro

Others:

I think it seems that Windows's path system is different from unix. I'll check this.