Repro steps:
- Download and open the repro file, then open
Script
under theWorkspace
br-missingdeprecationwarnings.rbxl (52.5 KB)
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
.