Comments (8)
First issue:
It's weird because Arr
class is an alias class in laravel.
https://github.com/laravel/laravel/blob/c66546e75fcbf208d2884b5ac7a3a858137753a3/config/app.php#L194
Second issue:
About AuthServiceProvider
, it's a commented line by default and should not be filled with non-existing
class.
https://github.com/laravel/laravel/blob/c66546e75fcbf208d2884b5ac7a3a858137753a3/app/Providers/AuthServiceProvider.php#L16
Third issue:
It's weird, I used this method to get middleware names.
You can see it's definition here:
Make sure you are using the latest version of laravel in your project.
from vscode-laravel-extra-intellisense.
I see. yes i've check the files it seems that these changes is applied to Laravel's 5.8 and above. So the one who used Laravel 5.7 and below will get these errors in their laravel log.
Do you plan on supporting old laravel ?
also btw, I think you should update your log handler seems to not be working as it logs to laravel's log file on this line
maybe you can try it with
$this->app['log']->getLogger()->pushHandler(new \\Monolog\\Handler\\NullHandler());
from vscode-laravel-extra-intellisense.
No, I do not have any plans to support older versions of laravel.
I highly recommend you to update your laravel application to the latest version.
Also about this handler please make a pull request to fix, So I can check and use your solution, thanks.
from vscode-laravel-extra-intellisense.
Alright, I'll do it.
from vscode-laravel-extra-intellisense.
@amir9480 You should consider using FQN instead of assuming people have their aliases registerered.
Some people might upgrade their Laravel projects without updating configs cause it's never included in the upgrade guides unless it's a breaking change. Aliases will NEVER be a breaking change in configs. They're made for the convenience of the developer. They're optional, not required.
from vscode-laravel-extra-intellisense.
@mwkcoding
Hi
I don't understand what you mean.
Can you please send me a sample code to disable the Laravel log?
The current code is:
https://github.com/amir9480/vscode-laravel-extra-intellisense/blob/master/src/helpers.ts#L80
from vscode-laravel-extra-intellisense.
@amir9480 I mean for example with helper classes like Arr
https://github.com/amir9480/vscode-laravel-extra-intellisense/blob/master/src/AuthProvider.ts#L55
Instead of expecting there to be an alias for it in the project, use the FQN Illuminate\Support\Arr
. That would solve this error on Laravel ^6.0 which might not have the class registered as an alias in their config from upgrading from Laravel 5.
from vscode-laravel-extra-intellisense.
@mwkcoding
Got it.
Contributions are welcome.
Please fix this and make a pull request.
from vscode-laravel-extra-intellisense.
Related Issues (20)
- Type annotations don't work correctly
- basePath doesn't work HOT 1
- Not working anymore
- Not working with any function
- php: not found HOT 6
- unknown errors HOT 4
- Not updating the intellisense when file is updated HOT 7
- Title: Recurring Error in VSCode Laravel Extra Intellisense Extension HOT 10
- on vscode startup it gives an error HOT 1
- Laravel Extra Intellisense Error HOT 3
- VS Code error
- vscode error HOT 1
- Errors with WSL2 containers HOT 2
- Autocomplete stopped randomly! HOT 2
- Constant mistakes HOT 3
- Docker Instructions HOT 1
- 1 uncaught errors
- Goto Controller not working HOT 1
- Loading extension results in unexpected shutdown on Windows 11 HOT 1
- How to use this extension with docker? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-laravel-extra-intellisense.