You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the linked repro solution and build it to observe no error.
Open B\Widget.fs.
Make any change to A\Widget.fs -- including just adding newlines -- and save the file.
Switch back to B\Widget.fs and wait a few seconds for the intellisense error to appear.
Expected behavior
I expect that there should be no Intellisense red error on a project that compiles successfully.
Actual behavior
If you change any file above B\Widget in the compile order, it will generate the Intellisense error on the whole B\Widget file. This error takes a few seconds to show up on my machine, but it does so consistently. The project still compiles without error.
Known workarounds
The Intellisense error can be removed by reloading the project. But then the error shows back up after any change to files above it.
Meta info
Previously I handled the same situation by making separate projects instead of separate folders within a single project. However, this has historically led to "too many" projects in my solutions. This kind of folder structure is the result of trying to follow the guidance of "project per deployable". The deployable has subsystems which are placed in different folders and namespaces. This problem occurs when the same type name occurs in different subsystems.
Related information
Windows 10 Pro x64
Visual Studio 15.9.7
netcoreapp2.1
The text was updated successfully, but these errors were encountered:
where AREA might be Assets and SUBDETAIL might be List for a page that lists Assets.
If we have duplicate module names (ie List) in different namespaces at a similar level in this structure we'll get a message like @kspeakman did: List__2 already existing.
I found a case that consistently generates a spurious Intellisense error: "An implementation of the file or module ... has already been given".
Repro steps
I created a repro project here.
The file structure looks like this.
A\Widget.fs
B\Widget.fs
Each widget is in a separate namespace.
Expected behavior
I expect that there should be no Intellisense red error on a project that compiles successfully.
Actual behavior
If you change any file above B\Widget in the compile order, it will generate the Intellisense error on the whole B\Widget file. This error takes a few seconds to show up on my machine, but it does so consistently. The project still compiles without error.
Known workarounds
The Intellisense error can be removed by reloading the project. But then the error shows back up after any change to files above it.
Meta info
Previously I handled the same situation by making separate projects instead of separate folders within a single project. However, this has historically led to "too many" projects in my solutions. This kind of folder structure is the result of trying to follow the guidance of "project per deployable". The deployable has subsystems which are placed in different folders and namespaces. This problem occurs when the same type name occurs in different subsystems.
Related information
The text was updated successfully, but these errors were encountered: