Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313125 - Content Assist does not suggest built-in functions, constants and classes in Untitled php document
Summary: Content Assist does not suggest built-in functions, constants and classes in ...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-17 09:16 EDT by Kalin CLA
Modified: 2020-05-14 10:17 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 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.