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

Merge main to release/dev17.10 #16756

Merged
merged 5 commits into from
Feb 26, 2024

Conversation

dotnet-bot
Copy link
Contributor

This is an automatically generated pull request from main into release/dev17.10.

Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯

Troubleshooting conflicts

Identify authors of changes which introduced merge conflicts

Scroll to the bottom, then for each file containing conflicts copy its path into the following searches:

Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts.

Resolve merge conflicts using your local repo

Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub.

git fetch --all
git checkout -t upstream/merges/main-to-release/dev17.10
git reset --hard upstream/release/dev17.10
git merge upstream/main
# Fix merge conflicts
git commit
git push upstream merges/main-to-release/dev17.10 --force

KevinRansom and others added 5 commits February 22, 2024 10:27
* Initial attempt for GetProjectSnapshotFromScript

* Add GetProjectSnapshotFromScript to service.

* Address feedback from code review.

* Assert both return the same results.

* Remove old comment

* Construct cache key in ComputeScriptClosure

* Include stamp

* Don't take projectSnapshot as input for ComputeScriptClosure

* Add other flags

* Add checksum directly.

* Remove duplicate checksum

* Use ISourceTextNew for Source

* Mark API as experimental
* WIP: Use Arcade's NetCurrent

* WIP: Use Arcade's NetCurrent

* Ordering of property groups

* Build scripts?

* Typo

* Typo2

* Fix nuspec, please

* Updates to support VMR build

* Only set tfm option if SourceBuildBootstrapTfm is set

* Fix ordering, set tfm before we account for building without arcade

* Add rest of test projects

* typos

* Trimming is isolated and can't use global TFM value

* Fix arcade interaction with our build props

---------

Co-authored-by: Matt Thalman <mthalman@microsoft.com>
Co-authored-by: Petr <psfinaki@users.noreply.github.com>
#16720)

* First stab at adding a version of TryGetRecentCheckResultsForFile that takes a snapshot instead of project options

* use version type without defaultof<_> = null

* take sourcetext out of project snapshot, kind of forces us to an async return but let's see if this is acceptable

* format

* - reuse ParseAndCheckFileInProject cache for TryGetRecentCheckResultsForFile
- extend version of ParseAndCheckFileInProject cache with the check sum of the source code
- add test

* format

* cleanup

* use a new LruCache member GetAll to get rid of the dummy version

* cleanup

* Update src/Compiler/Service/TransparentCompiler.fs

Co-authored-by: Petr Pokorny <petr@innit.cz>

* unify key creation

* just use ProjectSnapShot.FileKey

* to have it on record, push a version with "f.Version |> Md5Hasher.toString" as the second part of lastFileKey.Version

* use FileKeyWithExtraFileSnapshotVersion for the ParseAndCheckFileInProject cache

* replace FileSnapShot after edit in Test

* add CustomOperation tryGetRecentCheckResults for tests

* - Make API non-async and don't return hash
- let tests run for background compiler, too

* better fix for commandLineOptions order

* Update src/Compiler/Service/FSharpProjectSnapshot.fs

Co-authored-by: Petr Pokorny <petr@innit.cz>

* Update tests/FSharp.Compiler.ComponentTests/FSharpChecker/TransparentCompiler.fs

Co-authored-by: Petr Pokorny <petr@innit.cz>

* Update tests/FSharp.Compiler.ComponentTests/FSharpChecker/TransparentCompiler.fs

Co-authored-by: Petr Pokorny <petr@innit.cz>

* fix version predicate

* let LruCache.GetAll(key: 'TKey) return a seq instead of a list

* compare signatures in CustomOperation tryGetRecentCheckResults to tighten the tests

---------

Co-authored-by: Petr Pokorny <petr@innit.cz>
Copy link
Contributor

❗ Release notes required

@dotnet-bot,

Caution

No release notes found for the changed paths (see table below).

Please make sure to add an entry with an informative description of the change as well as link to this pull request, issue and language suggestion if applicable. Release notes for this repository are based on Keep A Changelog format.

The following format is recommended for this repository:

* <Informative description>. ([PR #XXXXX](https://github.com/dotnet/fsharp/pull/XXXXX))

See examples in the files, listed in the table below or in th full documentation at https://fsharp.github.io/fsharp-compiler-docs/release-notes/About.html.

If you believe that release notes are not necessary for this PR, please add NO_RELEASE_NOTES label to the pull request.

You can open this PR in browser to add release notes: open in github.dev

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/8.0.300.md No release notes found or release notes format is not correct

@ViktorHofer
Copy link
Member

@vzarytovskii can you please merge this PR in? We need d071ddc in the SDK and fsharp flows the dev17.10 branch into sdk main.

@vzarytovskii vzarytovskii merged commit 15ab9d5 into release/dev17.10 Feb 26, 2024
28 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants