moonrepo / node-plugin

A proto WASM plugin for Node.js, npm, pnpm, and yarn.
MIT License
8 stars 4 forks source link

Error: plugin::failed × extism_call failed #12

Closed lzm0x219 closed 1 year ago

lzm0x219 commented 1 year ago

Commands related to node all report this error.

PROTO_LOG=trace RUST_BACKTRACE=1 proto install node 18.18.0

Result:

[DEBUG 2023-10-21 10:22:37] proto  Running proto v0.20.0  args=["proto", "install", "node", "18.18.0"]
[TRACE 10:22:37] starbase::app  Running startup phase with 1 systems
[TRACE 10:22:37] starbase::app  Running analyze phase with 1 systems
[TRACE 10:22:37] starbase::app  Running execute phase with 2 systems
[DEBUG 10:22:37] proto_core::tool_loader:install  Traversing upwards to find a configured plugin  tool="node"
[TRACE 10:22:37] warpgate::loader:install  Creating plugin loader  cache_dir="/Users/liuziming/.proto/plugins"
[TRACE 10:22:37] warpgate::loader:install  Loading plugin node  plugin="node" locator="source:https://github.com/moonrepo/node-plugin/releases/latest/download/node_plugin.wasm"
[TRACE 10:22:37] starbase_utils::fs:install  Reading file metadata  file="/Users/liuziming/.proto/plugins/node-latest-0d2a287af2010a2585863edad0b420538b1a35e4f760ea4c23164e78e449f6b0.wasm"
[TRACE 10:22:37] warpgate::loader:install  Plugin already downloaded and cached  plugin="node" path="/Users/liuziming/.proto/plugins/node-latest-0d2a287af2010a2585863edad0b420538b1a35e4f760ea4c23164e78e449f6b0.wasm"
[DEBUG 10:22:37] proto_core::tool_loader:install  Loading WASM plugin  source="/Users/liuziming/.proto/plugins/node-latest-0d2a287af2010a2585863edad0b420538b1a35e4f760ea4c23164e78e449f6b0.wasm"
[TRACE 10:22:37] proto_core::tool_loader:install  Storing tool identifier  id="node"
[TRACE 10:22:37] proto_core::tool_loader:install  Storing user configuration  config={"auto_clean":false,"auto_install":false,"node_intercept_globals":true}
[TRACE 10:22:37] proto_core::tool_loader:install  Storing proto environment  env={"arch":"x64","os":"macos","home_dir":{"path":"/home/","virtual_prefix":"/home","real_prefix":"/Users/liuziming"},"proto_dir":{"path":"/home/.proto","virtual_prefix":"/home","real_prefix":"/Users/liuziming"}}
[DEBUG 10:22:37] proto_core::tool:install  Creating tool node and instantiating plugin
[DEBUG 10:22:37] proto_core::tool_manifest:install:load  Loading manifest.json  file="/Users/liuziming/.proto/tools/node/manifest.json"
[DEBUG 10:22:37] proto_core::tool:install  Created tool node and its WASM runtime
[TRACE 10:22:37] warpgate::plugin:install  Calling plugin function register_tool  plugin="node" input={"id":"node"}
[TRACE 10:22:37] warpgate::plugin:install  Called plugin function register_tool  plugin="node" output={"inventory":{"disable_progress_bars":false},"name":"Node.js","plugin_version":"0.4.0","self_upgrade_commands":[],"type":"Language"}
[DEBUG 10:22:37] proto_core::tool:install  Resolving a semantic version or alias  tool="node" initial_version="18.18.0"
[DEBUG 10:22:38] proto_core::tool:install  Loading available versions  tool="node"
[TRACE 10:22:38] warpgate::plugin:install  Calling plugin function load_versions  plugin="node" input={"context":{"tool_dir":{"path":"/home/.proto/tools/node/latest","virtual_prefix":"/home","real_prefix":"/Users/liuziming"},"version":"latest"},"initial":"18.18.0"}
[TRACE 10:22:39] starbase::app  Running shutdown phase with 1 systems
Error: plugin::failed

  × extism_call failed
milesj commented 1 year ago

@lzm0x219 Can you delete the node plugins in ~/.proto/plugins and try again?

lzm0x219 commented 1 year ago

It's ok!