fsprojects / FSharp.Formatting

F# tools for generating documentation (Markdown processor and F# code formatter)
https://fsprojects.github.io/FSharp.Formatting/
Other
462 stars 155 forks source link

compiler warning 3370 fixed #913

Closed Fxplorer closed 3 months ago

Fxplorer commented 3 months ago

When building, was receiving compiler warning 3370 The use of ':=' from the F# library is deprecated. See https://aka.ms/fsharp-refcell-ops. For example, please change 'cell := expr' to 'cell.Value <- expr'.

Following the guidance, changes made to offending expressions.

All tests still showing green.

Before you go

Hi there! Thank you for your contribution to our project. To help maintain the quality of our codebase, our Continuous Integration (CI) system will automatically run several checks on your submission. To streamline the process, we kindly ask you to perform these checks locally before pushing your changes:

To execute all build scripts, please run:

dotnet fsi build.fsx

If you encounter any formatting issues, you can auto-correct them by running:

dotnet fantomas build.fsx src tests docs

Should any tests fail, please review and adjust your changes accordingly.

We appreciate your efforts to contribute and look forward to reviewing your pull request!

Fxplorer commented 3 months ago

replaced PR with https://github.com/fsprojects/FSharp.Formatting/pull/914

nhirschey commented 3 months ago

For future reference, should the intended changes be put into into a new (local) branch and then PR'd to make your (maintainers) job easier?

The intended changes should be new commits in this branch. Putting them in a different branch with a new PR makes things harder for maintainers.

nojaf commented 3 months ago

Hi @Fxplorer, I hope I didn't upset you or anything. The changes in #914 look fine and as @nhirschey mentioned, it would have been fine to have them here.

Fxplorer commented 3 months ago

The real problem is that I do not yet understand how git works in situations of more than basic operations of saving and merging. The branching and cross pulls are still a subject that I need to learn. After some additional research, yes, I now understand that the original PR branch could be checked put again and updated.

At this this point, since I do not have the original branch and these both are closed, I have no idea how fix things.

nojaf commented 3 months ago

Because you have deleted the branch you will probably need to push your local branch (in case that one still exists) again to your remote.

Something like git push -u origin, and then you can raise a new PR.