Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » Unable To Resolve Import
Unable To Resolve Import [message #1851028] Fri, 25 March 2022 01:52 Go to next message
Eclipse UserFriend
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 07:02 Go to previous message
Eclipse UserFriend
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: Sat Jun 14 20:58:03 EDT 2025

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

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

Back to the top