u3d icon indicating copy to clipboard operation
u3d copied to clipboard

Prettify isn't showing compilation errors

Open oddgames-david opened this issue 5 years ago • 2 comments

I've not been able to get compiler errors showing for lines like this:

Assets\Code\CameraBase.cs(247,7): error CS0619: 'Component.camera' is obsolete: 'Property camera has been deprecated. Use GetComponent<Camera>() instead. (UnityUpgradable)'

image

oddgames-david avatar Jul 04 '19 09:07 oddgames-david

Hey @oddgames-david !

Thanks for the feedback.

This is an issue with regular expressions that I'm not sure I'll have the time to tackle super soon. In the meantime, if you want these errors to show right now, you can try to use your own set of rules! Let us know if you have trouble with this, and if you manage to fix the rules so that they show your errors, do open a pull request to bring your fix to the codebase, it would be much appreciated!

niezbop avatar Jul 05 '19 14:07 niezbop

@niezbop Deleted the compiler_error and compiler_warning from COMPILE phase and added these to general (I deactivated warnings because almost impossible to remove warnings from projects with so many assets).

"compiler_error": {
        "active": true,
        "start_pattern": "(.*: error (CS....).*)",
        "type": "error"
      },

"compiler_warning": {
        "active": false,
        "start_pattern": "(.*: warning (CS....).*)",
        "type": "warning"
      },

oddgames-david avatar Sep 30 '19 00:09 oddgames-david