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 Report: RangeError (index): Index out of range: index should be less than 8: 8 #734

Closed
1 of 11 tasks
myConsciousness opened this issue Sep 2, 2023 · 0 comments · Fixed by #735
Closed
1 of 11 tasks
Assignees
Labels
bluesky_text A label indicating the package `bluesky_text`. bug Something isn't working

Comments

@myConsciousness
Copy link
Owner

myConsciousness commented Sep 2, 2023

Packages/Tools

  • at_identifier (version: )
  • nsid (version: )
  • at_uri (version: )
  • xrpc (version: )
  • multiformats (version: )
  • atproto_core (version: )
  • atproto (version: )
  • bluesky (version: )
  • bluesky_text (version: v0.3.1)
  • bluesky_cli (version: )
  • bluesky_post (version: )

Bug Behavior

A range error may occur if a string shorter than the search symbol exists.

Expected Behavior

Just empty list should be returned.

Error Log

Unhandled exception:
RangeError (index): Index out of range: index should be less than 8: 8
#0      Uint8List.[] (dart:typed_data-patch/typed_data_patch.dart:2271:7)
#1      _BlueskyText._getEntities (package:bluesky_text/src/bluesky_text.dart:371:21)
#2      _BlueskyText.links (package:bluesky_text/src/bluesky_text.dart:210:11)
#3      _BlueskyText.entities (package:bluesky_text/src/bluesky_text.dart:227:14)
#4      main (file:///Users/katoshinya/atproto.dart/packages/bluesky_text/example/example.dart:12:14)
#5      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:296:19)
#6      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)

Step to Reproduce

import 'package:bluesky_text/bluesky_text.dart';

void main() {
  final text = BlueskyText('same tbh');

  print(text.entities);
}
@myConsciousness myConsciousness added bug Something isn't working bluesky_text A label indicating the package `bluesky_text`. untriaged A label Indicating this Issue has not yet been initiated. labels Sep 2, 2023
@myConsciousness myConsciousness self-assigned this Sep 2, 2023
@myConsciousness myConsciousness removed the untriaged A label Indicating this Issue has not yet been initiated. label Sep 2, 2023
@myConsciousness myConsciousness linked a pull request Sep 2, 2023 that will close this issue
6 tasks
myConsciousness added a commit that referenced this issue Sep 2, 2023
…r-index-index-out-of-range-index-should-be-less-than-8-8

🐛 fix: fixed range error (#734)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bluesky_text A label indicating the package `bluesky_text`. bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant