BoostNote-Legacy icon indicating copy to clipboard operation
BoostNote-Legacy copied to clipboard

[Bug] - Notes cannot be shown

Open jhemelhof opened this issue 9 years ago • 10 comments

Version: 0.8.10 Operating System: Linux (Arch x64)

Trying to use the latest version notes just will not show. When I select a note this view remains (the new post screen): deepinscreenshot20170612191915

The console is showing following error: deepinscreenshot20170612191740

Following that link shows the exact contents of the error: deepinscreenshot20170612192237

jhemelhof avatar Jun 12 '17 17:06 jhemelhof

Hi, @clone1612. Could you paste the note as long as you can? The note is probably located in ~/Boostnote/notes/*.cson.

asmsuechan avatar Jun 12 '17 17:06 asmsuechan

This is the full content of the note:

type: "MARKDOWN_NOTE"
folder: "95437e1f8b7bd1705f81"
title: "Chapter 5"
content: '''
  # Chapter 5
  What is the pattern of Model-Driven Architectures (MDA)?
  - Design a Platform Independent Model (PIM)
  - Automatically transform to a Platform Specific Model (PSM)
  - Repeat until you reach code
  
  Benefits?
  - __Productivity__ with a shift of focus from PSM -> PIM and reusing the PIM->PSM transformations
  - __Portability__ since PIMs are portable to multiple platforms
  - __Maintenance and Documentation__ because automatic transformations keep (derived) artefacts in sync
  
  All models predefined by MDA:
  - __CIM:__ Computation Independent Model which is a conceptual data-centric model of the system's _application domain_
  - __PIM__
  - __PSM__
  - __PM:__ Platform Model describing platform features that we can interface with
'''
tags: []
isStarred: false
createdAt: "2017-06-11T16:28:39.518Z"
updatedAt: "2017-06-11T16:34:59.547Z"

Happens with all notes and I can't seem to figure out why. They worked fine with 0.8.9 yesterday but with the new version none can be shown, all showing the same error.

jhemelhof avatar Jun 12 '17 17:06 jhemelhof

Umm, actually, we're working for release the version now. It means v0.8.10 should not be released yet :fearful:

asmsuechan avatar Jun 12 '17 17:06 asmsuechan

Ow well that explains a lot :) But maybe change the release page then, thanks for the very quick response! deepinscreenshot20170612193545

EDIT: I now notice I was looking at releases from this repository and not the boostnote-releases repository which got me confused. It's not released yet on the other, sorry for the inconvenience.

EDIT 2: Since it now seems to have been officially released -> I still encounter the error. Version 0.8.10, built from source shows the previously described behavior.

jhemelhof avatar Jun 12 '17 17:06 jhemelhof

More specific error + a new one which pops up after switching between notes: deepinscreenshot20170612202558 So to summarize my problem:

  • Notes can not be shown, screen remains on create a new post
  • Clicking on different notes leads to the errors shown in the previous image
  • Not happening in 0.8.9 (same note storage, did not add anything new with 0.8.10)
  • Happens in 0.8.10 on Arch Linux (x64) when compiled from source, being from the tar.gz provided in this Boostnote repository https://github.com/BoostIO/Boostnote/archive/v0.8.10.tar.gz

EDIT: Continued doing research and tried some different things but no effect. Experimented with different yarn/node versions, .zip or .tar.gz all to no avail. The exact same procedure to build and use the application works perfectly with v0.8.9 but not with the new version.

jhemelhof avatar Jun 12 '17 18:06 jhemelhof

Continuing to identify where the root of the problem is I finally found an actual helpful error which might give you an idea of where the issue can be found: deepinscreenshot20170614113604 Which leads to a real error message pointing to an actual function: deepinscreenshot20170614113350 So something related to the MarkdownNoteDetail rendering method passing a wrong element type or so.

EDIT: Found the file where the problem is. Alright the error is to be found in MarkdownNoteDetail.js, the reason why is that I placed the old version of the file back (from v0.8.9) and everything works! So something inside that file leads to the errors.

EDIT 2: More info. Looking at all the changes made I eventually was able to isolate the problem to TodolistPercentage.js. Something there leads to the error, trying to find the real issue but I'm not that familiar with React.

jhemelhof avatar Jun 14 '17 09:06 jhemelhof

:+1:

mathewmeconry avatar Jun 16 '17 07:06 mathewmeconry

Probably improved in v0.8.11. Is this bug still occurring?

kazup01 avatar Jun 24 '17 05:06 kazup01

Fixed with v0.8.11, thanks!

jhemelhof avatar Jun 24 '17 07:06 jhemelhof

Cool! Thanks for waiting!

kazup01 avatar Jun 24 '17 07:06 kazup01