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

Slow down in Visual Studio Preview with Package references for F# scripts #8757

Closed
toburger opened this issue Mar 20, 2020 · 5 comments · Fixed by #10159
Closed

Slow down in Visual Studio Preview with Package references for F# scripts #8757

toburger opened this issue Mar 20, 2020 · 5 comments · Fixed by #10159
Assignees
Labels
Area-FCS Bug Impact-High (Internal MS Team use only) Describes an issue with extreme impact on existing code.
Milestone

Comments

@toburger
Copy link

The editor of Visual Studio Preview gets extremely (at this stage unusable) slow after referencing a NuGet package in a F# script file.

Repro steps

Provide the steps required to reproduce the problem:

  1. Enable preview language features:
    image

  2. Reference a NuGet package, e.g. #r "nuget: ML"

  3. Certain actions cause the editor to slow down very noticeably (hit enter, wait for the auto completion list)

Expected behavior

BOVi6RlVl4

Actual behavior

It's hard to tell from the screen capture, but I deliberately typed very slow to wait for the auto completion to kick in...

A5siiOcMAT

Related information

  • Windows 10 Insider; Version 2004 (Build 19041.153)
  • .NET 5 Preview
  • Microsoft Visual Studio Preview Community
  • Surface Laptop Gen1 i5
@cartermp cartermp added this to the Backlog milestone Mar 20, 2020
@cartermp
Copy link
Contributor

Thanks for the report @toburger. We'll need to make sure the IDE support is in good shape before going live with F# 5. Right now we've only been focused on getting the core mechanism right, so IDE support will likely follow in the next set of previews.

@MaxWilson
Copy link
Contributor

MaxWilson commented May 16, 2020

This issue was driving me mad because I love the feature but the perf issue blocks the UI and prevents me from typing for 1-3 seconds after almost every time I type anything, but fortunately I found a workaround: if I comment out the nuget reference the issue goes away.

An alternate workaround that I tried was to enable Options | F# | Intellisense | "Enable stale data for Intellisense features" and turn the time down to 10 ms, but that did not help.

I'm on Visual Studio Version 16.6.0 Preview 6.0

@jonsagara
Copy link

Hi, is this scheduled to be fixed before the full release of VS 16.8.0?

@cartermp
Copy link
Contributor

We would like to get this resolved by VS 16.8, yes. @KevinRansom was looking into this before a more urgent bug arose.

@cartermp cartermp added the Impact-High (Internal MS Team use only) Describes an issue with extreme impact on existing code. label Aug 28, 2020
@cartermp cartermp modified the milestones: Backlog, 16.8 Sep 13, 2020
@cartermp
Copy link
Contributor

This is unlikely to get resolved by 16.8. Sorry. The feature is not ready for use within VS. Moving out.

@cartermp cartermp modified the milestones: 16.8, 16.9 Sep 18, 2020
@cartermp cartermp linked a pull request Sep 19, 2020 that will close this issue
@cartermp cartermp modified the milestones: 16.9, 16.8 Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-FCS Bug Impact-High (Internal MS Team use only) Describes an issue with extreme impact on existing code.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants