Fuel LSP not working in VS Code

fuelup show

Default host: aarch64-apple-darwin
fuelup home: /Users/haardik/.fuelup

Installed toolchains
--------------------
latest-aarch64-apple-darwin (default)
nightly-2024-04-12-aarch64-apple-darwin

active toolchain
----------------
latest-aarch64-apple-darwin (default)
  forc : 0.66.5
    - forc-client
      - forc-deploy : 0.66.5
      - forc-run : 0.66.5
    - forc-crypto : 0.66.5
    - forc-debug : 0.66.5
    - forc-doc : 0.66.5
    - forc-fmt : 0.66.5
    - forc-lsp : 0.66.5
    - forc-tx : 0.66.5
    - forc-wallet : 0.11.1
  fuel-core : 0.40.0
  fuel-core-keygen : 0.40.0

fuels versions
--------------
forc : 0.66.10
forc-wallet : 0.66.9

Fuel LSP extension installed in VS Code. No intellisense/autocomplete at all.

Output of “Sway LSP Client” in VS Code:

INFO [1/16/2025, 12:46:28 PM]: Starting the Sway Language Client and Server
INFO [1/16/2025, 12:46:28 PM]: Extension version: 0.3.6
INFO [1/16/2025, 12:46:28 PM]: Using configuration {
  trace: { server: 'off', extension: false },
  debug: { showCollectedTokensAsWarnings: 'off' },
  diagnostic: {
    showWarnings: true,
    showErrors: true,
    binPath: '',
    disableLsp: false
  },
  logging: { level: 'error' },
  inlayHints: { renderColons: true, typeHints: true, maxLength: 25 },
  onEnter: { continueDocComments: false, continueComments: false }
}
INFO [1/16/2025, 12:46:28 PM]: Server executable version: forc-lsp 0.66.5
INFO [1/16/2025, 12:46:28 PM]: Latest forc version: 0.63.5
INFO [1/16/2025, 12:46:28 PM]: Using server executable: /Users/haardik/.fuelup/bin/forc-lsp
INFO [1/16/2025, 12:46:28 PM]: Client has connected to the Sway Language Server Successfully!

Not sure what’s going wrong tbh

1 Like

Hi @haardikkk thanks for the info. I’m happy to help debug this. Would you mind setting the log level to verbose and then check what the output of the “Sway Language Server” output window look like?

Also, if there is a project you could add me to then I can try and debug this locally for you also.

2 Likes