Search code examples
rakucommaide

Subroutine 'say' is not declared on CommaIde


I have this simple script opened with CommaIde:

#!/usr/bin/env perl6

my $str = 'foobar';

say $str;

The IDE is highlighting the word 'say' with the error:

Subroutine say is not defined

But, If I execute the script, it runs OK.

The same happens with other core methods like print, printf, etc.

Why are they not recognized?

Software versions:

  • Rakudo Star 2020.05.
  • Comma IDE 2020.04 Community Edition

Thank you.


Solution

  • I see this behavior with the IntelliJ plugin when I change the SDK File -> Project Structure -> Project -> SDK and then edit a file. But a IntelliJ restart does normally fix it.