Macros for scripts running under TestService are underlined blue by Intellisense

  • Describe the bug. Describe what is happening when the bug occurs. Describe what you would normally expect to occur.

Macros, such as RBX_CHECK or RBX_CHECK_MESSAGE (documented in this page: Documentation - Roblox Creator Hub) are underlined blue. This happens even if the script runs inside the service.

  • How often does the bug happen (Everytime/sometimes/rarely)? What are the steps that reproduce the bug? Please list them in very high detail. Provide simple example places that exhibit the bug and provide description of what you believe should be the behavior.

This bug can consistently be reproduced. Instantiate TestService by executing game:GetService("TestService") in the command bar, and write a Script under TestService whose body is RBX_CHECK(true). RBX_CHECK should be underlined blue as a result.

  • When did the bug start happening? If we can tie it to a specific release that helps us figure out what we broke.

I observed this bug in the latest version of Roblox Studio (0.318.0.168780).

  • Anything else that you would want to know about the bug if it were your job to find and fix it.
4 Likes

I don’t recall these ever NOT being blue underlined, as they’re not normal apis (similar to the plugin keyword). Have these not been blue for you at some point?

1 Like

I’ve only started using TestService for unit testing recently, so I don’t know how to answer that. I suspect that this has always been the case.

ps: plugin is rendered as a keyword (bold, dark blue) in my script editor.

Whoops. Forgot the “used to be” bit after plugin. I can add these macros to the feature request list though.

2 Likes

I don’t think anyone realized they existed outside of Roblox until I documented them on the wiki last year, so this issue hasn’t been brought up before. Are you guys still actually using the macros internally?