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

"could not read file as String: devtools_extensions/..." if pointing to different version of package without extension present #8981

Open
mkorbel1 opened this issue Mar 3, 2025 · 0 comments
Labels
bug Something isn't working devtools extensions Issues related to DevTools extensions P2 important to work on, but not at the top of the work list.

Comments

@mkorbel1
Copy link

mkorbel1 commented Mar 3, 2025

This is splitting off a separate issue from #8912 from #8912 (comment) based on discussion in comment #8912 (comment).

If you point to a version of a package that has a devtool extension, then point to another version that does not have that extension present (i.e. built), you get an error about "could not read file".

If you point to a version of rohd which has a devtools extension present (e.g. the artifacts branch), and get it loaded up successfully, it then adds to the devtools_options.yaml file:

description: This file stores settings for Dart & Flutter DevTools.
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
extensions:

  • rohd: true
    If you then point to a version of rohd which does not have the devtools extension (e.g. the main branch), then when you open devtools, the rohd tab is still present but you get an error

could not read file as String: devtools_extensions/rohd_0.0.1/index.html

Image

Is that the intended error message when an extension is not present?

@kenzieschmoll kenzieschmoll added devtools extensions Issues related to DevTools extensions bug Something isn't working P2 important to work on, but not at the top of the work list. labels Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working devtools extensions Issues related to DevTools extensions P2 important to work on, but not at the top of the work list.
Projects
None yet
Development

No branches or pull requests

2 participants