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

VsCode Go to definition not working #1543

Open
carlituxman opened this issue May 10, 2024 · 0 comments
Open

VsCode Go to definition not working #1543

carlituxman opened this issue May 10, 2024 · 0 comments
Labels

Comments

@carlituxman
Copy link

Versions:

  • ide-helper Version: 3.0.0
  • Laravel Version: 10.28
  • PHP Version: 8.1.26

Description:

VsCode with intelephense not detect definition for a function class

Steps To Reproduce:

I have this code:

//app/http/controllers/Api/ProcessController.php
namespace App\Http\Controllers\Api;
use App\Models\Center\Center;
$center = Center::where("uid", 1)->first();
$mySome = $center->getSome(); //No definition found for 'getSome()'

//app/models/Center/Center.php
namespace App\Models\Center;
class Center extends Model {
    public function getSome()
    {
        return "some";
    }
}

Then cmd+click or Go to definition "getSome()" on Center class throw: "Not definition found for ...."

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

No branches or pull requests

1 participant