Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332880 - Completion doesn't work (workspace archive available)
Summary: Completion doesn't work (workspace archive available)
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact: Ilina Stefanova CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-18 00:50 EST by Timo A. Hummel CLA
Modified: 2020-05-14 10:15 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timo A. Hummel CLA 2010-12-18 00:50:57 EST
In regards to bug #332608 I tried to setup a reproduce case. However, another bug occured where completion doesn't work across projects.

I attached a workspace so you can quickly reproduce it. Simply open the File "BaseController.php" within the test2 project, go into the method getAdminMenu and type "$this->". Nothing happens. If you press CTRL+Space several times, eventually the following error occurs in the Error Log:


eclipse.buildId=M20100909-0800
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.php.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.php.product


Error
Sat Dec 18 06:44:36 CET 2010
PHPCore plugin internal error

org.eclipse.dltk.core.ModelException: ContainerAwareInterface [in Symfony\Component\DependencyInjection [in bootstrap.php [in <default> [in src/Symfony/Component/HttpKernel [in symfony2]]]]] does not exist
at org.eclipse.dltk.internal.core.ModelElement.newNotPresentException(ModelElement.java:258)
at org.eclipse.dltk.internal.core.ModelElement.openWhenClosed(ModelElement.java:196)
at org.eclipse.dltk.internal.core.ModelElement.getElementInfo(ModelElement.java:171)
at org.eclipse.dltk.internal.core.ModelElement.getChildren(ModelElement.java:356)
at org.eclipse.dltk.internal.core.ModelElement.getChildrenOfType(ModelElement.java:335)
at org.eclipse.dltk.internal.core.ModelElement.getChildrenOfType(ModelElement.java:330)
at org.eclipse.dltk.internal.core.SourceType.getMethods(SourceType.java:111)
at org.eclipse.php.internal.core.typeinference.PHPModelUtils.getTypeMethod(PHPModelUtils.java:1521)
at org.eclipse.php.internal.core.typeinference.PHPModelUtils.getTypesMethod(PHPModelUtils.java:1669)
at org.eclipse.php.internal.core.typeinference.PHPModelUtils.getSuperTypeHierarchyMethod(PHPModelUtils.java:1272)
at org.eclipse.php.internal.core.typeinference.PHPModelUtils.getTypeHierarchyMethod(PHPModelUtils.java:1411)
at org.eclipse.php.internal.core.codeassist.strategies.ClassMethodsStrategy.apply(ClassMethodsStrategy.java:91)
at org.eclipse.php.internal.core.codeassist.PHPCompletionEngine.complete(PHPCompletionEngine.java:109)
at org.eclipse.php.internal.core.codeassist.PHPCompletionEngine.complete(PHPCompletionEngine.java:64)
at org.eclipse.dltk.internal.core.Openable$CompletionThread.run(Openable.java:467)

-- The child error is: --

eclipse.buildId=M20100909-0800
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.php.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.php.product


Error
Sat Dec 18 06:44:36 CET 2010
ContainerAwareInterface [in Symfony\Component\DependencyInjection [in bootstrap.php [in <default> [in src/Symfony/Component/HttpKernel [in symfony2]]]]] does not exist




-- Configuration Details --
Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.php.product)
Installed Features:
 org.eclipse.platform 3.6.1.r361_v20100909-9gF78GrkFqw7GrsZnvz0JWNTeb6fue6896L
Comment 1 Timo A. Hummel CLA 2010-12-18 00:52:42 EST
The workspace can be found at http://www.timohummel.com/temp/workspace-332880.tbz2
Comment 2 Timo A. Hummel CLA 2010-12-18 01:07:40 EST
After removing the file "bootstrap.php" from the build path, the completion works again. However, completion should work even if an "unsuitable" source file is parsed, instead of throwing an error.
Comment 3 Zhongwei Zhao CLA 2011-05-10 02:37:35 EDT
fixed in head
Comment 4 Kalin CLA 2011-07-27 06:40:41 EDT
No longer reproducible using random projects.
The provided link leads to nowhere.
If you reproduce, provide a valid link.
Closing...