Latrasis / linter-solidity

Atom Linter support for Solidity
Other
27 stars 10 forks source link

Failed to load the linter-solidity package #37

Closed zhizhi325 closed 3 years ago

zhizhi325 commented 4 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.49.0 x64 Electron: 5.0.13 OS: Unknown Windows version Thrown From: linter-solidity package 0.5.0

Stack Trace

Failed to load the linter-solidity package

At soljson.cwrap is not a function

TypeError: soljson.cwrap is not a function
    at setupMethods (/packages/linter-solidity/node_modules/solc/wrapper.js:9:29)
    at /packages/linter-solidity/node_modules/solc/index.js:3:18)
    at /packages/linter-solidity/node_modules/solc/index.js:5:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:147498)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:151046)
    at Module.load (internal/modules/cjs/loader.js:701:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:633:12)
    at Function.Module._load (internal/modules/cjs/loader.js:625:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:146814)
    at /packages/linter-solidity/lib/linter.js:4:20)
    at /packages/linter-solidity/lib/linter.js:54:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:147498)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:151046)
    at Module.load (internal/modules/cjs/loader.js:701:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:633:12)
    at Function.Module._load (internal/modules/cjs/loader.js:625:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (internal/modules/cjs/helpers.js:14:16)
    at customRequire (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:1:735013)
    at Package.requireMainModule (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:3308425)
    at ~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:3294965
    at Package.measure (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:3293797)
    at Package.load (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:3294538)
    at PackageManager.loadAvailablePackage (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:381517)
    at ~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:379940
    at Config.transact (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:332005)
    at PackageManager.loadPackages (~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:11:379878)
    at ~/AppData/Local/atom/app-1.49.0/resources/app/static/<embedded>:1:755624
    at async Promise.all (index 0)

Commands

Non-Core Packages

autocomplete-solidity 0.3.4 
busy-signal 2.0.1 
intentions 1.1.5 
language-solidity 0.1.1 
linter 2.0.0 
linter-solidity 0.5.0 
linter-solium 0.0.5 
linter-ui-default 1.8.1