Error destroying text editor

オープン
#8,756 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript
領域
frontend

調査の方向性

Start by tracing the destroy call in TextEditorEmbed.ts at line 50 and its caller in Description.vue around lines 209 and 246. Reproduce the error by opening and closing a card while watching the browser console, then inspect how the editor instance is created and passed to destroy. Done means the exception no longer appears and text editor changes save correctly.

索引モデルが issue の本文から書いたものです。

説明

0. Needs triage bug needs info
How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Describe the bug
Sometimes the text editor is not loading or the content is not saved properly (exception in console, edit is lost after browser reload)

To Reproduce
Steps to reproduce the behavior:

  1. Check Browser Console while Opening a Card
  2. When closing the card, the stacktrace is thrown on console

Expected behavior
No stack trace and my edit in text-editor is saved properly.

Screenshots
If applicable, add screenshots to help explain your problem.

Client details:

  • OS: macOS Golden Gate
  • Browser Firefox
  • Version 160.0
  • Device: macbook pro (2021)
Server details

Operating system: Debian Trixie - Linux 7.0.14-25-pve x86_64

Web server: nginx

Database: mariadb 10.11.19

PHP version: 8.5.12

Nextcloud version: 35.0.2

Where did you install Nextcloud from: Docker

Signing status:

No errors have been found.

List of activated apps:

Enabled:
  - activity: 8.0.0
  - admin_audit: 2.0.0
  - app_api: 35.0.0
  - appstore: 2.0.0
  - assistant: 4.1.0
  - bruteforcesettings: 8.0.0
  - calendar: 6.6.5
  - circles: 35.0.0
  - cloud_federation_api: 2.0.0
  - comments: 2.0.0
  - contacts: 8.9.5
  - contactsinteraction: 2.0.0
  - dashboard: 8.0.0
  - dav: 2.0.0
  - deck: 1.19.2
  - drawio: 4.3.11
  - external: 10.0.0
  - federatedfilesharing: 2.0.0
  - federation: 2.0.0
  - files: 3.0.0
  - files_downloadlimit: 5.3.0
  - files_lock: 35.0.1
  - files_pdfviewer: 8.0.0
  - files_reminders: 2.0.0
  - files_sharing: 2.0.0
  - files_trashbin: 2.0.0
  - files_versions: 2.0.0
  - firstrunwizard: 8.0.0
  - forms: 5.4.1
  - integration_openai: 5.0.0
  - logreader: 8.0.0
  - lookup_server_connector: 2.0.0
  - mail: 5.13.1
  - nextcloud_announcements: 7.0.0
  - notifications: 8.0.1
  - oauth2: 2.0.0
  - office: 1.1.0
  - password_policy: 7.0.0
  - photos: 8.0.0
  - privacy: 7.0.0
  - profile: 2.0.0
  - provisioning_api: 2.0.0
  - recommendations: 8.0.0
  - related_resources: 6.0.0
  - richdocuments: 12.0.1
  - serverinfo: 7.0.0
  - settings: 2.0.0
  - sharebymail: 2.0.0
  - sharing: 1.0.4
  - side_menu: 6.2.0
  - sociallogin: 6.6.0
  - spreed: 25.0.7
  - support: 7.0.0
  - survey_client: 7.0.0
  - systemtags: 2.0.0
  - tasks: 0.18.1
  - text: 9.0.1
  - theming: 3.0.0
  - twofactor_backupcodes: 2.0.0
  - twofactor_totp: 17.1.0
  - updatenotification: 2.0.0
  - user_status: 2.0.0
  - viewer: 8.0.0
  - weather_status: 2.0.0
  - webhook_listeners: 2.0.0
  - whiteboard: 2.1.2
  - workflowengine: 3.0.0
Disabled:
  - encryption: 3.0.1
  - files_external: 2.0.0
  - files_rightclick: 0.15.1 (installed 0.15.1)
  - notify_push: 1.4.2 (installed 1.4.2)
  - oidc: 2.6.1 (installed 2.6.1)
  - snappymail: 2.38.2 (installed 2.38.2)
  - suspicious_login: 13.0.0
  - twofactor_nextcloud_notification: 9.0.0
  - user_ldap: 2.0.0

Nextcloud configuration:

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "maintenance_window_start": 4,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "next.swokiz.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "35.0.2.2",
        "overwrite.cli.url": "http:\/\/next.swokiz.com",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "PLAIN",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "8465",
        "maintenance": false,
        "loglevel": 2,
        "theme": "",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "social_login_auto_redirect": true
    }
}

Are you using an external user-backend, if yes which one: Keycloak OAUTH

Logs
Nextcloud log (data/nextcloud.log)
<will be added later>
Browser log
Error destroying text editor: TypeError: can't access private field or method: object is not the right class
    destroy TextEditorEmbed.ts:50
    destroyEditor Description.vue:246
    beforeUnmount Description.vue:209
    Te runtime-core.esm-bundler.js:3232
    r runtime-core.esm-bundler.js:199
    o runtime-core.esm-bundler.js:206
    __weh runtime-core.esm-bundler.js:3212
    z shared.esm-bundler.js:85
    U runtime-core.esm-bundler.js:6984
    $ runtime-core.esm-bundler.js:6878
    V runtime-core.esm-bundler.js:7006
主要言語
JavaScript
スター
1.4k
フォーク
380
平均マージ
1日 17時間
マージ済み PR(30日)
72

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nextcloud/deck のほかの issue

nextcloud/deck の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。