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

"load local spec failed" #325

Open
morags opened this issue Jan 8, 2025 · 0 comments
Open

"load local spec failed" #325

morags opened this issue Jan 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@morags
Copy link

morags commented Jan 8, 2025

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 morags added the bug Something isn't working label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant