Skip to content
This repository was archived by the owner on Apr 18, 2021. It is now read-only.

Warning at installation, and error in compile #117

Closed
jinserk opened this issue Mar 10, 2019 · 3 comments
Closed

Warning at installation, and error in compile #117

jinserk opened this issue Mar 10, 2019 · 3 comments

Comments

@jinserk
Copy link

jinserk commented Mar 10, 2019

I'm submitting a...


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

Current behavior

When I install:

$ npm install -g @haechi-labs/vvisp
npm WARN deprecated babel-preset-es2015@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated tar.gz@1.0.7: ⚠️  WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
npm WARN deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support
/home/jinserk/.nvm/versions/node/v10.15.3/bin/vvisp -> /home/jinserk/.nvm/versions/node/v10.15.3/lib/node_modules/@haechi-labs/vvisp/bin/vvisp.js
+ @haechi-labs/vvisp@1.0.0
updated 4 packages in 18.86s

and when compile:

$ vvisp init


                                                       
    `7MMF'   `7MF'`7MMF'   `7MF'`7MMF' .M"""bgd `7MM"""Mq. 
      `MA     ,V    `MA     ,V    MM  ,MI    "Y   MM   `MM.
       VM:   ,V      VM:   ,V     MM  `MMb.       MM   ,M9 
        MM.  M'       MM.  M'     MM    `YMMNq.   MMmmdM9  
        `MM A'        `MM A'      MM  .     `MM   MM       
         :MM;          :MM;       MM  Mb     dM   MM       
          VF            VF      .JMML.P"Ybmmd"  .JMML.     

        

@haechi-labs/vvisp v1.0.0
  The easiest smart contract development framework and command line interface on EVM based blockchain

Initializing Directory...
Success!

  Run vvisp -h for more information
  Clone git+https://github.com/HAECHI-LABS/vvisp.git for Contributing!

$ vvisp compile
Compiling...
compile contracts/Migrations.sol...
compile contracts/upgradeable/VvispRegistry.sol...
(node:5382) UnhandledPromiseRejectionWarning: Error: Module path, @haechi-labs/vvisp-contracts/upgradeable/VvispLibraryRegistry.sol is not found
    at module.exports (/home/jinserk/.nvm/versions/node/v10.15.3/lib/node_modules/@haechi-labs/vvisp/node_modules/@haechi-labs/vvisp-utils/src/findImportPath.js:16:11)
    at findImports (/home/jinserk/.nvm/versions/node/v10.15.3/lib/node_modules/@haechi-labs/vvisp/node_modules/@haechi-labs/vvisp-utils/src/compile.js:66:33)
    at Array.<anonymous> (/home/jinserk/.nvm/versions/node/v10.15.3/lib/node_modules/@haechi-labs/vvisp/node_modules/solc/wrapper.js:18:20)
    at jsCall_viii (<anonymous>:1:1166126)
    at Array.bmb (<anonymous>:12:562020)
    at Array.ld (<anonymous>:6:4605)
    at Object.amb [as dynCall_viii] (<anonymous>:12:561968)
    at invoke_viii (<anonymous>:1:1165964)
    at Array.xw (<anonymous>:8:76782)
    at Object.Enb [as dynCall_viiii] (<anonymous>:12:568134)
    at invoke_viiii (<anonymous>:1:1167002)
    at ww (<anonymous>:8:72035)
    at Array.Bw (<anonymous>:8:92659)
    at Object.afb [as dynCall_ii] (<anonymous>:12:523902)
    at invoke_ii (<anonymous>:1:1160645)
    at Array.yd (<anonymous>:6:40211)
    at Object.amb [as dynCall_viii] (<anonymous>:12:561968)
    at invoke_viii (<anonymous>:1:1165964)
    at zd (<anonymous>:6:71252)
    at Ad (<anonymous>:6:74204)
    at ed (<anonymous>:6:2633)
    at ccallFunc (<anonymous>:1:8320)
    at <anonymous>:1:8626
    at runWithReadCallback (/home/jinserk/.nvm/versions/node/v10.15.3/lib/node_modules/@haechi-labs/vvisp/node_modules/solc/wrapper.js:46:24)
    at compileStandard (/home/jinserk/.nvm/versions/node/v10.15.3/lib/node_modules/@haechi-labs/vvisp/node_modules/solc/wrapper.js:83:14)
    at Object.compileStandardWrapper (/home/jinserk/.nvm/versions/node/v10.15.3/lib/node_modules/@haechi-labs/vvisp/node_modules/solc/wrapper.js:90:14)
    at module.exports (/home/jinserk/.nvm/versions/node/v10.15.3/lib/node_modules/@haechi-labs/vvisp/node_modules/@haechi-labs/vvisp-utils/src/compile.js:32:10)
(node:5382) 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:5382) [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.0


Environment:
- Node version: 10.15.3
- NPM version: 6.9.0
- Operating system: Ubuntu 18.04

Others:

@JhChoy
Copy link
Contributor

JhChoy commented Mar 11, 2019

If you do npm install or yarn install in that package, it would be fine.
The registry file contracts/VvispRegistry.sol need @haechi-labs/vvisp-contracts module.

There is no malfunction with Warning, but Warning should be fixed, I agree.

@jinserk
Copy link
Author

jinserk commented Mar 11, 2019

Thanks @JhChoy. I didn't know I have to do npm install after vvisp init. You'd better to add this to the README.md. Anyway, it works and I can compile my first vvisp project.

@jinserk jinserk closed this as completed Mar 11, 2019
@JhChoy
Copy link
Contributor

JhChoy commented Mar 11, 2019

Yeap! Many thanks!

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants