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

Fix squiggle with editor and fsi. #7968

Merged
merged 4 commits into from
Dec 19, 2019

Conversation

KevinRansom
Copy link
Member

@KevinRansom KevinRansom commented Dec 14, 2019

Visual Studio 16.4 has a regression:

Fixes: #7950

image

Fixed:
image

@dsyme
Copy link
Contributor

dsyme commented Dec 16, 2019

Looks good!

Can we have a test for this? I don't understand why this wasn't caught by our existing language service testing, see bug....

@cartermp
Copy link
Contributor

We most likely don't have a test for this then.

Copy link
Contributor

@cartermp cartermp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a regression test (or a few) in a new file in this project: https://github.com/dotnet/fsharp/tree/master/vsintegration/tests/UnitTests

Probably better to have a dedicated "FSI Completion tests" file than the existing CompletionProvider.fs tests

@KevinRansom
Copy link
Member Author

@cartermp please feel free to add one.

@KevinRansom
Copy link
Member Author

@cartermp it was surprisingly hard to get a testcase that actually fails without the fix. However, this one does.

@cartermp cartermp merged commit 03f3f1c into dotnet:master Dec 19, 2019
KevinRansom added a commit to KevinRansom/fsharp that referenced this pull request Dec 19, 2019
* VS Unit test case

* Include FSharp.Compiler.Interactive in fcs tests.

* Do it in an app domain
@@ -101,5 +101,6 @@
<Reference Include="UIAutomationTypes" />
<ProjectReference Include="CSharp_Analysis\CSharp_Analysis.csproj" />
<ProjectReference Include="..\FSharp.Compiler.Service.ProjectCracker\FSharp.Compiler.Service.ProjectCracker.fsproj" />
<ProjectReference Include="$(FSharpSourcesRoot)\fsharp\FSharp.Compiler.Interactive.Settings\FSharp.Compiler.Interactive.Settings.fsproj" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KevinRansom Do you remember why this line was needed? I assume the FCS testing failed if it wasn't present?

(The line causes the FCS build to also build the latest FSharp.Core, which isn't really meant to happen as FCS is only meant to depend on a public lower-versioned FSharp.Core. This is causing some issues in integrations for some of my PRs)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dsyme, I believe it is in support of the added test to ensure the squiggle is found.
vsintegration/tests/UnitTests/FsxCompletionProviderTests.fs

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm that test isn't included in the FCS testing

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect it might not be needed, will check

@KevinRansom
Copy link
Member Author

Yes probably not needed then. If we don't test it, it shouldn't be necessary.

@KevinRansom KevinRansom deleted the fixfsiinteractive branch January 15, 2020 23:02
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
* VS Unit test case

* Include FSharp.Compiler.Interactive in fcs tests.

* Do it in an app domain
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

Successfully merging this pull request may close these issues.

FSharp.Compiler.Interactive.Settings seemingly not part of script references
3 participants