-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Description
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
- 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