Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313125

Summary: Content Assist does not suggest built-in functions, constants and classes in Untitled php document
Product: z_Archived Reporter: Kalin <kalin.a>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: zulus
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kalin CLA 2010-05-17 09:16:26 EDT
Build Identifier: EclipsePdt 2.2.0.v20100517

Content Assist does not suggest built-in functions, constants and classes in Untitled php document.

Reproducible: Always

Steps to Reproduce:
1. Go to main menu | File | New | Untitled PHP file
2. An untitled php file is opened in editor.
3. Try Content Assist (Ctrl+Space) in the editor:

Expected:
The following items should be suggested:
-PHP keywords
-PHP Templates
-global variables
-built-in functions
-built-in constants
-built-in classes 

Actual:
PHP keywords, PHP Templates and global variables are suggested only.
Comment 1 Zhongwei Zhao CLA 2010-05-18 22:29:58 EDT
No idea about how to fix this,this is the same as File->Open File... then choose a external php file,you can only get PHP keywords, PHP Templates and global variables for CA.

Because they do not belong to any php project.
Comment 2 Dawid Pakula CLA 2014-02-18 19:07:52 EST
With untitled(external) files we cannot detect PHP version.

Alternative way is hidden .externalPHPProject with PHPNature and default PHPVersion (like in DLTK for ExternalSourceModule). 

Next, auto connect untitled/external files into this.

Off course if this is possible with DLTK.