Open vtamara opened 9 months ago
I could compile by running:
cd node_modules/@nomicfoundation/solidity-analyzer
$EDITOR index.js
Adding this section to index.js
:
case "openbsd":
if (arch !== "x64") {
throw new Error(`Unsupported architecture on OpenBSD: ${arch}`);
}
localFileExisted = existsSync(
join(__dirname, "solidity-analyzer.openbsd-x64.node")
);
try {
if (localFileExisted) {
nativeBinding = require("./solidity-analyzer.openbsd-x64.node");
} else {
nativeBinding = require("@nomicfoundation/solidity-analyzer-openbsd-x64");
}
} catch (e) {
loadError = e;
}
break;
Installing rust with pkg_add rust
And compiling with
yarn
yarn build
That process generated the attached binary.
solidity-analyzer.openbsd-x64.node.zip
Having that I could run npx hardhat compile
Blocked by https://github.com/NomicFoundation/solidity-analyzer/issues/17 which in turn is blocked by https://github.com/napi-rs/napi-rs/issues/1183
Describe the feature
With OpenBSD/adJ 7.4 I can create a new Javascript project with:
But trying to compile produces the following error:
Search terms
No response