Module std::token could not be found

Topic discussion checklist

  • Run $ fuelup show and add the output below
Default host: x86_64-unknown-linux-gnu
fuelup home: /home/shivam/.fuelup

installed toolchains
latest-x86_64-unknown-linux-gnu (default)

active toolchain
latest-x86_64-unknown-linux-gnu (default)
  forc : 0.49.3
    - forc-client
      - forc-deploy : 0.49.3
      - forc-run : 0.49.3
    - forc-crypto : 0.49.3
    - forc-debug : Could not parse version (empty string, expected a semver version)
    - forc-doc : 0.49.3
    - forc-explore : 0.28.1
    - forc-fmt : 0.49.3
    - forc-lsp : 0.49.3
    - forc-tx : 0.49.3
    - forc-wallet : 0.4.3
  fuel-core : 0.22.4
  fuel-core-keygen : 0.22.4

fuels versions
forc : 0.54.0
forc-wallet : 0.54.0
1 Like

This example appears to be out of date.

The imports have been updated in beta-5
From: use std::token::*
To: use std::asset::*

1 Like

Any suggestions how can I enable the code suggestions and auto imports for sway in vscode. As I think this could be solved by the auto imports in sway vscode extension.

1 Like


there is vscode sway plugin not sure if it does what you are looking for, maybe you can give it a go

1 Like

Yeah, I have tried that extension, but it is under development as many features are unavailable. That’s why I was hoping to know when those features will be available. As you can see in the extension too the major feature which is code completions is yet to be made available.

Any suggestions where can I get complete guide for the same. How can I know what has changed and what are the proper imports that I can use.