Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subroutine 'say' is not declared on CommaIde

Tags:

raku

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.

like image 307
Julio Avatar asked Jul 10 '20 09:07

Julio


1 Answers

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.

like image 106
LuVa Avatar answered Nov 12 '22 09:11

LuVa