ckeditor / github-writer

GitHub Writer - WYSIWYG Rich-Text Editor for GitHub, powered by CKEditor.
https://ckeditor.com/
Other
379 stars 61 forks source link

GH Writer still doesn't load properly in some cases #357

Open Dumluregn opened 1 year ago

Dumluregn commented 1 year ago

Details

There are reports that despite the improvements provided in #348, sometimes GH Writer still doesn't load properly. Let's gather those cases in this issue, then we'll be able to work out the reproduction steps and extract the particular issues.

For each case of the unsuccessful Writer loading, please provide:

Before reporting, please ensure you're using the latest GH Writer version (at this point it's 1.10.0).

mmotyczynska commented 1 year ago

It happened to me when creating a PR from the button that appears right after pushing a new branch.

The editor loaded after refresh.

Other details can be read from the screenshot.

oleq commented 1 year ago

Editing this comment does not enable GHW https://github.com/cksource/collaboration-features/issues/4719#issuecomment-1227072174

Dumluregn commented 1 year ago

Editing this comment does not enable GHW cksource/collaboration-features#4719 (comment)

WFM in the first try :thinking:

mmotyczynska commented 1 year ago

Another example: creating an issue (bug) using the standard New Issue button and then choosing the bug with Get started button:
 

Refreshing the page helped to load GH Writer, but then I was not able to add a video from my desktop using d&d and had to switch back to the default editor.

oleq commented 1 year ago

WFM in the first try 🤔

WFM in the second try

bdub commented 1 year ago

does not work for me (not working as i create this comment), Firefox or Chrome, on M1 Mac.

oleq commented 1 year ago

Does not work for me at all at https://github.com/cksource/ckeditor5-internal/issues/1978#issuecomment-1248196365

mateuszzagorski commented 1 year ago

Copied over from: #358.

:memo: Provide detailed reproduction steps (if any)
GitHub Writer Plug in installed and active
Go to: https://github.com/ckeditor/github-writer/issues/new?assignees=&labels=bug&template=1-bug-report.md&title=

:heavy_check_mark: Expected result
Should be able to use the github-writer plug-in edit the Issue

:x: Actual result
github-writer does not load, and the Edit field is as default.
Note: console reports the following errors:

Possibly unhandled Error: auth:error:not_authed
    at chrome-extension://ogcgkffhplmphkaahpmffcafajaocjbd/js/built/main.js:1:86299
    at s (chrome-extension://ogcgkffhplmphkaahpmffcafajaocjbd/js/built/vendor.js:2:60060)
    at N._callHandler (chrome-extension://ogcgkffhplmphkaahpmffcafajaocjbd/js/built/vendor.js:2:29251)
    at N._settlePromiseFromHandler (chrome-extension://ogcgkffhplmphkaahpmffcafajaocjbd/js/built/vendor.js:2:29392)
    at N._settlePromiseAt (chrome-extension://ogcgkffhplmphkaahpmffcafajaocjbd/js/built/vendor.js:2:31646)
    at N._settlePromises (chrome-extension://ogcgkffhplmphkaahpmffcafajaocjbd/js/built/vendor.js:2:33865)
    at N._rejectPromises (chrome-extension://ogcgkffhplmphkaahpmffcafajaocjbd/js/built/vendor.js:2:33734)
    at c._consumeFunctionBuffer (chrome-extension://ogcgkffhplmphkaahpmffcafajaocjbd/js/built/vendor.js:2:1213)
    at consumeFunctionBuffer (chrome-extension://ogcgkffhplmphkaahpmffcafajaocjbd/js/built/vendor.js:2:666)
    at MutationObserver.<anonymous> (chrome-extension://ogcgkffhplmphkaahpmffcafajaocjbd/js/built/vendor.js:2:51984)

Assertion failed: Input argument is not an HTMLInputElement
getFormProfile @ onloadwff.js:71
setFieldValue @ onloadwff.js:71
formKeydownListener @ onloadwff.js:71

:page_with_curl: Other details
Browser: … Chrome Version 105.0.5195.52 (Official Build) (arm64)
OS: …12.5 (21G72)

UPDATE: I was able to get the plugin to load. after creating is the comment (and saving it), I then when i went back and tried to edit comment. The Plugin loaded on comment

hannesdelbeke commented 1 year ago

on chrome, plugin doesn't work most of the time.
had it work once.

i do have 20 different github tabs open, unsure if that matters.

tried new issue, comment, PR same everywhere.

refreshed page and now it shows up on this comment

jhgarrison commented 1 year ago

New user here, 1.10.1 on Firefox 109.0.1

Opening any wiki page (or even this comment #357) just displays the standard GitHub text editor.  

It's not completely clear from the docs if one has to do anything special to activate the plugin. Firefox says "Can always read and change data on this site"

jhgarrison commented 1 year ago

In the Firefox console I see this:

Error: GitHub Writer error: ("markdown") not found. This page doesn't seem to be compatible with this application anymore. Upgrade to the latest version of the browser extension.
    l util.js:121
    c util.js:98
    c util.js:95
    c util.js:102
    c util.js:95
    yk editor.js:65
    <anonymous> wikieditor.js:8
    createEditor createeditormixin.js:77
    run wikieditor.js:65
    run router.js:113
    run app.js:27
    promise callback*run app.js:26
    <anonymous> github-writer.js:24
    Webpack 3
        i
        <anonymous>
        <anonymous>
[github-writer.js:33:12](webpack:///src/github-writer.js)

Screenshot of editor page attached ghwriter01

jhgarrison commented 1 year ago

I am by no means knowledgeable in Javascript and writing plugins, but the attached two screenshots are interesting. I set a breakpoint in the Editor constructor. At this point, this.dom has a valid value.

ghwriter02

It is passed to checkDom where it appears to be undefined.

ghwriter03

As a long-time Java developer, this looks so wrong it points to a problem with the JS infrastructure itself -- but then I'm not a JS developer. Is it possible for a parameter value to become undefined in this way?

Dumluregn commented 1 year ago

Hello, for everyone reporting an issue with GH Writer loading - please also include a list of browser extensions that are also working on GH interface (like adding extra buttons), e.g. Refined GitHub or Zenhub.

For me, it's Zenhub.