dotnet / dotnet/fsharp

File Compilation Ordering Issue, give user more informations

Open
#9,284 4 comments 2 reactions 0 assignees View on GitHub
Area-Diagnostics Feature Request
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

**Is your feature request related to a problem? Please describe.**

For all people coming from other languages, many times is not clear why they have a
```type X not defined```
compiler error.

**Describe the solution you'd like**

I believe it might be useful to show in the compiler error message a hint for them to move around the files, so that the order of compilation is correct, or if possible to have a hint around this, like

```
type MyType is defined in MyType.fs but the order of compilation within project is not correct,
try move the file in the proper position. File ordering in F# ensures there are no cyclic references!
```
Or obviously something similar, in VS is possible to move files or folders up and down with **alt** key, hinting the novice user with what to do might improve some initial mistakes and quicken up the enjoyment of the lang

**Describe alternatives you've considered**
no alternatives, but it's more for user experience

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.