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
- Memory Leak warnings are thrown when creating a new material
- The type selector in the UI Builder does not display primitive types when trying to select one in the "Select Type…" window
- Inspector's custom tooltip is displayed incorrectly when the name is truncated in UI toolkit
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
This is a duplicate of issue #-581