Skip to content

Conversation

@dsyme
Copy link
Contributor

@dsyme dsyme commented Dec 1, 2016

This fixes a large chunk of #1808. I've tested it by hand.

The build still doesn't react to files coming/going in DependencyFiles. I'll adjust the description in #1808 to make the cases distinct.

Basically F# has an analysis engine which tells the UI when to do "foreground" rechecks of files because the checking state has changed. This reacts to those events. See https://fsharp.github.io/FSharp.Compiler.Service/queue.html for some info.

When the UI gets the focus on a document, it should also notify the F# engine to start checking that document

Perhaps we could eventually let the Roslyn one drive the whole show.


// The latest component model. This is used to retrieve IDiagnosticAnalyzerService.
// FSROSLYNTODO: Work out how to make this and the two tables below non-static.
static let mutable componentModelOpt : IComponentModel option = None
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd like someone who understands MEF to go through and remove all these statics please. I don't think adding this one causes any additional problems that aren't already there, but it's still not right. I don't understand anything much about MEF.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll try to take a look once this PR is landed

@dsyme
Copy link
Contributor Author

dsyme commented Dec 1, 2016

Failures on AppVeyor/ The first two are now fixed, the other two I don't understand (unrelated to this checkin, but I just can't repro them, and they only seem to happen on AppVeyor)


[00:48:03] 1) Error : Tests.LanguageService.AutoCompletion.UsingMSBuild.OfSeveralModuleMembers
[00:48:03] System.Exception : Unexpected module member TupleType seen with declaration type Class
[00:48:03] 2) Error : Tests.LanguageService.AutoCompletion.UsingProjectSystem.OfSeveralModuleMembers
[00:48:03] System.Exception : Unexpected module member TupleType seen with declaration type Class

[00:34:36] 1) Failed : FSharp-Tests-Core+GeneratedSignatureTests.array-GENERATED_SIGNATURE
[00:34:36] Error running command 'C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools\x64\peverify.exe' with args 'tmptest1.exe /nologo' in directory 'C:\projects\visualfsharp-3dtit\tests\fsharp\core\array'. ERRORLEVEL 1
[00:34:36] 2) Failed : FSharp-Tests-Core+CoreTests.access-FSC_BASIC
[00:34:36] Error running command 'C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools\x64\peverify.exe' with args 'test--optplus--debug.exe /nologo' in directory 'C:\projects\visualfsharp-3dtit\tests\fsharp\core\access'. ERRORLEVEL 1

@dsyme dsyme merged commit eb3d0f2 into dotnet:master Dec 1, 2016
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
…t#1906)

This fixes a large chunk of dotnet#1808. I've tested it by hand. The build still doesn't react to files coming/going in DependencyFiles.  I'll adjust the description in dotnet#1808 to make the cases distinct. Basically F# has an analysis engine which tells the UI when to do "foreground" rechecks of files because the checking state has changed. This reacts to those events. See https://fsharp.github.io/FSharp.Compiler.Service/queue.html for some info.

When the UI gets the focus on a document, it should also notify the F# engine to start checking that document


* fix tests

* Fix bridge between backgronud builders

* fix test
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.

3 participants