Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not displaying all note files in folder #1540

Open
chrnoe opened this issue Feb 12, 2018 · 6 comments
Open

Not displaying all note files in folder #1540

chrnoe opened this issue Feb 12, 2018 · 6 comments
Labels
bug 🐛 Issue concerns a bug. level 1 ❕ A bug that caused minor damage: App is still usable, but minor features might not work. needs investigation 🔬 Issue requires further investigation to locate or narrow down the problem.

Comments

@chrnoe
Copy link

chrnoe commented Feb 12, 2018

I sync the folder with the notes between two computers, and all worked fine for about one week. Now Boostnote doesn't show all notes anymore; there are 17 files in folder, but Boostnote shows only 10 notes. Reboots, rereads does not have any effect. What can I do?

@chrnoe
Copy link
Author

chrnoe commented Feb 13, 2018

there was one file ending with
isStarred: false
isTrashed: false
alse

if I delete this one note, all other notes are loaded, if I delete the last line in this note, this note is loaded properly too. but the wrong saving must be happen in Boostnote.

It would be cool if there were a message, if not all notes could be loaded. And maybe Boostnote could ignore the only one note it couldn't load. if i had dozens of notes, i would not notice a few missing ones.

@chrnoe chrnoe changed the title does not read all files in folder [BUG] does not read all files in folder Feb 13, 2018
@sosukesuzuki sosukesuzuki added bug 🐛 Issue concerns a bug. help wanted 🆘 Pull request/issue requires extra help from the community. Check these out if you're new! labels Feb 17, 2018
@pfftdammitchris
Copy link
Contributor

Do you know if this happens only after syncing between two computers?

@chrnoe
Copy link
Author

chrnoe commented Feb 20, 2018

Until now it did not happen again. And maybe it was a syncing error, if this kind of errors can happen there too. I don't know. Now I take a backup before every sync, so I can research the issue, if it happens again. If this is the case, I place a note here.

@pfftdammitchris
Copy link
Contributor

pfftdammitchris commented Feb 20, 2018

Yes please do because I am a little curious as well. I recall this happening to me when I manually dragged .cson notes (that was created from a different boostnote app folder) into the notes folder, and it began bugging. I want to look into this issue and find out how it is syncing so I can try to help find a better solution to make it less buggy (Internally though boostnote uses a local storage which saves data in a json file if I am understanding this correctly, so these "outside" .cson notes are not being picked up by boostnote's startup scripts unless the local storage data file is mutated as well)

If I am correct then I have an idea and will look into this this week to find better solutions and try to make a pull request

@chrnoe
Copy link
Author

chrnoe commented Mar 21, 2019

Now I ran again in this issue ... I was wondering because I was sure to have some notes, but I didn't find it anymore. But, I have this notes really, but the content of the file seems a little bit destroyed, again. The last lines are

  ##### 10. DataRow auslesen mit korrekter Formatierung (Dezimal-Punkt statt Komma)
  >`row.Field<decimal>("RingTime").ToString(CultureInfo.InvariantCulture)`
  
  &nbsp;
  ##### 11. Zeiten messen
  ```c#
  Stopwatch sw = new Stopwatch();
  sw.Start();
  // ...
  sw.Stop();
  Console.WriteLine($"Elapsed={watch.Elapsed}");
  \```
  
  &nbsp;
  ##### 12. DEBUG-Modus feststellen
  ```c#
  #if DEBUG
  			IsDebugMode = Keyboard.Modifiers != ModifierKeys.Shift;
  #else
  			IsDebugMode = false;
  #endif
  \```
'''
tags: [
  "CS"
]
isStarred: true
isTrashed: false
linesHighlighted: []
Shift;
  #else
  			IsDebugMode = false;
  #endif
  \```
  
  &nbsp;
  ##### 13. WPF-Anwendung als Single-Instance-Applikation nur einmal starten
  
  siehe [c# - WPF Single Instance Best Practices - Stack Overflow](https://stackoverflow.com/a/23730146/8640356)
  (zwei unterschiedliche GUIDs notwendig!)
  
'''
tags: [
  "CS"
  "WPF"
]
isStarred: true
isTrashed: false
linesHighlighted: []

(Three Backslashs before ''' I have inserted to show the lines here in a codeblock).
Some information seems doubled. If I delete the doubled lines, the note is loading in boostnote.

I'm still syncing the notes from time to time, but it's only simple file copying. I don't think that the file was corrupted during copying.

@Flexo013
Copy link
Contributor

Does the issue persist if you restart Boostnote?

@Flexo013 Flexo013 changed the title [BUG] does not read all files in folder Not displaying all note files in folder Nov 19, 2019
@Flexo013 Flexo013 added level 1 ❕ A bug that caused minor damage: App is still usable, but minor features might not work. needs investigation 🔬 Issue requires further investigation to locate or narrow down the problem. and removed help wanted 🆘 Pull request/issue requires extra help from the community. Check these out if you're new! labels Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Issue concerns a bug. level 1 ❕ A bug that caused minor damage: App is still usable, but minor features might not work. needs investigation 🔬 Issue requires further investigation to locate or narrow down the problem.
Projects
None yet
Development

No branches or pull requests

4 participants