Closed NishantSinghh closed 2 months ago
Can you try to upgrade your flutter to the latest stable 2.2.2?
CC @jacob314
@kenzieschmoll Thanks for reply but I can't upgrade the flutter. So need to have some solutions if its possible with the same version.
Can you open DevTools in the browser and see if there are any errors in the Chrome dev console?
@kenzieschmoll Thanks for the suggestion and I have tried using DevTools on browser So here are my observation On Android Studio IDE
Unrecognized error: evaluate: (-32603) evaluate: Unexpected error from chrome devtools: text: Uncaught exception: description: SyntaxError: Unexpected token '(' type: object value: null attempted JS eval: \
(function() {
var sdkUtils = require('dart_sdk').dart;
var library = sdkUtils.getLibrary('package:flutter/src/widgets/widget_inspector.dart');
if (!library) throw 'cannot find library for package:flutter/src/widgets/widget_inspector.dart'; .....`Workaround used VS code editor in VS code editor flutter inspector working perfectly fine.
Fyi @annagrin it appears something has regressed in eval and evaluating the large expression for the inspector is now triggering a JavaScript syntax error.
@jacob314 @kenzieschmoll @NishantSinghh Flutter inspector needs support for VMService.evaluate()
API that the web debugger only started supporting in the version demonstrated at google.io - I believe it is Flutter 2.2.
Correction - above is only true for the LayoutExplorer, the tree layout should work, my mistake. Looks like the error is only happening in Android studio, so its flutter extension might be calling VMService.evaluate()
and not catching its errors. Not sure about a workaround without updating flutter - @devoncarew what do you think?
The good news is that it should also be fixed by Flutter 2.2.
Closing as obsolete.
Hi,
I am using flutter 1.24.0-10.2.pre for a web based application trying to use the locators using flutter inspector but when trying to find the details and want to go back to source its not working. Only the [root] is displaying and in detailed view when clicking on any widget I am not navigating back to the source code. Please help.