Deprecation warnings rarely occur

Repro steps:

Expected behavior:
Given that the entire script is full of deprecated API use, every line should have a warning underline

Actual behavior:

Very few lines are underlined.

Frequency: Always

Sidenote: Removing the --!strict pragma at the top removes the few warnings lines that are there. I think this is detrimental to beginners, as they can unknowingly use APIs that are deprecated, as non-strict typechecking seems to disregard deprecated API attributes unless the type of a variable is explicitly specified with the local a: T = x syntax.

Obviously, this isn’t an exhaustive list of every single missing warning, but given that every one of the APIs used it in the Script is marked as Deprecated on the Creator Hub Documentation, I feel like the Script Editor should know that it is deprecated and at least underline the problematic line with a warning like [Function/Instance/Member] is deprecated and should not be used.

2 Likes

This is just an acknowledgment announcement!

We’ve filed a ticket into our internal database for this issue, and we will update you when we have further information!

Thanks for the report!

3 Likes