handzlikchris / handzlikchris/FastScriptReload
Crash from LSR
- Vorherrschende Sprache
- C#
- Sterne
- 2.2k
- Forks
- 167
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hi Chris,
We found there are crash from here
in LSR, DynamicCompilationBase.cs:66
```
AssemblyCsharpFullPath = SessionStateCache.GetOrCreateString(
$"FSR:AssemblyCsharpFullPath",
() => AssetDatabase.FindAssets("Microsoft.CSharp")
.Select(g => new System.IO.FileInfo(UnityEngine.Application.dataPath + "/../" + AssetDatabase.GUIDToAssetPath(g)))
.First(fi => fi.Name.ToLower() == "Microsoft.CSharp.dll".ToLower()).FullName
```
`Sequence contains no matching element
Microsoft.CSharp wont find anything in assets as FSR is in package
We tried this
`() => AssetDatabase.FindAssets("Microsoft.CSharp", new string[]{ "Packages", "Assets"})`
from https://discussions.unity.com/t/assetdatabase-findassets-not-working-for-packages/707087/10
But seems it was not enough and it still can't find it, we're on unity 6.1.14f1
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start at DynamicCompilationBase.cs:66 and reproduce the crash in Unity 6.1.14f1. Inspect the AssetDatabase.FindAssets lookup and the reported package location for Microsoft.CSharp.dll. Done means the assembly is found without a Sequence contains no matching element crash when FastScriptReload runs.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp, unity
- Bereich
- build-system, game-dev
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100