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

Intellisense doesn't update or updates very slow on VS Code when types are in separate file #1397

Closed
poctob opened this issue Jul 10, 2020 · 2 comments

Comments

@poctob
Copy link

poctob commented Jul 10, 2020

Describe the bug
When members are added or removed from a type. Intellisense doesn't update and underlines/not underlines when type members are referenced in another file.

To Reproduce
Steps to reproduce the behaviour:

  1. Create new dot net core project, classlib, console, asp.net core, doesn't matter
  2. Create new file Service.fs
  3. Add new type
type Service() =
    member this.A = "A"
  1. Create new file Library.fs
  2. Add new module
module T =
    let s = Service()
    let a = t.A
  1. Observe that code is underlined with syntax errors
  2. Build the project on the command line.
  3. Observe that project builds correctly with no errors.
  4. Restart VS Code. Observe that errors are no longer shown.

When type is declared in the same file as the module, extension behaves properly.
Sometimes the errors do resolve after a long time period.
Note, that if Ionide extension is disabled in VS Code, types resolve correctly and false errors no longer show up.

Expected behaviour
Syntax errors update in timely manner on code changes

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

Environment (please complete the following information):

  • OS: Windows 10
  • Ionide version: v4.14.0
  • VSCode version: 1.47.0
  • dotnet SDK version: 3.1.101
  • mono / .Net Framework version:

Additional context
F# Language server has strange output with paths not found on my system:
Exception in language server System.IndexOutOfRangeException: Index was outside the bounds of the array.
at FSharpLanguageServer.Program.findMethodCallBeforeCursor(String lineContent, Int32 cursor) in /Users/george/Documents/fsharp-language-server/src/FSharpLanguageServer/Program.fs:line 2

at <StartupCode$FSharp-Core>.$[email protected](AsyncActivation`1 ctxt) in E:\A_work\130\s\src\fsharp\FSharp.Core\async.fs:line 1495

D:\Programowanie\ionide\paket-files\github.com\fsharp\FsAutoComplete\src\FsAutoComplete\FsAutoComplete.Lsp.fs:line 1077

at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in F:\workspace_work\1\s\src\fsharp\FSharp.Core\async.fs:line 109
Code: -32603

@open-collective-bot
Copy link

Hey @poctob 👋,

Thank you for opening an issue. We will get back to you as
soon as we can. Also, check out our OpenCollective and consider
backing us.

https://opencollective.com/ionide

PS.: We offer backer support for all backers. Don't forget to add backer label when you start backing us 😄

@poctob poctob mentioned this issue Jul 13, 2020
8 tasks
@Krzysztof-Cieslak
Copy link
Member

No actionable information in the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants