Comments (9)
Sorry for the delayed reply, but that looks like it works. Since the file is empty it is starting the extension, but not able to execute commands.
I did find that vscode accepts a glob for the workspaceContains
activation event, so replacing with a glob pattern should fix the issue.
Now when the extension launches, it finds all artisan
files, and saves them into memory. When you run a command and you have more than one artisan file it will ask which one you want to use. If you only have one artisan file it will use that one.
Because of this change, I will start to phase out the configuration setting artisan.location
in favor of a selection box to choose a artisan
to use.
Please test this with the updates: laravel-artisan-0.0.21.vsix.zip
Thanks for your help!
from vscode-laravel-artisan.
It looks like that command was using a old way of executing, I updated it to use the new way. Try this one:
laravel-artisan-0.0.21.vsix.zip
from vscode-laravel-artisan.
${workspaceRoot}
isn't a valid path. Currently a valid (exact) path is required. I could look into adding ${workspaceRoot}
at some point though.
from vscode-laravel-artisan.
@TheColorRed Even with hard path, I still cannot make it work. Sorry, should have mentioned that.
from vscode-laravel-artisan.
Okay, the issue is that the extension isn't starting because the file artisan
isn't in the root directory.
For testing purposes, could you create an empty file named artisan
in the root then restart vscode and see if that works?
from vscode-laravel-artisan.
I did what you asked: create an artisan
empty file in workspace root, then restart vscode.
This time when I run Artisan: List Commands
, I get a different error "Could not get the list". Output channel (Laravel Artisan) shows up in console log:
[CMD] php artisan list --format=json
[ERROR]
[CMD] php artisan route:list
[ERROR]
from vscode-laravel-artisan.
@TheColorRed Thank you for working on it!
Route list and list artisan commands both work. Most other commands that I tried also work.
There is one thing I am not sure how it works. I try Artisan: Run Command
and nothing happens. Is there something else I am supposed to do for that command to work?
Thank you again!
from vscode-laravel-artisan.
I have tried the new install you attached (I notice it's the same version as the one before, so I uninstalled the old one, reload vscode, then install the new vsix). It's still nothing happens when I try Artisan: Run Command
.
Update: I deleted the extension folder under .vscode/extensions/ and tried to install it again. This time it works.
Thank you very much for you efforts!
from vscode-laravel-artisan.
Thank you for testing! This has now been published to the marketplace.
from vscode-laravel-artisan.
Related Issues (20)
- getting error after update HOT 8
- Display Panel always shows "Loading Route Information..." HOT 6
- Publish the extension to Open VSX HOT 1
- Docker commands executed but not taking effect HOT 1
- command failed HOT 1
- Can you add livewire support?
- Extension issue
- Markdown with "Make Mail" HOT 3
- Extension issue
- Extension issue
- Extension issue
- Add the license for your code and publish to open-vsx.org HOT 2
- why this plugin isn't working? HOT 1
- Missing Make component HOT 3
- Add sail compatibility HOT 3
- Suppoprt the new Laravel 9 artisan route:list command HOT 1
- Error command 'artisan.make.middleware' not found HOT 2
- Can you add datatable support HOT 2
- Artisan make:whatever in folder
- Empty output
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-artisan.