Skip to content

False positive "Unresolved sub" inspection on boolean subs #2494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
borisfox73 opened this issue May 5, 2022 · 1 comment · May be fixed by #2896
Open

False positive "Unresolved sub" inspection on boolean subs #2494

borisfox73 opened this issue May 5, 2022 · 1 comment · May be fixed by #2896

Comments

@borisfox73
Copy link

In the following code snippet:

#!/usr/bin/perl
use strict; use warnings FATAL => 'all';

use boolean;

$a = true;
$b = false;

print "a = $a, b = $b\n";

"true" and "false" functions of boolean module erroneously marked as unresolved ("Unable to find sub definition, declaration, constant definition or typeglob aliasing").

Environment:
IntelliJ IDEA 2022.1 (Ultimate Edition)
Build #IU-221.5080.210, built on April 12, 2022
Runtime version: 11.0.14.1+1-b2043.25 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Perl plugin 2022.1
OS: Ubuntu 22.04 LTS

@hurricup
Copy link
Collaborator

hurricup commented May 5, 2022

Hm. This is strange.
Declaration is pretty plain: https://metacpan.org/dist/boolean/source/lib/boolean.pm
Will take a look, thank you

@hurricup hurricup added this to the 2023.1 milestone Mar 11, 2023
@hurricup hurricup modified the milestones: 2023.1, 2023.2 Apr 1, 2023
@hurricup hurricup modified the milestones: 2023.2, 2023.3 Jul 27, 2023
@hurricup hurricup modified the milestones: 2023.3, 2024.1 Jan 16, 2024
@hurricup hurricup modified the milestones: 2024.1, 2024.2 Apr 9, 2024
@hurricup hurricup removed this from the 2024.2 milestone Aug 18, 2024
@blindpirate blindpirate linked a pull request Sep 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants