inshellisense icon indicating copy to clipboard operation
inshellisense copied to clipboard

"load local spec failed"

Open morags opened this issue 11 months ago • 0 comments

Describe the bug inshellisense does not run.

To Reproduce Steps to reproduce the behavior:

  1. Install in the usual way and verify using is doctor.
  2. Using a clean PowerShell profile, run is --verbose.
  3. Verify inshellisense is running using is -c.
  4. No autocompletions are provided. %userprofile%\.inshellisense\inshellisense.log logs the following message:
{
    "msg": "load local spec failed",
    "e": "Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'",
    "specPath": "C:\\Users\\<username>/.fig/autocomplete/build"
}

(With the appropriate username)

Expected behavior inshellisense runs with no errors and provides autocompletions.

Environment

  • OS: Win 10
  • Output of is --version: 0.0.1-rc.20
  • Nodejs Version: v22.13.0
  • Shell: PowerShell
  • Shell Version: 5.1, 7.4.6

Additional context

  1. The username contains non-ASCII characters, so the error probably has something to do with Unicode path processing.
  2. The /.fig/autocomplete/build folder hasn't been created, and even when it's created and populated manually (from the node module) the program fails.

morags avatar Jan 08 '25 16:01 morags