Skip to content
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

Suppress error from monaco-editor #29684

Merged
merged 6 commits into from
Mar 9, 2024
Merged

Conversation

silverwind
Copy link
Member

@silverwind silverwind commented Mar 9, 2024

Fixes: #29414

I see no way for us to catch this error, so downgrade it until microsoft/monaco-editor#4325 is fixed, which will likely take a few weeks to propagate up from vscode.

The entries in updates.config.js will make updates not upgrade these anymore and I think it's good documentation as well to have the reasons why we don't upgrade these dependencies.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 9, 2024
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Mar 9, 2024
@silverwind silverwind added skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. and removed modifies/frontend labels Mar 9, 2024
@silverwind silverwind changed the title Downgrade monaco-editor and lock a few dependencies Downgrade monaco-editor and pin a few dependencies Mar 9, 2024
updates.config.js Outdated Show resolved Hide resolved
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 9, 2024
@denyskon denyskon added this to the 1.22.0 milestone Mar 9, 2024
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 9, 2024
@silverwind silverwind marked this pull request as draft March 9, 2024 15:03
@silverwind
Copy link
Member Author

silverwind commented Mar 9, 2024

I fully understand the issue now (see microsoft/vscode#206883) and I think I will just add a error filter to not display this error as there should be no bad outcomes from the error.

@silverwind silverwind marked this pull request as ready for review March 9, 2024 15:19
@silverwind silverwind changed the title Downgrade monaco-editor and pin a few dependencies Filter monaco error and pin a few dependencies Mar 9, 2024
@pull-request-size pull-request-size bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 9, 2024
@silverwind silverwind changed the title Filter monaco error and pin a few dependencies Filter monaco error Mar 9, 2024
@silverwind silverwind changed the title Filter monaco error Suppress error from monaco-editor Mar 9, 2024
@silverwind
Copy link
Member Author

Rewrote the PR, now it's a simple error filter.

@silverwind
Copy link
Member Author

Leaving this open for a bit so people can re-review.

@silverwind silverwind merged commit 9bf693d into go-gitea:main Mar 9, 2024
26 checks passed
@silverwind silverwind deleted the monalock branch March 9, 2024 17:37
zjjhot added a commit to zjjhot/gitea that referenced this pull request Mar 11, 2024
* giteaofficial/main:
  Use repo object format name instead of detecting from git repository (go-gitea#29702)
  Improve CSV rendering (go-gitea#29638)
  Remove jQuery AJAX from the comment edit history (go-gitea#29703)
  fix: rendering internal file links in org (go-gitea#29669)
  Fix broken webhooks (go-gitea#29690)
  Suppress error from monaco-editor (go-gitea#29684)
@silverwind silverwind added the backport/v1.21 This PR should be backported to Gitea 1.21 label Mar 13, 2024
GiteaBot pushed a commit to GiteaBot/gitea that referenced this pull request Mar 13, 2024
Fixes: go-gitea#29414

I see no way for us to catch this error, so downgrade it until
microsoft/monaco-editor#4325 is fixed, which
will likely take a few weeks to propagate up from vscode.

The entries in `updates.config.js` will make
[`updates`](https://github.com/silverwind/updates) not upgrade these
anymore and I think it's good documentation as well to have the reasons
why we don't upgrade these dependencies.
@GiteaBot GiteaBot added the backport/done All backports for this PR have been created label Mar 13, 2024
6543 pushed a commit that referenced this pull request Mar 13, 2024
Backport #29684 by @silverwind

Fixes: #29414

I see no way for us to catch this error, so downgrade it until
microsoft/monaco-editor#4325 is fixed, which
will likely take a few weeks to propagate up from vscode.

The entries in `updates.config.js` will make
[`updates`](https://github.com/silverwind/updates) not upgrade these
anymore and I think it's good documentation as well to have the reasons
why we don't upgrade these dependencies.

Co-authored-by: silverwind <[email protected]>
silverwind added a commit that referenced this pull request Mar 13, 2024
Split out from #29684. This
configures the [`updates`](https://github.com/silverwind/updates) module
to exclude these modules for reasons stated in the comments.
DennisRasey pushed a commit to DennisRasey/forgejo that referenced this pull request Mar 20, 2024
Split out from go-gitea/gitea#29684. This
configures the [`updates`](https://github.com/silverwind/updates) module
to exclude these modules for reasons stated in the comments.

(cherry picked from commit 9b1a8888fa754676073bc851b783b2b8f1adecfb)
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jun 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created backport/v1.21 This PR should be backported to Gitea 1.21 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uncaught TypeError: e.getModifierState is not a function
4 participants