francostellari / NppPlugins

Other
105 stars 6 forks source link

Problems when trying to open a file #40

Closed Kike-59 closed 1 year ago

Kike-59 commented 1 year ago

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

francostellari commented 1 year ago

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?

offhub commented 1 year ago

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

https://user-images.githubusercontent.com/6871698/225331693-a8a3344e-4520-4608-9299-3849bfec44b0.mp4

francostellari commented 1 year ago

I cannot reproduce your problem. Can you try running a portable version of Npp and install the plugin there to make sure that you have the same issue?

On Wed, Mar 15, 2023 at 8:36 AM offhub @.***> wrote:

Plugins > Take Notes > Open existing notes...

— Reply to this email directly, view it on GitHub https://github.com/francostellari/NppPlugins/issues/40#issuecomment-1469925623, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL5TXIUS7BSHBWEOOTF3OC3W4GZTHANCNFSM6AAAAAAUXDTK6Y . You are receiving this because you commented.Message ID: @.***>

-- Franco

offhub commented 1 year ago
  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

francostellari commented 1 year ago

Can you check if v1.25 fixes your problem? https://github.com/francostellari/NppPlugins/blob/main/TakeNotes/TakeNotes_dll_1v25_x64.zip

Kike-59 commented 1 year ago

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.

francostellari commented 1 year ago

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.