Odotocodot / Flow.Launcher.Plugin.OneNote

A OneNote plugin for Flow Launcher.
MIT License
10 stars 2 forks source link

Onenote Plugin Crash on every search #3

Closed svensvond closed 1 year ago

svensvond commented 1 year ago

Installed ON Version: 2301 Build 16026.20146 FlowLauncher: 1.13.0

Everytime i want to use the plugin it crashes. Log attached. 2023-02-17.txt

If that helps: function rcntpgs: works.

Odotocodot commented 1 year ago

Hmm it seems to be an issue with the library that I'm using, specifically when it calls onenote. It seems if onenote is 'busy' a crash occurs. I have no idea what makes it busy or what busy is in this case. Have you tried the good old uninstall and reinstall? Also what version of onenote are you using 'OneNote' or 'OneNote for Windows 10'?

svensvond commented 1 year ago

image

svensvond commented 1 year ago

i had the uwp app removed .. if that is an issue. I doubt that, since rcntpgs: works correctly

Odotocodot commented 1 year ago

Yeah "rcntpgs:" uses a different property to findpages in the library, hence why it might be working I'm struggling to recreate the issue. Might be related to your build version of onenote. Im guessing " nb:\ " doesnt work either?

svensvond commented 1 year ago

nope, crashs.

svensvond commented 1 year ago

image

Odotocodot commented 1 year ago

Was it ever working or has it always been crashing?

svensvond commented 1 year ago

yes, it did. Tried to reinstall office.

Odotocodot commented 1 year ago

So it was working 🤔, maybe an office update bugged it. Did in reinstalling office fix it? Heres a build that should log the error to log file: OneNote-1.0.2-beta.zip

svensvond commented 1 year ago

ok, thanks .. now we are getting closer. After removing and adding my notebook "default" the search worked again! An exception is thrown when trying to open that notebook through nb:\

log.txt

svensvond commented 1 year ago

Update: The "default" notebook had a password protected section. If i remove the password protected section, it works!! So maybe the solution might be quite simple to skip those...

Odotocodot commented 1 year ago

Ah that explains why onenote was "busy" Unfortunately the library used doesn't have a way of checking if a notebook is password protected.

svensvond commented 1 year ago

try catch and skip?

Odotocodot commented 1 year ago

Was thinking something like that, will get to it when I have time!

Odotocodot commented 1 year ago

Hey, I may have a fix for the encrypted section. Turns out there is a property for encryption! Will be pushing this build evetunally, but can you check if it works? OneNote-1.0.2-beta.zip

jarusaurus commented 1 year ago

thanks for the beta build. seems to work for me! had the same issue.