-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Fix] Issue#2408 #2728
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
[Fix] Issue#2408 #2728
Conversation
|
We would really appreciate to know whether this PR is ready to be accepted, hence we are working on this open source project in the context of a university course and it would be beneficial to discuss this PR, or even see it being approved. |
|
@margarida-silva I'll review and approve this PR soon for your uni course so if you can provide me with more information about this PR I'll be able to speed up the review process. I don't know how much time you can wait for this PR to be approved so please don't hesitate to tell me if you need this PR to be reviewed faster. |
|
@ZeroX-DG Thanks for your reply. In this PR we added the functionality of opening a file instead of just importing it. Each time a file is opened by clicking on "Open File" we can change the note in boostnote and the original file is also modified. The same happens if we edit the original file, the note will be modified in boostnote. The gif attached in the main post helps to understand this PR. Thanks for speeding up the review process. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a nice feature to have. Please update your code 👍 I'll try to finish reviewing this before new year 😄
browser/main/NoteList/index.js
Outdated
| const note = this.notes[0] | ||
| const prevKey = prevProps.location.query.key | ||
| const noteKey = visibleNoteKeys.includes(prevKey) ? prevKey : note && note.key | ||
| const CSON = require('@rokt33r/season') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this to the top of the file?
browser/main/NoteList/index.js
Outdated
| if (focusNote.filepath !== undefined) { | ||
| try { | ||
| this.fsWatcher.close() | ||
| } catch (e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please at least console.error the error. It might come in handy in the future.
browser/main/NoteList/index.js
Outdated
|
|
||
| case 'rename': | ||
| updatedNote.filepath = undefined | ||
| this.fsWatcher.close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you have to catch for errors in the previous line 150 and not here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to add exception handling. I just updated the code with all suggestions.
|
I'm sorry @Cesar-Medeiros, this is the PR that causing the bug above: #2768, please merge the master branch again to fix this bug. Also, I found 2 bugs related to your PR. First bug: When I add a new file, the highlight for that note is wrong. Demo: Second bug: After I added that new file, I tried to update its' content using Boostnote and then using external editor. After that I switch to a new note and the app crashed and this error printed in the terminal (This is probably a Linux related bug): |
|
I will try to fix this bugs as soon as possible. |
|
No more findings on this branch. We will keep this comment up-to-date as you go along and notify you of any security issues that we identify. Happy with the results? Give your feedback. |
557fd87 to
e797d56
Compare
[Fix] FSWatcher close bug
|
@Cesar-Medeiros Editing in Boostnote update the file content works fine but now when I edit the note using an external app, it won't update in Boostnote, sometimes the app crashed and the second bug appears. Also, when I rename the file and switch to other note before switching back to that note, the app carshed and again the second bug appears. |
|
@ZeroX-DG Thank you for your feedback. |
|
The problem seems to occur only when I edit with Linux gedit app. I used Typora to edit the file and it works fine. |
|
@Cesar-Medeiros do you still interested in this PR or should I close it? |
|
@ZeroX-DG, Our team is no longer working on this issue. You can close it. |


Description
Enabling the user to open folders containing files, or files themselves, created by the application.
Issue fixed
#2408
Type of changes
Checklist: