question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remote php interpreter Laravel root directory problem

See original GitHub issue

Stange problem here :

My setup is as follow : my php interpreter is “remote” : ssh connection to a local running VM

It so happens that when i try to run the tinker console, I got this phpstorm notification : “The configured laravel root is not a directory Please check if it’s the right path. Using a guessed vendor path for now.”

The strange thing is that if I take the path in “Laravel root folder”, and put “cd path” in my .bashrc, it actually works, which means that the directory definetely exists.

I looked in the repository and came to this (PhpArtisanTinkerUtil.kt line 56)

if (projectSettings.laravelRoot.isNotEmpty()) {
    val customLaravelRoot = File(projectSettings.laravelRoot)
    
    if (customLaravelRoot.exists() && customLaravelRoot.isDirectory) {
        val customComposerDir = File(customLaravelRoot.path + "/vendor")
        
        if (customComposerDir.exists() && customComposerDir.isDirectory) {
            laravelRoot = projectSettings.laravelRoot
        } else {
            LaravelRootDoesNotHaveVendorBalloon(project).show()
        }
    } else {
        LaravelRootDoesNotExistBalloon(project).show()
    }
}

As far as I understand it (not that much), this is for local php interpreter, and I didn’t find anything related to remote : did I missed something ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Roboroadscommented, Oct 29, 2021

@Guilhem-DELAITRE Text is changed in the next release 😃

0reactions
Roboroadscommented, Nov 8, 2021

This issue is now released and accepted! You can update via your IDE plugins settings 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

2.0.0 fails when used with Homestead Remote PHP interpreter
I am using a remote PHP interpreter through Laravel Homestead. ... But when I started poking around the path mappings I found the...
Read more >
Configure remote PHP interpreters | PhpStorm Documentation
Press Ctrl+Alt+S to open the IDE settings and select PHP. On the PHP page that opens, click the Browse button next to the...
Read more >
How to debug php artisan serve in PHPStorm? - Stack Overflow
... Check Use route script and select server.php in Laravel projects root directory. Interpreter options: -dxdebug.remote_enable=1 ...
Read more >
Laravel Sail - Laravel - The PHP Framework For Web Artisans
This command will publish Sail's docker-compose.yml file to the root of your ... you may add this to your shell configuration file in...
Read more >
PhpStorm, Docker and Xdebug 3 on PHP 8.1 in 2022
In this part of the tutorial series on developing PHP on Docker we will set ... We will configure a remote PHP interpreter...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found