nodpc / jn-npp-plugin

Automatically exported from code.google.com/p/jn-npp-plugin
0 stars 0 forks source link

Installing jN crashes Notepad++ #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install clean copy of Notepad++ (6.5.3)
2. Download and place jN.dll and the jN folder into C:\Program Files 
(x86)\Notepad++\plugins
3. Open Notepad++

What is the expected output? What do you see instead?
Expected: Notepad++ opens without any error messages.
Actual: Following pop-up is displayed.
popup window title: "just crash in"
===
DSpellCheck.dll just crash in notify(SCNotification *notification):
 notification->nmhdr.code == 1001
 notification->nmhdr.hwndFrom == 263434
 notification->nmhdr.idFrom == 0
===
Upon clicking the OK, the Notepad++ screen turns gray, Windows takes over and 
after a few seconds, a pop up "Notepad++: a free (GNU) source code editor has 
stopped workding. ... [Close program]".

What version of the product are you using? On what operating system?
Win 7
Notepad++ 6.5.3
jN 2.0.100

Original issue reported on code.google.com by obakasa...@gmail.com on 14 Jan 2014 at 7:31

GoogleCodeExporter commented 9 years ago
I can't reproduce on Win7 x86 and Win8 x86. 

1. Did you select any check boxes during Npp installation? Don't use 
"%APPDATA".. for example.
2. Can you attach NppDump.dmp? Located either in %TEMP% or Npp folder
3. Can you try to start Npp as administrator?

Original comment by eugen.kr...@gmail.com on 14 Jan 2014 at 8:49

GoogleCodeExporter commented 9 years ago
Thanks for the quick response.

1. Uninstalled and re-installing NPP with the following settings.
[unchecked] don't use %APPDATA%
[unchecked] allow plugins to be loaded from %APPDATA%\\notepadd++\\plugins
[unchecked] create shortcut
[unchecked] use the old, obsolete and monstrous icon

Then, copied jN.dll and jN folder, but still same symptom. Screenshot attached.

2. I could not find NppDump.dmp in:
- C:\Program Files (x86)\Notepad++
- temp folder (start - run - "%temp%" - enter)
- windows explorer file search for "nppdump.dmp" or "nppdump"

3. #1 above was run as administrator (as seen in the title bar of screenshot)

Original comment by obakasa...@gmail.com on 14 Jan 2014 at 9:42

Attachments:

GoogleCodeExporter commented 9 years ago
can you try attached version!

Original comment by eugen.kr...@gmail.com on 14 Jan 2014 at 10:14

Attachments:

GoogleCodeExporter commented 9 years ago
Copied jN.dll to the plugins folder, and that did *not* crash NPP, hooray!

This is probably expected but: when I clicked on menubar - Plugins - jN 
Notepad++ Plugin - About, nothing appeared.

I then copied the downloaded jN folder into the plugins folder, and when NPP is 
started, a pop up appears: [title] Exception [message] PDM creation failed. 
Upon clicking the OK button, I got another pop up (screenshot attached).

Closing and opening NPP again, the PDM pop up appeared again, but the second 
one didn't...

Original comment by obakasa...@gmail.com on 14 Jan 2014 at 10:23

Attachments:

GoogleCodeExporter commented 9 years ago
Hello, 
thank you for your coworking, the bug is found!

Recently I added debugging functionality to jN. One can debug own scripts using 
VS or MS Script Debugger. And I tested new version only on PCs with this tools 
installed. I assumed that debugging kernel is delivered with scripting engine 
together.

I will remove the first popup with exception message and release new version 
next time.

The second message comes only ones because of moving of settings.js file into 
usere dependent folder. Because old location is read only on Win7 PCs and a 
write operation would lead to error.

Original comment by eugen.kr...@gmail.com on 15 Jan 2014 at 7:32

GoogleCodeExporter commented 9 years ago
Issue 8 has been merged into this issue.

Original comment by eugen.kr...@gmail.com on 15 Jan 2014 at 4:06

GoogleCodeExporter commented 9 years ago
Glad I could help :)

One more thing: the one feature/script that I love about your npp plugin is the 
SmartHighlighter script, which used to allow me to highlight all instances of 
the selected word, even those that are substrings of larger words. Please see 
screenshot. I still have this feature on my old computer's NPP (npp: 5.9.6.2, 
jN: not sure which version), but is not working on my current computer.

I'm not sure if this is an issue with the jN bug you just discovered, or a 
compatibility issue between the SmartHighlighter.js and NPP 6.5.3

Original comment by obakasa...@gmail.com on 15 Jan 2014 at 5:23

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed with checkin 115

Original comment by eugen.kr...@gmail.com on 15 Jan 2014 at 7:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Please try the next version 
http://code.google.com/p/jn-npp-plugin/downloads/detail?name=jN_2.0.116.zip

Original comment by eugen.kr...@gmail.com on 15 Jan 2014 at 7:43

GoogleCodeExporter commented 9 years ago
Removed the old jN.dll and jN folder, copied over the new ones, and it worked! 
No pop-ups. No installation issues.

However, the issue I described in #7 is not fixed; is it a problem with the 
SmartHighlighter.js script, instead of your plugin? (I have not really looked 
at that .js file).

Original comment by obakasa...@gmail.com on 15 Jan 2014 at 8:17

GoogleCodeExporter commented 9 years ago
Please open new issue and we will fix it together!

Original comment by eugen.kr...@gmail.com on 15 Jan 2014 at 8:25

GoogleCodeExporter commented 9 years ago
Done (issue 9). Thanks!

Original comment by obakasa...@gmail.com on 15 Jan 2014 at 9:02