CSVLint crashes Notepad++ with a CSV file open and running editor.getProperty('qwerty')
in PythonScript console
#25
Labels
bug
Something isn't working
Using
Notepad++ version 8.4.1 with only these two plugins installed:
Steps to Replicate
editor.setProperty('TESTING', 'Hello, World!')
editor.getProperty('TESTING')
editor.getProperty('TESTING')
command.Additional Info
This issue does not occur when tested with Notepad++ version 8.3.3, CSVLint v0.4.5, PythonScript v2.0.0.0.
The screenshot when similar steps work fine with the prior version of CSVLint and Notepad++.
You will notice that with Notepad++ version 8.3.3 & CSVLint v0.4.5, I also have the Fixed Width Data Visualizer plugin side panel open. In fact, I am the author of the FWDataViz plugin.
Recently, it came to my notice that in Notepad++ v8.4.1, with the FWDataViz side panel open, if I opened a CSV file, NPP would crash. I did some debugging with my plugin's source code and determined that the cause for the crash was at the point when my plugin issued a
SCI_GETPROPERTY
SendMessage to Scintilla. To confirm that the plugin at issue is CSVLint, I was able to reproduce the crash without the FWDataViz plugin, and with just the PythonScript plugin by issuing theeditor.getProperty('TESTING')
command while a CSV file was open in the editor.Also, this crash does not occur when a different file type than a CSV file is the active document in the NPP editor when I issue the
editor.getProperty('TESTING')
command. In the screenshot below note that a CSV file is actually open in the first tab.The text was updated successfully, but these errors were encountered: