Comma reporting "subroutine X not declared" for test function

116 Views Asked by At

I'm using Comma IDE features for the first time.

I have a very simple test file. Comma is showing warnings for the subroutines provided by the Test module with a report Subroutine X is not declared.

The tests pass fine. But I'd like to know if I have something misconfigured or if this might be a bug.

I'm using the 2022.01 version (Community Edition), Build #CT-213.5744. (jan 30, 2022) with Runtime version: 11.0.13+7-b1751.19 x86_64 and VM of Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o. If it matters, the Java installed on my machine is build 1.8.0_321-b07, Version 8, Update 321.

enter image description here

enter image description here

1

There are 1 best solutions below

1
On

Similar to the answer at Subroutine 'say' is not declared on CommaIde, a simple restart of IntelliJ ultimately fixed the issue.

However, initially, a simple restart did not fix the problem for me. During that first attempt, I was prompted to select the SDK again (for reasons unknown to me). So it looks to me like that whenever you select an SDK, you'll need to close and reopen IntelliJ before IntelliJ will properly load modules provided by the SDK (Rakudo/Moar VM).