This repository was archived by the owner on Mar 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Build command does not find contract to build #306
Copy link
Copy link
Open
Labels
Description
Trying to build a contract from the GUI results in a "Everything is up to date, there is nothing to compile" message and the contract does not compile. It's as though truffle doesn't recognize that the file is located in the ./contracts/ folder.
Running the exact GUI-specific command from the CLI provides the same result, but:
- running the GUI-specific command from the CLI and omitting the file name causes all contracts to build successfully.
- running the GUI-specific command from the CLI and prepending the file name with "./contracts/" causes the individual contract to build as expected.
Once the contracts are built, there is never an option to deploy them when I right click on the contract.
- Truffle for VS Code Extension version: 2.7.1
- Dev Environment: Windows 11 Pro / WSL2:Ubuntu 22.04
GUI output
[Truffle: Requirements] Get version for required apps: truffle
[Truffle: Requirements] Current state for versions: [{"app":"node","isValid":true,"requiredVersion":{"max":"19.0.0","min":"14.0.0"},"version":"18.15.0"},{"app":"npm","isValid":true,"requiredVersion":{"max":"9.0.0","min":"6.14.15"},"version":"8.19.4"},{"app":"git","isValid":true,"requiredVersion":"2.10.0","version":"2.34.1"},{"app":"truffle","isValid":true,"requiredVersion":{"max":"6.0.0","min":"5.0.0"},"version":"5.8.0"},{"app":"ganache","isValid":true,"requiredVersion":{"max":"8.0.0","min":"7.4.3"},"version":"7.7.6"}] Invalid: false
[Truffle: Execute command]
Working dir: /home/***/blockchains/evm
Running command
npx truffle compile --config truffle-config.js WithdrawalContract.sol
[Truffle: Execute command]
Compiling your contracts...
[Truffle: Execute command] ===========================
[Truffle: Execute command] > Compiling WithdrawalContract.sol
[Truffle: Execute command] > Everything is up to date, there is nothing to compile.
[Truffle: Execute command] Finished running command