ionide / ionide/Ionide-vim

error shown on every keystroke when file is not included in project

Open
#86 2 comments 2 reactions 1 assignee Claimed by @cannorin View on GitHub
enhancement
Dominant language
Vim Script
Stars
211
Forks
28
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

When the LSP has trouble loading a file, for instance when it's not included in one of the discovered projects, an error is shown on every keystroke. Ideally, this would only happen once on initialization, as it makes it difficult to interact with the file or even to exit vim, since even dismissing the error with the escape key will cause it to retrigger.

And example error, where SOME_FILENAME is the fully qualified path:

```
ionide: -32603: [SOME_FILENAME] in LoadedProjects. Have the projects loaded yet
or have you tried restoring your project/solution?
```

I'm hitting this currently while trying out Myriad code generation, which has the more specific problem of the original `MyriadFile` not being found by fsautocomplete.

**To Reproduce**

Open a file not included in an fsproj.

**Expected behaviour**

The error should be shown a single time on initialization to avoid interrupting workflows that are in an intermediate state (adding a new file to a project) or are not currently supported by fsautocomplete for whatever reason (such as the Myriad situation mentioned above).

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**
- OS: OSX
- Vim / Neovim version: v0.10.0
- dotnet SDK version: 8.0.303

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.