-
-
Notifications
You must be signed in to change notification settings - Fork 861
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
Internal error: Internal error: failed to include [JsonIncrementalParser.php JsonIncrementalParser] #7331
Comments
Hi there! 👋 Looks like you opened an issue without following one of the issue templates: Bug report 🐛 (open an issue)If something isn't working as expected 🤔. Feature request 🚀 (open an issue)I have a suggestion (and may want to implement it 🙂)! Support question ❓ (open a discussion)I need some help with my code because PHPStan doesn't like it. The current issue will be closed. This is a precaution to save maintainer's time, I hope you'll understand. Sincerely, the bot 🤖 |
Would be great if you could provide a reproducing repository, thanks. |
You can always remove the sensitive proprietary parts. |
I created the following repo
https://github.com/itay-moav/temp-phpstan-error
Notice I created it with the vendor folder , *so do not run* the composer
update on initial checkout.
Run the vendor/bin/phpstan analyse command to see the error.
Let me know what else I can do.
IM
…On Fri, May 27, 2022 at 2:28 PM Itay Moav ***@***.***> wrote:
Will work on it, I have a suspicion it might be due to soft links somehow?
(CentOS 7)
Did not have much time to look into this though
On Fri, May 27, 2022 at 2:23 PM Ondřej Mirtes ***@***.***>
wrote:
> You can always remove the sensitive proprietary parts.
>
> —
> Reply to this email directly, view it on GitHub
> <#7331 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAGQDUAETXWLYVXZT45BWMLVMEHIHANCNFSM5XEXT6MA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
I see this error:
Can you please fix the repo so that every machine can see the same error as you do? Thanks. |
Ill fix the repo.
…On Mon, May 30, 2022 at 6:19 AM Ondřej Mirtes ***@***.***> wrote:
I see this error:
$ vendor/bin/phpstan
Note: Using configuration file /Users/ondrej/Downloads/temp-phpstan-error/phpstan.neon.dist.
PHP Warning: require_once(/etc/lms/environment.php): Failed to open stream: No such file or directory in /Users/ondrej/Downloads/temp-phpstan-error/main_bootstrap.php on line 36
Warning: require_once(/etc/lms/environment.php): Failed to open stream: No such file or directory in /Users/ondrej/Downloads/temp-phpstan-error/main_bootstrap.php on line 36
Error thrown in /Users/ondrej/Downloads/temp-phpstan-error/main_bootstrap.php on line 36 while loading bootstrap file /Users/ondrej/Downloads/temp-phpstan-error/phpstan.bootstrap.php: Failed opening required '/etc/lms/environment.php' (include_path='.:/Users/ondrej/Downloads/temp-phpstan-error/subdomains/api/plugins:/Users/ondrej/Downloads/temp-phpstan-error/lib:/Users/ondrej/Downloads/temp-phpstan-error/subdomains/api/controllers:/Users/ondrej/Downloads/temp-phpstan-error/model')
Can you please fix the repo so that every machine can see the same error
as you do? Thanks.
—
Reply to this email directly, view it on GitHub
<#7331 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGQDUDNVN5SQ2FUKRB5MEDVMSI35ANCNFSM5XEXT6MA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Fixed the paths. I hope I did not miss anything else.
…On Mon, May 30, 2022 at 10:19 AM Itay Moav ***@***.***> wrote:
Ill fix the repo.
On Mon, May 30, 2022 at 6:19 AM Ondřej Mirtes ***@***.***>
wrote:
> I see this error:
>
> $ vendor/bin/phpstan
> Note: Using configuration file /Users/ondrej/Downloads/temp-phpstan-error/phpstan.neon.dist.
> PHP Warning: require_once(/etc/lms/environment.php): Failed to open stream: No such file or directory in /Users/ondrej/Downloads/temp-phpstan-error/main_bootstrap.php on line 36
> Warning: require_once(/etc/lms/environment.php): Failed to open stream: No such file or directory in /Users/ondrej/Downloads/temp-phpstan-error/main_bootstrap.php on line 36
> Error thrown in /Users/ondrej/Downloads/temp-phpstan-error/main_bootstrap.php on line 36 while loading bootstrap file /Users/ondrej/Downloads/temp-phpstan-error/phpstan.bootstrap.php: Failed opening required '/etc/lms/environment.php' (include_path='.:/Users/ondrej/Downloads/temp-phpstan-error/subdomains/api/plugins:/Users/ondrej/Downloads/temp-phpstan-error/lib:/Users/ondrej/Downloads/temp-phpstan-error/subdomains/api/controllers:/Users/ondrej/Downloads/temp-phpstan-error/model')
>
> Can you please fix the repo so that every machine can see the same error
> as you do? Thanks.
>
> —
> Reply to this email directly, view it on GitHub
> <#7331 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAGQDUDNVN5SQ2FUKRB5MEDVMSI35ANCNFSM5XEXT6MA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
I've sent you a suggestion on how to fix your autoloader: https://github.com/itay-moav/temp-phpstan-error/pull/1 |
thanks, just be aware this was not an issue prior to 1.7.0 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I created a repository showing the bug
https://github.com/itay-moav/temp-phpstan-error
Notice I created it with the vendor folder , so do not run the composer
update on this.
Run the vendor/bin/phpstan analyse command to see the error.
This bug happens both on php 7.4.x and php 8.x
This bug was introduced in v1.7.0 (v1.6.9 works fine)
The text was updated successfully, but these errors were encountered: