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
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
- Character animation freezes when toggling animator on/off in a coroutine
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
This is a duplicate of issue #-581