nodpc / jn-npp-plugin

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

Navigation bar not visible #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install jN_2.0.116.zip
2. Restart Notepad++
3. Mark text using style 1

What is the expected output? What do you see instead?
Should see marked occurrences in navigation bar. but i do not see navigation 
bar in the first place.

What version of the product are you using? On what operating system?
 jN_2.0.116.zip, Notepad++ v6.5.2, wine in linux

Please provide any additional information below.

Original issue reported on code.google.com by junaidel...@hotmail.com on 25 Feb 2014 at 2:32

Attachments:

GoogleCodeExporter commented 9 years ago
jN was never tested with wine, but it is very interesting thing for me. I don't 
have a working linux distribution to try it, hence I would ask you to do it.

Please try following
1. install winetricks 
http://ubuntu-snippets.blogspot.de/2008/05/as-most-of-us-know-wine-is-used-to-ru
n.html
2. install wsh56js using winetricks
3. start Notepad++ again

I would try it in parallel, but I don't have much time for this yet.

Original comment by eugen.kr...@gmail.com on 25 Feb 2014 at 8:03

GoogleCodeExporter commented 9 years ago
As suggested, I have installed wsh56js. After restarting Notepad++, I get the 
following error on linux terminal.

err:ole:CoGetClassObject class {78a51822-51f4-11d0-8f20-00805f2cd064} not 
registered
err:ole:CoGetClassObject class {78a51822-51f4-11d0-8f20-00805f2cd064} not 
registered
err:ole:create_server class {78a51822-51f4-11d0-8f20-00805f2cd064} not 
registered
err:ole:CoGetClassObject no class object {78a51822-51f4-11d0-8f20-00805f2cd064} 
could be created for context 0x7
err:ole:CoGetClassObject class {6c736db1-bd94-11d0-8a23-00aa00b58e10} not 
registered
err:ole:CoGetClassObject no class object {6c736db1-bd94-11d0-8a23-00aa00b58e10} 
could be created for context 0x1

I also get an error in Notepad++, which states "Automation server can't create 
object line:330, pos:2". The error is also attached to this post. Any ideas?

Original comment by junaidel...@hotmail.com on 25 Feb 2014 at 11:10

Attachments:

GoogleCodeExporter commented 9 years ago
Following messages say that debugging components not available. Most of systemt 
don't have them. It should be Ok.

err:ole:CoGetClassObject class {78a51822-51f4-11d0-8f20-00805f2cd064} not 
registered
err:ole:CoGetClassObject class {78a51822-51f4-11d0-8f20-00805f2cd064} not 
registered
err:ole:create_server class {78a51822-51f4-11d0-8f20-00805f2cd064} not 
registered
err:ole:CoGetClassObject no class object {78a51822-51f4-11d0-8f20-00805f2cd064} 
could be created for context 0x7

Please try following

1. Deinstall wsh56js
2. Install wsh56
3. If it did not help, then install mdac28 additionaly
4. If it did not help, then install jet40, msxml6 additionaly 

Original comment by eugen.kr...@gmail.com on 26 Feb 2014 at 9:13

GoogleCodeExporter commented 9 years ago
1. Did not find any easy way to deinstall wsh56js.
2. Installed wsh56 successfully. Had to first compile and install cab_extract 
in linux environment.
3. Installed mdac28 successfully.
4. Installed msxml6 sucessfully. Installed jet40 successfully.

Now I can see Navigation bar and extra menus in Notepad++ but I still get error 
messages in Notepad++ and Navigation bar does not seem to function. 

The error messages are attached and occur in following order: Capture1, 
Capture2, Capture.

Screenshot of Notepad++ is attached as Capture 4.

Original comment by junaidel...@hotmail.com on 26 Feb 2014 at 11:19

Attachments:

GoogleCodeExporter commented 9 years ago
Forgot to attach Capture4 screenshot.

Original comment by junaidel...@hotmail.com on 26 Feb 2014 at 11:20

Attachments:

GoogleCodeExporter commented 9 years ago
good news, it works, but needs to be debugged :)

Original comment by eugen.kr...@gmail.com on 27 Feb 2014 at 8:43

GoogleCodeExporter commented 9 years ago
The problem is that navigation bar implementation uses WH_FOREGROUNDIDLE hook, 
due to avoid UI freezes during user is working. But unfortunately Wine does not 
implement this feature of windows system.

I will try next days to use timer events if FOREGROUNDIDLE hook is not 
available.

Original comment by eugen.kr...@gmail.com on 28 Feb 2014 at 8:28

GoogleCodeExporter commented 9 years ago

Original comment by eugen.kr...@gmail.com on 28 Feb 2014 at 8:38

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r121.

Original comment by eugen.kr...@gmail.com on 2 Mar 2014 at 9:02

GoogleCodeExporter commented 9 years ago
The smarthighlighter issue is solved by r121. But the messageboxes are comming 
from javascript during loading of Settings and Test.menu.js. 

First one
 should use Utf-8, because Wine does not support Utf-16.

And the second one
 can be solved by moving test.menu.js into disabled directory.

In attachment debug version of jN.dll. Next time I will prepare a zip with 
release version and repaired scripts.

Original comment by eugen.kr...@gmail.com on 2 Mar 2014 at 9:16

Attachments:

GoogleCodeExporter commented 9 years ago
I can verify that smarthighlighter is working as expected with attached version 
of jN.dll. I still see error when opening Notepad++. Notepad++ is configured by 
default to Utf-8. I also tried moving test.menu.js to disabled folder but that 
did not help. Finally, I moved every script except MenuCmds.js and 
SmartHighlighter.js and that got rid of the startup errors. That is fine for me 
as a starting point as my original need was SmartHighlighter functionality.

To resolve the error seen in terminal, I copied pdm.dll and that got rid of the 
error below:

err:ole:CoGetClassObject class {78a51822-51f4-11d0-8f20-00805f2cd064} not 
registered
err:ole:CoGetClassObject class {78a51822-51f4-11d0-8f20-00805f2cd064} not 
registered
err:ole:create_server class {78a51822-51f4-11d0-8f20-00805f2cd064} not 
registered
err:ole:CoGetClassObject no class object {78a51822-51f4-11d0-8f20-00805f2cd064} 
could be created for context 0x7
err:ole:CoGetClassObject class {6c736db1-bd94-11d0-8a23-00aa00b58e10} not 
registered
err:ole:CoGetClassObject no class object {6c736db1-bd94-11d0-8a23-00aa00b58e10} 
could be created for context 0x1

Original comment by junaidel...@hotmail.com on 2 Mar 2014 at 4:53

GoogleCodeExporter commented 9 years ago
FYI: pdm.dll was copied from existing windows installation.

Original comment by junaidel...@hotmail.com on 2 Mar 2014 at 4:54

GoogleCodeExporter commented 9 years ago
err:ole:CoGetClassObject class {6c736db1-bd94-11d0-8a23-00aa00b58e10} not 
registered

is still there. I guess that is due to missing vaic.dll.

Original comment by junaidel...@hotmail.com on 2 Mar 2014 at 5:00

GoogleCodeExporter commented 9 years ago
Thanks a lot for your tests!

The installing of pdm.dll is not necessary, because it is normal way that jN 
tries to initialize script debugging system and if it is not available it runs 
without. And how I understand Wine logs each trying to instantiate missed COM 
components. It is very helpful, but does not mean always an error. 

Debugging functionality makes no sence without developer tools such as Visual 
Studio.

Start.js uses ADOStream to read files using certain encoding. Initialy I used 
FileStream of FSO for reading and writing of settings. It can only ASCII or 
UTF-16. Someday I saw a very flexible way via ADOStream. I switched to it 
without changing of encoding to UTF-8.

In your case you don't need settings not at all. You could remove this part of 
start.js. 

Original comment by eugen.kr...@gmail.com on 2 Mar 2014 at 5:28

GoogleCodeExporter commented 9 years ago
Thanks for the explanation. I have suppressed the error messages in console 
using WINEDEBUG environment variable.

export WINEDEBUG=-all

Original comment by junaidel...@hotmail.com on 2 Mar 2014 at 6:47