export plugin from older version
-
@Ekopalypse the older one and the newer one are both portable version so it should be the one in the folder i showed you in the video.
referring to the connection yes, the robot controller is creating the network and i can access to the robot assigning an ip to my pc’s ethernet properties in the TCP/IPv4 ip field
-
newer notepad:
Notepad++ v7.9.3 (32-bit)
Build time : Feb 14 2021 - 03:12:31
Path : C:\Users\simon\OneDrive\Desktop\npp.7.9.3.portable\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS Name : Windows 10 Home (64-bit)
OS Version : 2009
OS Build : 19042.844
Current ANSI codepage : 1252
Plugins : ComparePlugin.dll FTP_synchronize.dll KawasakiPlugin.dll mimeTools.dll NppConverter.dll NppExport.dllolder notepad doesn’t have the debug info option into the “?” menu
-
@Simone-Panada said in export plugin from older version:
OneDrive
Is this a network drive? If so, can you try a local path?
One difference I saw in the video is that you have a real, saved file with the old NPP version, but a “new” (aka unsaved) file with the new NPP version. Does the same problem occur when you try with a real, a saved file?
-
newer notepad:
Thank you for the Debug Info. Your v7.9.3 edition recognizes it’s portable, so the context menu will be the one in
C:\Users\simon\OneDrive\Desktop\npp.7.9.3.portable\contextMenu.xml
.older notepad doesn’t have the debug info option into the “?” menu
I think you can Alt+PrintScreen on the About menu… but I’m not sure it’s critical on the old version.
My guesses as to what might be going wrong for you:
- As @Ekopalypse has hinted, maybe the plugin is sending different things (or not sending anything) when it’s supposed to be transmitting the file to the robot. As was suggested, an external tool like Wireshark could help look into that
- Maybe there’s some plugin setting that’s different between the instance in the v5.7 NPP and in the v7.9.3 NPP. There should be a plugins\Config directory in both the old and new NPP; if your robot plugin writes a config file, it may be there, and you might be able to compare those.
- v5.7 is an ancient Notepad++. That was back in the days when there was separate ANSI vs. UNICODE builds (or maybe even before the UNICODE build at all). This has a couple of implications
- If your portable v5.7 is an ANSI, then the plugin was probably written assuming that all characters will be stored in one byte per character. However, the v7.9.3 will be using Unicode under the hood (even if the file is stored as ANSI on disk)… in which case, the bytes that the plugin has access to might not be matching the bytes that you thought were in the file. Again, Wireshark will be able to show you if there’s a difference in the messages sent by the plugin from the v5.7 and the v7.9.3.
- The Scintilla editor component (NPP uses another open-source set of IP for handling a lot of the underlying tasks in the editor) has undergone a lot of changes since the version that was in NPP v5.7 – and that can mean that the API that Notepad++ (and NPP plugins) use to access the text inside of the Scintilla component might have changed, so maybe the plugin is calling an API function that is no longer supported in trying to grab the file and send it to the robot, so maybe the plugin cannot grab the data correctly.
It looks like @Ekopalypse still has ideas, so I wouldn’t give up hope yet. But there is a not-insignificant chance that the plugin is just not compatible with the modern Notepad++ – if that ends up being the case, you’ll either have to communicate with whoever wrote or is in charge of maintaining the original plugin and see if they can upgrade it to work with v7.9.3, or you might have to live with the fact that you’ll have to use the old portable v5.7 for the robot, and use v7.9.3 or newer for all your other Notepad++ text-editing needs.
-
@Ekopalypse i put everything on my desktop and the drive was not the poroblem… it is gaving me the same issue
-
Can you use the menu option
Settings->Edit PopUp Context Menu
. Does this open the context menu with your configured entries?What about the test with a real, saved AS file?
-
- yes i will trywireshark in order to understand what is going on
- i copied the plugin .config.ini from the old notepad to the new one
3.1. maybe this could be why i can’t load to the robot my data
3.2. which version do you think could be compatible with the plugin? notepad 6?
-
@Ekopalypse opening up Settings->Edit PopUp Context Menu it shows me the changes i made so it should be done right.
i also tried opening AS files but nothing changed… i’m unable to upload to the robot even the program just saved to the robot. -
contextMenu structure hasn’t changed since then, afaik.
But what could be is that the plugin itself loads it and expects
a certain layout. What happens if you just use the old contextMenu.xml? -
@Ekopalypse i duplicated the v7 folder and copied and pasted there the old contextmenu.xml of notepad v5 but it didn’t show me the plugins options as you can see in the photo
old context menu .xml file in new notepad
old context menu in old notepad
-
Can you send me this plugin? BUT ONLY if you are allowed to do so!
-
@Ekopalypse tomorrow i will ask at work if i can… maybe in a private message i’m allowed to send it to you
-
@Simone-Panada said in export plugin from older version:
the contextmenu xml code of the newer version is this
<?xml version=“1.0” encoding=“UTF-8” ?>
<!–
By modifying this file, you can customize your context menu popuped as right clicking on the edit zone.
It may be more convinient to access to your frequent used commands via context menu than via the top menu.Please check “How to Customize the Context Menu” on:
https://npp-user-manual.org/docs/config-files/#the-context-menu-contextmenu-xml
–>
<NotepadPlus>
<ScintillaContextMenu>
<Item PluginEntryName=“Kawasaki AS” pluginCommandItemName=“Load”/>
<Item PluginEntryName=“Kawasaki AS” pluginCommandItemName=“Load PG”/>
<Item PluginEntryName=“Kawasaki AS” pluginCommandItemName=“Save”/>
<Item PluginEntryName=“Kawasaki AS” pluginCommandItemName=“Indent”/>
<Item PluginEntryName=“Kawasaki AS” pluginCommandItemName=“Indent region”/>
<Item PluginEntryName=“Kawasaki AS” pluginCommandItemName=“Fold”/>
<Item PluginEntryName=“Kawasaki AS” pluginCommandItemName=“Syntax check”/>Seems simple, but please try using a capital
P
in thepluginCommandItemName
so it isPluginCommandItemName
. Maybe the mixed case worked previously, but for me, a quick test with 7.9.3 using a lower casep
made my context menu plugin items disappear.Cheers.
-
Brilliant, Michael, brilliant. I can confirm that in my setup, using pluginCommandItemName also makes the menu item disappear.
-
@Ekopalypse said in export plugin from older version:
I can confirm that in my setup, using pluginCommandItemName also makes the menu item disappear.
Phew - I tried it like 5 times because I wasn’t sure - didn’t realize those tags were case sensitive, but looking through the rest of his context menu XML, they all had capital
P
, so it would make sense those others worked, but the “Kawasaki AS” one’s didn’t. Glad you could confirm.@Simone-Panada
That still leaves the other issue:the next problem is that i can only save data from the robot to my pc but i can’t load my programs to the robot.
Cheers.
-
And another confirmation from me. That’s probably the OP’s issue for the context menu.