GithubHelp home page GithubHelp logo

Comments (10)

amir9480 avatar amir9480 commented on June 17, 2024 2

@heyyoudev @tomheadifen @AMD-NICK @Franche020 @Cris123m
Hi everyone
It's a new feature to shows an error when the Laravel Extra Intellisense fails to load your application data to provide autocomplete. you may disable it for the current session using the "Don't show again" button.

In your case, looks like you have defined an App\Policies\ModelPolicy somewhere in your code but this class is not defined.

from vscode-laravel-extra-intellisense.

Cris123m avatar Cris123m commented on June 17, 2024 1

Similar error

2024-04-16 11:39:55.020 [info] Laravel Extra Intellisense command started: Auth Data
2024-04-16 11:39:56.308 [error] Laravel Extra Intellisense Error:
 Application Models

PHP Parse error:  Unclosed '(' in Command line code on line 1

2024-04-16 11:39:56.464 [error] Laravel Extra Intellisense Error:
 Auth Data```

from vscode-laravel-extra-intellisense.

tomheadifen avatar tomheadifen commented on June 17, 2024

Same here, I noticed this happening yesterday.

from vscode-laravel-extra-intellisense.

AMD-NICK avatar AMD-NICK commented on June 17, 2024

+1

screenshot_2024-04-16_17 27 06@2x

from vscode-laravel-extra-intellisense.

Franche020 avatar Franche020 commented on June 17, 2024

Same here

PHP Fatal error: Uncaught UnexpectedValueException: There is no existing directory at "/var/www/html/storage/logs" and it could not be created: Permission denied in /home/franche020/proyectos/proyect/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:200 Stack trace:

from vscode-laravel-extra-intellisense.

AMD-NICK avatar AMD-NICK commented on June 17, 2024

@amir9480 Thank you. I comment one line in AuthServiceProvider and it fixed mentioned problem.

Maybe you can help with another problem that started after installing this plugin. I am currently doing a project after a previous developer with whom there is no communication. After installing the plugin, I get this error in the console once per minute:

screenshot_2024-04-17_16 32 50@2x

This error appears now even after uninstalling the plugin. This function is 100% defined in only one place. On the dev server I executed docker compose pause workspace and the problem stopped. This made me think that cron is running a schedule task in artisan once a minute, but manually executing the command does not cause the error. I then reset all data in Redis and ran docker compose unpause workspace, the problem also stopped appearing. This suggests that some regular task was added to REDIS that was spamming errors to the console once a minute.

from vscode-laravel-extra-intellisense.

tomheadifen avatar tomheadifen commented on June 17, 2024

@amir9480 thank you for your response. My error was slightly different so I re-read the docs and noticed that this was happening because the base path was set incorrectly.

from vscode-laravel-extra-intellisense.

heyyoudev avatar heyyoudev commented on June 17, 2024

Thank you, @amir9480 for the prompt response. You nailed the cause. Closing this issue...

from vscode-laravel-extra-intellisense.

amir9480 avatar amir9480 commented on June 17, 2024

@AMD-NICK
You should define every PHP function wrapped inside a function_exists if statement.

if (! function_exists('json_success')) {
    function json_success(...)
    {
        // ...
    }
}

from vscode-laravel-extra-intellisense.

tonoslav avatar tonoslav commented on June 17, 2024

found it in my AuthServiceProvider.php
it was there by default I think
Just comment it out and it should work

from vscode-laravel-extra-intellisense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.