dart-pad icon indicating copy to clipboard operation
dart-pad copied to clipboard

Don't expose filesystem of the machine that deploys dart-services

Open johnpryan opened this issue 3 years ago • 3 comments

The JS console reveals filesystem details:

errors.dart:202 Uncaught Error: Assertion failed: file:///Users/brettmorgan/Documents/GitHub/dart-services/flutter-sdk/packages/flutter/lib/src/widgets/framework.dart:2577:20
_debugCurrentBuildTarget == context
is not true
    at Object.throw_ [as throw] (errors.dart:251)
    at Object.assertFailed (errors.dart:29)
    at framework.dart:2577
    at framework.BuildOwner.new.buildScope (framework.dart:2580)
    at RenderObjectToWidgetAdapter.new.attachToRenderTree (binding.dart:1111)
    at binding$.WidgetsFlutterBinding.new.attachRootWidget (binding.dart:943)
    at binding.dart:924
    at internalCallback (isolate_helper.dart:48)

See https://github.com/dart-lang/dart-pad/issues/1966 for steps to reproduce

johnpryan avatar Jan 27 '22 18:01 johnpryan

@srawlins Any ideas on if this is even possible?

domesticmouse avatar Jan 27 '22 23:01 domesticmouse

When compiling DDC on the dev's workstation, we could first cd to a temp directory with a known suffix (say _foo/), then remove that text from errors (s#file:///.*_foo/##).

srawlins avatar Feb 02 '22 22:02 srawlins

Related to https://github.com/dart-lang/dart-pad/issues/1365

johnpryan avatar Oct 06 '22 00:10 johnpryan