Skip to content

Function List (PHP) Breaks Completely When Using "string/*" literal #4606

@victor-david

Description

@victor-david

Description of the Issue

When a class has a function that uses a string literal such as:
$target = '/path/to/files/*';
or
$target = '/path/to/files/*.jpg';
The function list breaks completely. No functions are displayed.

Remove the asterisk like so:
$target = '/path/to/files/';
or comment out the offending line like so:
// $target = '/path/to/files/*.jpg';
and all is well again.

Seems likely that this is because of clash with the /* comment syntax

Steps to Reproduce the Issue

  1. Put a line of code in any function as shown above.

Expected Behavior

The function list still works

Actual Behavior

The function list feature breaks completely. No functions are displayed.

Workaround

$target = '/path/to/files/' . '*.jpg';

Note

Per other notes I've seen on function list problems, I removed functionList.xml from the C:\Users\UserName\AppData\Roaming\Notepad++ directory and let NPP copy its latest one in there. Didn't help.

Also, since the workaround is pretty simple, I realize this probably isn't hi-pri. However, I hope that maybe this will help others who are wondering why function list doesn't work on certain files. Thanks so much for NPP.

Debug Information

Notepad++ v7.5.6 (64-bit)
Build time : Mar 19 2018 - 00:23:17
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 7 (64-bit)
Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions