Skip to content
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

Doesn't work under Windows 7 and sublime 2 #21

Closed
drakakisgeo opened this issue Apr 27, 2013 · 22 comments
Closed

Doesn't work under Windows 7 and sublime 2 #21

drakakisgeo opened this issue Apr 27, 2013 · 22 comments

Comments

@drakakisgeo
Copy link

I put this in the path
"php_path": "C:/wamp/bin/php/php5.3.8/"

or this

"php_path": "C:\wamp\bin\php\php5.3.8"

Console says this after command:

found 13 files for base name Main.sublime-menu
Traceback (most recent call last):
File ".\generate.py", line 51, in call_artisan
File ".\subprocess.py", line 633, in init
File ".\subprocess.py", line 842, in _execute_child
WindowsError: [Error 5] Access is denied

@samvasko
Copy link

There is a same the issue just before this one,
please close it and just copy it there

@drakakisgeo
Copy link
Author

Its not the same error, thats why I opened another one. WindowsError: [Error 5] Access is denied

@gnarula
Copy link
Owner

gnarula commented Apr 27, 2013

@lollypopgr add php.exe at the end of the path (assuming thats the name of the executable). If the error still persists, it might be an issue with permissions

@drakakisgeo
Copy link
Author

Hi gnarula, great work by the way! Tried to add this, but it didn't work.

@gnarula
Copy link
Owner

gnarula commented Apr 29, 2013

Try running sublime as administrator (just for the sake of testing this). This would ascertain if it is a permission issue.

@rahulparekh
Copy link

@gnarula - Running as an administrator worked, indeed! When I tried running it without the admin privileges, it ran artisan commands without any issue (because artisan doesn't need admin rights, I think) while generating models, resource etc failed.

Anyway, I'm using this on win7 x64 with Xampp.

This is my settings file:

{
"php_path": "C:/xampp/php/php.exe"
}

Hope this helps people who are having issues running it on windows.

@drakakisgeo
Copy link
Author

Strange @rahulparekh because my user has admin rights and I really can't make it work.

@coldfuzion
Copy link

Just to confirm -

adding

{
"php_path": "C:/xampp/php/php.exe"
}

and running as administrator ( sublime text 2 program ) worked for me. It is a permission problem somewhere. This does fix it. If anyone knows why this exists on windows 7 let me know?

@goldnetonline
Copy link

The issue i had was, when trying to run any of the generation tools, what I get is 'Artisan not found' on the Sublime text command.

I tried running window 7 as Administrator, I still get the same errors, I( am using XAMPP

Any help please, Thanks

@gnarula
Copy link
Owner

gnarula commented Jul 1, 2013

Are you working on a laravel project on Sublime Text (the folder should be
there in the sidebar) and is the artisan binary in the same folder?

On Tue, Jul 2, 2013 at 12:17 AM, Akeem Temitayo notifications@github.comwrote:

The issue i had was, when trying to run any of the generation tools, what
I get is 'Artisan not found' on the Sublime text command.

I tried running window 7 as Administrator, I still get the same errors, I(
am using XAMPP

Any help please, Thanks


Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-20301943
.

@goldnetonline
Copy link

This is making me cry right now, I think the stuff seems to be working but all I get is Artisan not found, funny enough artisan is at the root of my project. I dont really know what I am missing, the snippet is also working as explained in the workflow window.

@imroue
Copy link

imroue commented Jul 5, 2013

I have the same issue with "Artisan not found" using Mac Osx and I know it's there because I can run it manually, but not through Sublime Text generator

@goldnetonline
Copy link

Ok, but @imroue I believe you can run it via the console, if you can do that, carry on. The generator is a bomb on its own. imagine the generate:scaffold command. just like all the hell of work done for you, what a workflowic way to speed things. Thanks jeff.

@imroue
Copy link

imroue commented Jul 8, 2013

@goldnet, so are you saying you gave up on the plugin?

@gnarula
Copy link
Owner

gnarula commented Jul 8, 2013

@imroue let's create a separate issue for each platform. I checked the plugin on Linux (Sublime Text 3 build 3047) and OS X (Sublime Text 2 Build 2221) and it works fine. More information would be appreciated in a separate issue.

P.S. Windows is next

@goldnetonline
Copy link

@imroue on sublime text 2 yes, but I now use the generator on the console, it works perfectly for me, and I dont really have the speed issue since my console is always open.

Also I wish I could donate to the author of the generator someday, there are some things the generator taught me that even speed things up with learning laravel. Thanks again Jeffery. I'll make some donation as soon as I can

@drakakisgeo
Copy link
Author

I just stopped using it under windows.

@Perkin5
Copy link

Perkin5 commented Oct 6, 2013

Hi lollypopgr - I have the exact same problem. Did you ever get it sorted out?

@drakakisgeo
Copy link
Author

I stopped using it. Started to work on ubuntu in general, so things like that doesn't exist there.

@Perkin5
Copy link

Perkin5 commented Oct 7, 2013

I can't think of anything else to try. Sigh...

@reuf
Copy link

reuf commented Jan 5, 2014

Same issue here. Sad to have this happen.

@jack6800
Copy link

There is a scenario that your sublime project included many folders may caused "Artisan not found" issue, I'm using win7 64 and fix this issue by add php.exe just like what Rahulparekh did and has only folder that include Artisan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants