Search Issue Tracker
Fixed in 2020.1.X
Votes
0
Found in
2018.4
2019.4
2019.4.18f1
2020.1
Issue ID
1309281
Regression
No
CSharpNameParser throws NullReferenceException when importing a script with escaped double-quotes wrapped in two escape braces
How to reproduce:
1. Open the attached project ("New Unity Project.zip")
2. Notice the NullReferenceException error
Expected results: Unity CSharpNameParser parses interpolated strings with escaped double-quotes wrapped by two escape braces. For example: $"{{{"\""}}}"
Actual results: Unity CSharpNameParser fails to parse interpolated strings with escaped double-quotes wrapped by two escape braces.
Reproducible with: 2018.4.31f1, 2019.4.20f1, 2020.1.0a6
Does no longer reproduce with: 2020.1.0a7, 2020.1.17f1, 2020.2.3f1, 2021.1.0b5, 2021.2.0a3
Notes:
Does not reproduce with escaped ' symbol (single quotes)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
- [RenderingDebugger][InputSystemPackage] Ctrl+Backspace shortcut doesn't work to open the Rendering Debugger when New Input System is in use
Resolution Note (fix version 2020.1):
Does no longer reproduce with: 2020.1.0a7 and newer