Search Issue Tracker

Fixed in 0.2.9-preview.3

Votes

1

Found in [Package]

0.2.9-preview.1

Issue ID

1329193

Regression

Yes

A unused variable in the MemoryProfiler package throws an error when the package is installed

Package: Memory Profiler

-

How to reproduce:
1. Create a new Unity project
2. Add the attached "csc.rsp" file to the Assets folder
3. Open the Package Manager (Window -> Package Manager)
4. Install the "Memory Profiler" package
5. Check the Console

Expected results: There are no errors in the Console
Actual results: There is an error in the Console

Reproducible with: 0.2.9-preview.1 (2019.4.23f1, 2020.3.4f1)
Not reproducible with: 0.2.9-preview.1 (2018.4.33f1, 2021.1.4f1, 2021.2.0a14)

Note:
- The warning is: Library\PackageCache\com.unity.memoryprofiler@0.2.9-preview.1\Editor\MemorySnapshot\MemorySnapshot.cs(62,30): error CS0414: The field 'QueriedMemorySnapshot.kCurrentVersion' is assigned but its value is never used

  1. Resolution Note (fix version 0.2.9-preview.3):

    Fixed in Memory Profiler 0.2.9-preview.3

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.