Krazal / nppopenai

OpenAI (aka. ChatGPT) plugin for Notepad++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Script and NppExec plugin support

richlysakowski opened this issue · comments

I just tried installing this using the Plugins Manager in Notepad++

I get an installation ERROR

I am running the latest version of Notepad++ Version 8.5.7 on Windows 10 Pro, Build 10.0.19045. I am running the 64-bit version of Notepad++.

The Installation ERROR dialog box pops up:

The TITLE BAR of the dialog box says:

"C:\Program Files\Notepad++\plugins\NppOpenAI\NppOpenAI.dll"

Body of dialog box says:

"The specified module could not be found.  

NPPOpenAI plugin not compatible with the current version of Notepad++

Do you want to remove this plugin from the plugins directory to prevent this message on the next launch?"

###################################################

I slicked the "No" button, and restarted Notepad++. It does not show the message that it warns about.

The NPPOpenAI folder in the Notepad++ plugins directory contains the following files:

cacert.pem
libcrypto-3-x64.dll
libcurl.dll
libssl-3-x64.dll
zlib1.dll

Is there a recommended version of Notepad++ 64-bit that this works with?

The Notepad++ 32-bit (Win32) version is ancient. I don't want to install the 32-bit version unless it can be installed alongside Notepad++. Even then, it would be a special case and this OpenAI plugin would be the only reason for running that version of Notepad++

What was the reason this was compiled only for the 32-bit version of Notepad++?

Also I would like to use this with PyScript plugin so that I can immediately execute Python code generated by OpenAI. Is there a straightforward way to integrate these two plugins?

hu 32bit version of npp are not ancient... as they have 32bit binaries of latest... but yes... knowing if that's an issue that it failed to load a DLL... or if there's a clear "minimum" npp version required is important...

@richlysakowski

The latest NppOpenAI v0.3.0.1 has both x64 and x86 versions, which are available in the latest release, and exist in the nppPluginList's pl.x64.json and pl.x86.json files.

However, it's possible, that e.g. the portable versions of Notepad++ don't contain the latest version of nppPluginList, so the Plugin Manager may downloaded an earlier version of NppOpenAI. Could you please check out, which version of NppOpenAI has been installed by clicking Plugins » NppOpenAI » About? If necessary, manual download may recommended; for more information see the #20 issue, but the following versions are recommended to install:

PyScript: currently the chat support is the prioritized task in the project's kanban, but I've added the Python Script (and NppExec) plugin support to it, which would be great features.