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

[BUG] - Exception: Expected nodePosition of type UpstreamDownstreamNodePosition but received: Instance of 'TextNodePosition' #2170

Closed
escamoteur opened this issue Jul 16, 2024 · 2 comments
Labels
type_bug Something isn't working

Comments

@escamoteur
Copy link

Package Version

  super_editor:
    git:
      url: https://github.com/superlistapp/super_editor
      ref: 35fdfc11598a64bee99a2c682d4a6a5b7d789384 #latest stable from 14.may.2024
_Exception: Exception: Expected nodePosition of type UpstreamDownstreamNodePosition but received: Instance of 'TextNodePosition'
  File "box_component.dart", line 210, in _BoxComponentState.getRectForPosition
  File "box_component.dart", line 193, in _BoxComponentState.getEdgeForPosition
  File "_layout.dart", line 235, in _SingleColumnDocumentLayoutState.getEdgeForPosition
  File "document_caret_overlay.dart", line 169, in CaretDocumentOverlayState.computeLayoutDataWithDocumentLayout
  File "document_layers.dart", line 50, in DocumentLayoutLayerState.computeLayoutData
  File "content_layers.dart", line 948, in ContentLayerState.build
  File "framework.dart", line 5599, in StatefulElement.build
  File "framework.dart", line 5487, in ComponentElement.performRebuild
  File "framework.dart", line 5650, in StatefulElement.performRebuild
  File "framework.dart", line 5203, in Element.rebuild
  File "framework.dart", line 2905, in BuildOwner.buildScope
  File "binding.dart", line 1136, in WidgetsBinding.drawFrame
  File "binding.dart", line 443, in RendererBinding._handlePersistentFrameCallback
  File "binding.dart", line 1392, in SchedulerBinding._invokeFrameCallback
  File "binding.dart", line 1313, in SchedulerBinding.handleDrawFrame
  File "binding.dart", line 1171, in SchedulerBinding._handleDrawFrame
  File "zone.dart", line 1399, in _rootRun
  File "zone.dart", line 1301, in _CustomZone.run
  File "zone.dart", line 1209, in _CustomZone.runGuarded
  File "hooks.dart", line 314, in _invoke
  File "platform_dispatcher.dart", line 419, in PlatformDispatcher._drawFrame
  File "hooks.dart", line 283, in _drawFrame
@escamoteur escamoteur added the type_bug Something isn't working label Jul 16, 2024
@angelosilvestre
Copy link
Collaborator

@escamoteur Please include in the description the steps required to trigger the issue.

@escamoteur
Copy link
Author

This is all we get from Sentry

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

No branches or pull requests

3 participants