handzlikchris / handzlikchris/FastScriptReload
Crash from LSR
- Dominant language
- C#
- Stars
- 2.2k
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.