Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hanging issue when calltip/AutoComplete API file contains many newlines "
" #2245

Closed
rtetsoacrsf opened this issue Sep 5, 2016 · 1 comment

Comments

@rtetsoacrsf
Copy link

Description of the Issue

Opening NPP or switching tabs to a python file causes NPP to hang if the 'plugins\APIs\python.xml' file has many newlines ' '. If we replace the with a not formatting string there is no haning however it isn't possible to see all of the calltip.

Steps to Reproduce the Issue

  1. Download the attachment python.xml.txt
  2. Rename it as "python.xml"
  3. Load the python.xml file into plugins\APIs (I suggest backing up the original)
  4. Use the language formatting for python either by opening a .py file OR selecting Language --> P --> Python
    (regardless of whether Autocomplete or parameter hints are enabled)

Expected Behavior

There to be no difference in loading time when the calltips contains many newlines

Actual Behavior

There is a massive delay when loading calltip files that have many newlines

Debug Information

Notepad++ v6.9.2
Build time : May 18 2016 - 00:34:05
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10
Plugins : ComparePlugin.dll DSpellCheck.dll Explorer.dll mimeTools.dll NppConverter.dll NppExport.dll PluginManager.dll

python.xml.txt

@rtetsoacrsf
Copy link
Author

Oops, I forgot to include a copy of the python.xml with no newlines.
This is the same file where has been replaced with a representative non-formatting sequence
python.xml with no newlines.txt

Last note:
To see the difference between the formatted and unformatted calltip type:
difflib(
into a python formated file (as in step 4.)
with each plugins\APIs\python.xml file loaded, one will extend of most screens the other will have several newlines in it.
Ensure: Settings --> Preferences... --> auto-completion --> Function parameter hints on input --> enabled

dail8859 added a commit to dail8859/notepad-plus-plus that referenced this issue Sep 11, 2016
SinghRajenM pushed a commit to SinghRajenM/notepad-plus-plus that referenced this issue Nov 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant