Search Issue Tracker
Duplicate
Votes
0
Found in [Package]
1.1.33
1.3.7
2.0.1-pre.18
Issue ID
DSTR-857
Regression
No
Input System InputTestFixture Class throws "CS0117" errors when building a Player with Test Runner
How to reproduce:
1. Open the “InputTestRepro_FINAL” project
2. Open the Test Runner (Window > General > Test Runner)
3. Select the “Play Mode” section
4. Select “Run All Test”
Expected result: The Player is successfully built and tests are also executed successfully
Actual result: The Player fails to build with “CS0117” errors thrown in the Console
Reproduced with: 1.1.33, 1.3.7 (2021.3.28f1, 2022.3.4f1, 2023.1.3f1, 2023.2.0a21), 2.0.1-pre.18 (2021.3.28f1, 2022.3.4f1)
Could not test with: 2.0.1-pre.18 (2023.1.3f1, 2023.2.0a21) (“The XDK Xbox One platform was removed in 2021.1” error is thrown by Test-Framework package)
Reproduced on: macOS 12.6.5 (by reporter), Windows 11
Notes:
1. With Test-Framework 2.0.1-pre.18 the interface has somewhat changed → in the Test Runner window on the top left set “Run Location” to “On Player”, then select “Run All” on the bottom right of the window
2. Not reproducible when line 22 is removed in the “PlayerWithTestsModifier” Script
3. In 2021.3.28f1 with Test-Framework 2.0.1-pre.18 the issue was still reproducible when line 22 is removed in the “PlayerWithTestsModifier” Script
Errors thrown to the Console after a failed build:
Error #1:
{noformat}Library\PackageCache\com.unity.inputsystem@1.6.1\Tests\TestFixture\InputTestFixture.cs(94,29): error CS0117: 'InputSystem' does not contain a definition for 'SaveAndReset'{noformat}
Error #2:
{noformat}Library\PackageCache\com.unity.inputsystem@1.6.1\Tests\TestFixture\InputTestFixture.cs(168,29): error CS0117: 'InputSystem' does not contain a definition for 'Restore'{noformat}
-
Resolution Note:
Duplicate of https://jira.unity3d.com/browse/ISXB-581
Duplicate of https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-581
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
- The Physics 2D Profiler module does not display the information about processed physics in the scene when profiling the application as a Development Build
- A Script Component that has a serialized custom class is not detecting changes in the first boolean variable when entering the Play mode with the Script Components GameObject opened in the Inspector
- “SendMessage cannot be called during Awake“ warnings appear when loading a scene with “LoadSceneAsync“ if using UI Toolkit in the scene
- Audio Source Spatial Blend value gets set to 1 in the WebGL Player when the Spatial Blend value is bigger than 0
- [Linux] Crash on g_type_check_instance_cast after changing Editor layout, creating a new VR template or HDRP project
This is a duplicate of issue #-581