flutter-quill icon indicating copy to clipboard operation
flutter-quill copied to clipboard

TextInputClient throws exceptions by attributes assertion

Open CatHood0 opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

Flutter Quill version

10.4.2

Steps to reproduce

I don't really know exactly why or when exactly this happens. Just stop working at any point. I running this on Linux. See the video.

Expected results

Write without issues

Actual results

Unexpected exceptions

Additional Context

Screenshots / Video demonstration

https://github.com/user-attachments/assets/14d1895b-0274-4cd0-9578-e20d749c838e

Logs
** (example:68521): WARNING **: 03:04:17.933: Failed to call TextInputClient.updateEditingState: Remote code returned error error: 'package:flutter_quill/src/document/node
s/line.dart': Failed assertion: line 147 pos 14: 'style.values.every((attr) =>
          attr.scope == AttributeScope.inline ||
          attr.scope == AttributeScope.ignore)': is not true.

CatHood0 avatar Aug 23 '24 07:08 CatHood0

I'll take a look what could be happening

CatHood0 avatar Aug 23 '24 07:08 CatHood0

Is this a regression?

singerdmx avatar Aug 25 '24 00:08 singerdmx

I think it is. I will fix another thing first and after i'll fix this. I guess that could be a issue with logic.

CatHood0 avatar Aug 25 '24 00:08 CatHood0

If this is a regression, we can figure out which commit caused this by trying previous releases and potentially revert that commit

singerdmx avatar Aug 25 '24 05:08 singerdmx

Possibly this PR? https://github.com/singerdmx/flutter-quill/pull/2144

singerdmx avatar Aug 25 '24 05:08 singerdmx

I'll take a look if that PR could be the issue

CatHood0 avatar Aug 25 '24 06:08 CatHood0