Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Unable To Resolve Import
Unable To Resolve Import [message #1851028] Fri, 25 March 2022 05:52 Go to next message
sandy wroof is currently offline sandy wroofFriend
Messages: 1
Registered: March 2022
Location: UK
Junior Member
Hello, and sorry to bother you, I'm becoming crazy.

I'm working on a Symfony app with Eclipse PDT and I have a problem with every "use" in my src/ folder.

To be clear :

EVERY "use" that refers to a class in my src/ folder generates the error "The import cannot be resolved".

BUT where I become crazy: my Build path in the project property includes my src/folder without any restriction.

Can someone help me to solve this trouble?
Thanks in advance.


Re: Unable To Resolve Import [message #1861386 is a reply to message #1851028] Tue, 10 October 2023 11:02 Go to previous message
steve diaz is currently offline steve diazFriend
Messages: 5
Registered: October 2023
Junior Member
Hello

If you're getting "The import cannot be resolved" errors for Symfony classes in Eclipse PDT:

Run composer update to update dependencies.
Ensure vendor/autoload.php is included at the top of PHP files.
Refresh or rebuild the project index in Eclipse.
Check and correct namespace and use statements.
Clear Symfony cache with php bin/console cache:clear.
Regenerate Composer's autoload files with composer dump-autoload.
Verify IDE settings and PHP interpreter configuration.
Watch for typos and case sensitivity.
Consider reimporting the project into Eclipse PDT if the issue persists.
You can check this : https://www.eclipse.org/forums/Mulesoft Certification
Previous Topic:What is a better dev setup instead of xampp?
Next Topic:How to Enable JQuery Code Assistant on Eclipse?
Goto Forum:
  


Current Time: Thu Oct 10 14:54:46 GMT 2024

Powered by FUDForum. Page generated in 0.04316 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top