Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
0
Found in
2019.1.0a1
2019.1.0a13
2019.2.0a1
Issue ID
1115455
Regression
No
Uninformative exception is thrown when using invalid values in the USS "background-color" argument
How to reproduce:
1. Create a new project
2. Open Window > Package Manager
3. Press "Add Package From disk" in the Package Manager
4. Open the attached "UssError.zip"
5. Add "package.json" files that are in NDocumentation-master > NDocumentation-master > com.vertx.nDocumentationExample and com.vertx.nDocumentation folders
6. Press Window > Example Window
7. Observe the console
Expected Behavior: The informative exception is thrown - with an explanation of what is wrong and where
Actual Behavior: The exception is uninformative - shows that something is wrong but does not give any directions or clues on what could be wrong
Reproducible with: 2019.1.0b1, 2019.2.0a2
Note: The exception is thrown because the script is trying to access the wrong value. The value is in Packages > nDocumentation > Styles > "nDocumentationStyles.uss" on the lines 160 and 180. Changing the value to the valid one eliminates the error. Could not reproduce the issue with 2018.3 and 2017.4 because the user code brakes.
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note (2019.2.X):
Problem is due to background-color only supporting rgb, rgba or #hexcode.
A USS validation system is in the work and will give more informative errors in this case.