This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267868 - include auto completion doesn't work
Summary: include auto completion doesn't work
Status: REOPENED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-04 22:11 UTC by amobilia
Modified: 2016-11-12 00:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (18.24 KB, image/png)
2016-11-11 21:03 UTC, junichi11
Details

Note You need to log in before you can comment on or make changes to this bug.
Description amobilia 2016-09-04 22:11:46 UTC
Dev 8.2 / 201609040002
Product Version = NetBeans IDE Dev (Build 201609040002)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_60
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b23



- Make a php file "file1.php"
- Make a php file "file2.php"
- In file2.php, type :
-----
<?php

include ""
-----

- Invoke auto completion between the quotes

What occurs :
=> Nothing is suggested (as files)

What's expected : 
=> filename suggestion to "file1.php"
Comment 1 junichi11 2016-11-11 21:03:20 UTC
Created attachment 162879 [details]
screenshot

I can't reproduce it in NetBeans 8.2.

Product Version: NetBeans IDE 8.2 (Build 201609300101)
Java: 1.8.0_111; Java HotSpot(TM) 64-Bit Server VM 25.111-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_111-b14
System: Linux version 4.4.0-47-generic running on amd64; UTF-8; ja_JP (nb)

Thanks.
Comment 2 amobilia 2016-11-11 22:13:46 UTC
(In reply to junichi11 from comment #1)
> Created attachment 162879 [details]
> screenshot
> 
> I can't reproduce it in NetBeans 8.2.
> 
> Product Version: NetBeans IDE 8.2 (Build 201609300101)
> Java: 1.8.0_111; Java HotSpot(TM) 64-Bit Server VM 25.111-b14
> Runtime: Java(TM) SE Runtime Environment 1.8.0_111-b14
> System: Linux version 4.4.0-47-generic running on amd64; UTF-8; ja_JP (nb)
> 
> Thanks.

Hi,

Please note that the test case doesn't take the semi-column on the end of the line (as in your test).

If the semi-column isn't present, the auto-completion doesn't suggest files.

I reopen this issue.
Comment 3 junichi11 2016-11-11 23:01:52 UTC
(In reply to amobilia from comment #2)
> Please note that the test case doesn't take the semi-column on the end of
> the line (as in your test).
> 
> If the semi-column isn't present, the auto-completion doesn't suggest files.
> 
> I reopen this issue.

I see now. Unfortunately, we cannot fix it in the current implementation (the parser is used). Because there is a syntax error. 

I think that users can add a semicolon easily [Ctrl + ;].

Thanks.
Comment 4 junichi11 2016-11-12 00:18:19 UTC
(In reply to junichi11 from comment #3)

> we cannot fix it in the current implementation

Sorry, I'm wrong. Probably, it can be fixed.

Thanks.