Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle system<>SDK binary version mismatch for fuels CLI #2277

Open
Dhaiwat10 opened this issue May 9, 2024 · 0 comments · May be fixed by #2143
Open

Handle system<>SDK binary version mismatch for fuels CLI #2277

Dhaiwat10 opened this issue May 9, 2024 · 0 comments · May be fixed by #2143
Assignees
Labels

Comments

@Dhaiwat10
Copy link
Member

The fuels CLI uses the system binaries over the soon-to-be deprecated built-in binaries whenever the user has them installed. But in some cases, the version of the binaries expected by the SDK and the version of the binaries that the user has installed can be different. In such cases, the error message that the users see is not self-explanatory:

❯ pnpm fuels:dev

> template-nextjs@0.1.3 fuels:dev /Users/dhaiwat/code/dhaii
> fuels dev

Starting source 'fuel-core' node..
error: unexpected argument '--snapshot' found

Usage: fuel-core run --ip <IP> --port <PORT> --db-path <DB_PATH> --min-gas-price <MIN_GAS_PRICE> --consensus-key <CONSENSUS_KEY> <--poa-instant <INSTANT>>

For more information, try '--help'.
error: unexpected argument '--snapshot' found

Usage: fuel-core run --ip <IP> --port <PORT> --db-path <DB_PATH> --min-gas-price <MIN_GAS_PRICE> --consensus-key <CONSENSUS_KEY> <--poa-instant <INSTANT>>

For more information, try '--help'.

In such cases, we should log out an error message like so:

Error: fuels v0.84.0 is compatible with fuel-core v0.26.0, but you have fuel-core v0.24.0 installed.

(Maybe we can also add instructions for how they can install the specific compatible version)

@Dhaiwat10 Dhaiwat10 added the feat label May 9, 2024
@Dhaiwat10 Dhaiwat10 changed the title Log out a proper error message when there is a version mismatch between SDK and system fuel-core / forc binaries when running fuels dev Handle system<>SDK binary version mismatch for fuels CLI May 9, 2024
@petertonysmith94 petertonysmith94 self-assigned this May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants