Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Code Snippets are not displayed in gist overview #110

Closed
K-lemens opened this issue Nov 4, 2019 · 19 comments
Closed

Code Snippets are not displayed in gist overview #110

K-lemens opened this issue Nov 4, 2019 · 19 comments
Labels
bug 🐛 Something isn't working

Comments

@K-lemens
Copy link

K-lemens commented Nov 4, 2019

After downloading and updating to the newest version of Code Notes (v. 1.2.3) my Snippets stored in Gist are not displayed correctly. The titel of each Note is shown, but the Note is displayed empty. Though when I click on "Edit Notes" the full text, which I also can see in my Gist online, is displayed and can be edited.

Screenshots
grafik

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Google Chorme 77.0.3865.120
  • Version: 10.0.18356 Build 18356
@lauthieb lauthieb added the bug 🐛 Something isn't working label Nov 4, 2019
@lauthieb
Copy link
Owner

lauthieb commented Nov 4, 2019

Thanks a lot @K-lemens for reporting this.
We will investigate as soon as possible.
Can you download the 1.2.2 please : https://github.com/lauthieb/code-notes/releases/tag/1.2.2
You can find the .dmg/exe/AppImage files in assets of this release note.
Thanks a lot.

@lauthieb
Copy link
Owner

lauthieb commented Nov 4, 2019

@jack-chapman do you think that this bug could be caused because of 8b53008 ?

@lauthieb
Copy link
Owner

lauthieb commented Nov 4, 2019

@kodaman2 @flashadvocate, may I have your help too please?

@flashadvocate
Copy link

I can confirm this bug as of the #95 PR. I did notice that switching contexts sometimes made it work. It affected some snippets but not others.

@TheFern2
Copy link
Contributor

TheFern2 commented Nov 5, 2019 via email

@lauthieb lauthieb pinned this issue Nov 6, 2019
@lauthieb lauthieb changed the title Code Snippets are not displayed in Git Overciew Code Snippets are not displayed in gist overview Nov 6, 2019
@lauthieb
Copy link
Owner

lauthieb commented Nov 6, 2019

No problem @kodaman2.
Yes, I think Cypress could do the job but it's not prioritized for the moment.

@K-lemens
Copy link
Author

K-lemens commented Nov 7, 2019

Wanted to let you know that in v1.2.2 it worked without a flaw.

@S0U1SB4N3
Copy link

confirmed 1.2.3 issue
Screen Shot 2019-11-07 at 12 05 14 PM
this is on mac latest OS updated

@TheFern2
Copy link
Contributor

TheFern2 commented Nov 8, 2019

I got a quick test done PR #95 is not the problem, here what I did to test it.

Pull code from commit 5991e90 which was before PR #74, then manually added the code changes from PR #95, I then proceeded to:

  • npm install
  • npm run build
  • installed on my mac mojave (don't think OS matters for this bug though)

Works perfectly fine. pinging @marvpaul for his input. I still don't understand how I can't reproduce the bug with npm run dev on master branch.

@lauthieb I think for the future it would be good to run builds for each PR that's modifying core features to make sure nothing breaks.

Not saying PR #74 is at fault since there were lots of commits added to master since so is going to be tough finding what actually broke the notes displaying.

@marvpaul
Copy link
Contributor

marvpaul commented Nov 8, 2019

@kodaman2 thanks for pinging me.

I started a debug session for the production app and figured out that this error seems to be the problem
Bildschirmfoto 2019-11-08 um 15 26 00
Not sure if it helps.

What else I have done:

  • local rebuild of current master --> Bug is still there, also with local snippets!
  • local build of commit # 3f43a9a , which includes my changes from PR PR for issue #71 (Feature request) #74 --> Bug does not appear
  • local build of commit # fd28232 --> Bug does not appear
  • local build of commit # 29d3a74 --> Bug does not appear
  • local build of commit # 1340843 --> Bug appears

So hopefully I can say the reason for that bug lays in a commit somewhere between 29d3a74 and 1340843

My guess is that this commit causes the problem: 8b53008

I'm out for now. Perhaps someone else will have some time to further investigate the reason for this problem and hopefully can confirm what I've found out so far.

@TheFern2
Copy link
Contributor

TheFern2 commented Nov 8, 2019

@kodaman2 thanks for pinging me.

I started a debug session for the production app and figured out that this error seems to be the problem
Bildschirmfoto 2019-11-08 um 15 26 00
Not sure if it helps.

What else I have done:

  • local rebuild of current master --> Bug is still there, also with local snippets!
  • local build of commit # 3f43a9a , which includes my changes from PR PR for issue #71 (Feature request) #74 --> Bug does not appear
  • local build of commit # fd28232 --> Bug does not appear
  • local build of commit # 29d3a74 --> Bug does not appear
  • local build of commit # 1340843 --> Bug appears

So hopefully I can say the reason for that bug lays in a commit somewhere between 29d3a74 and 1340843

My guess is that this commit causes the problem: 8b53008

I'm out for now. Perhaps someone else will have some time to further investigate the reason for this problem and hopefully can confirm what I've found out so far.

That is a very good assessment @marvpaul , if this was my repo, I would revert back to that commit which broke the app, then manually add the following code commits after that without any major changes once is all tested and built then I would work on major vue changes and stuff like that. I think the process was a bit loose along the way. Just my 2c lol don't take it personal.

@TheFern2
Copy link
Contributor

TheFern2 commented Nov 9, 2019

I'm not an expert on electron apps but shouldn't this bug be visible during npm run dev? If not, then why is dev different than build? My point is that the app runs fine on latest master on dev, why is that?

@marvpaul
Copy link
Contributor

marvpaul commented Nov 9, 2019

I had some time today to further analyze the source of this bug.
The problem should be 8b53008
I've done:

  • local build of 8b53008 --> bug appears
  • local build of 29d3a74 --> Bug does not appear

@jack-chapman do you have an idea what could be the problem?

At first I though it could be a problem with the updated Electron version (perhaps a bug?), but I tried to do a build with electron v. 1.8.8 on commit 8b53008 and the bug still appears.

Perhaps a problem regarding mini-css-extract-plugin? Someone has reported a bug which produces a similar error message (--> webpack-contrib/mini-css-extract-plugin#257). I'm not to much into topic, but it could be worth a try to exclude mini-css-extract-plugin I think.

@TheFern2
Copy link
Contributor

TheFern2 commented Nov 9, 2019

Good luck finding this bug gents, tons of npm packages were upgraded. I would highly recommend re-doing #93 in very short commits, #93 has only 4 commits with the first one has really all the changes already. So is very difficult to point to which a specific package, code change broke the app.

I think the issue is related to the vue templates edits + package upgrades, I tried to step trace back the changes, but I think it would be far easier to just remove it all together from the baseline, and create a dev branch to do this vue upgrade more carefully of course with build tests as the upgrade progresses.

@lauthieb if you want to go this route I can do it, or perhaps @jack-chapman has a better idea.

@lauthieb
Copy link
Owner

Hi @kodaman2, thanks a lot for your investigation. Feel free to begin a new branch and try to resolve this bug. I can’t do this for the moment, my work takes me too much time unfortunately :( but I’ll try to answer you ASAP if you have any question on this subject. Many thanks another time.

@TheFern2
Copy link
Contributor

TheFern2 commented Nov 11, 2019 via email

@lauthieb
Copy link
Owner

Hi @kodaman2, did you work on this or no?
I've updated our website to reference the 1.2.2 in the download's section for the moment.

@TheFern2
Copy link
Contributor

TheFern2 commented Nov 26, 2019 via email

@lauthieb
Copy link
Owner

lauthieb commented Dec 3, 2019

Thanks to a great PR of @kodaman2, this issue is now fixed.
You can download the "new" 1.2.3 version there: https://github.com/lauthieb/code-notes/releases/tag/1.2.3
Thanks everyone for this amazing work. You're awesome <3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants