francostellari/NppPlugins

Problems when trying to open a file

Kike-59 opened this issue · 7 comments

I'm using TakeNotes 1.2.4 with Notepad++ v8.4.9 (64-bit)

When trying to open an existing notes file, it adds some strange characters to the end of the name accompanied by the "file not found" message as seen in the attached image. Can you help me?

Screen Shot 02-09-2023 at 19 23 04

Hello, I'm not sure how to reproduce your problem.
Can you details your steps more specifically... how do you "trying to open an existing notes file"?
Is it specific to Google Drive?
Can you also share the takenotes.ini?

Notepad++ 8.5
Plugins > Take Notes > Open existing notes...

nppptn01.mp4
  1. Create and save a new file with Take Notes.
  2. Open the saved note.
Notepad++ version Take Notes version Error
8.4.5 1.2.3 No
8.4.5 1.2.4 No
8.4.6 1.2.3 No
[8.4.6] [1.2.4] [Yes]
8.4.7 1.2.3 No
[8.4.7] [1.2.4] [Yes]
8.4.8 1.2.3 No
[8.4.8] [1.2.4] [Yes]
8.4.9 1.2.3 No
[8.4.9] [1.2.4] [Yes]
8.5.0 1.2.3 No
[8.5.0] [1.2.4] [Yes]

Windows 10 22H2 64-bit
Notepad++ versions 64-bit (portable)
Take Notes versions 64-bit

Hello Franco

Yes, finally version 1.2.5 fixed the problem.

You indicated that you could not reproduce the problem: in essence, it was that when you tried to open an existing note, you selected it through the "o" menu option in Notepad++, and it added spurious characters to the end of the name, so it did not find it and offered you to create a new one.

Imagen

For example, in the figure, look at the characters inserted after the extension .note

It seems that in version 1.2.5 you changed the file selection function on opening and the problem no longer occurs.

Thank you very much.

I'm not sure where the problem may have been.
Zeroing out the entire buffer before copying the name seems to have done the trick for you.