Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hey Spryks! I have a small issue with PHPStorm finding the Spryker core classes: Any idea why this

Options
U02P7B6K2LC
U02P7B6K2LC Posts: 121 🧑🏻‍🚀 - Cadet
edited March 2022 in Help

Hey Spryks!

I have a small issue with PHPStorm finding the Spryker core classes:

Any idea why this might be happening?

Comments

  • giovanni.piemontese
    giovanni.piemontese Technical Lead @ Löffelhardt Spryker Solution Partner Posts: 871 🧑🏻‍🚀 - Cadet
    Options

    Is spryker/data-import installed? Is vendor / spryker there?

  • U02P7B6K2LC
    U02P7B6K2LC Posts: 121 🧑🏻‍🚀 - Cadet
    Options

    Yes… system is working well etc. Just PHPStorm not finding the classes…

  • giovanni.piemontese
    giovanni.piemontese Technical Lead @ Löffelhardt Spryker Solution Partner Posts: 871 🧑🏻‍🚀 - Cadet
    Options

    OK strange.. then maybe indexing of project in phpstorm is corrupted/not completed.. try to close and open again project... I don't know what happened...

  • U01A5ARAXP0
    U01A5ARAXP0 Posts: 119 🧑🏻‍🚀 - Cadet
    edited March 2022
    Options

    it was working before? Did you move some directories? Composer autoload?

  • U02P7B6K2LC
    U02P7B6K2LC Posts: 121 🧑🏻‍🚀 - Cadet
    Options

    Honestly I can’t remember if it did or not… I’m only noticing it now because I’m debugging

  • U02P7B6K2LC
    U02P7B6K2LC Posts: 121 🧑🏻‍🚀 - Cadet
    Options

    The restart didn’t help either unfortunately.

  • U01A5ARAXP0
    U01A5ARAXP0 Posts: 119 🧑🏻‍🚀 - Cadet
    Options

    can you try and do composer autoload -o?

  • Alexander Veselov
    Alexander Veselov Sprykee Posts: 9 🧑🏻‍🚀 - Cadet
    Options

    And try to find the class. it can be happened when you have 2 classes with one namesapce. 2 vendors or something

  • U013EK8RD7A
    U013EK8RD7A Posts: 127 🧑🏻‍🚀 - Cadet
    Options

    @U02P7B6K2LC check if PHP storm didn’t added vendor directories to exclude list (or spryker directory).

  • U02P7B6K2LC
    U02P7B6K2LC Posts: 121 🧑🏻‍🚀 - Cadet
    Options

    @U013EK8RD7A That was it exactly!! PHPStorm had excluded the directories… I’ve un-excluded now and PHPStorm is currently indexing. 😄

  • U01A5ARAXP0
    U01A5ARAXP0 Posts: 119 🧑🏻‍🚀 - Cadet
    Options

    well, I have my vendor directory excluded and still I don't have that issue