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

BUILD FAILED #1638

Closed
aresares opened this issue Apr 25, 2020 · 2 comments
Closed

BUILD FAILED #1638

aresares opened this issue Apr 25, 2020 · 2 comments

Comments

@aresares
Copy link

Launching lib\main.dart on PE TL10 in debug mode...
Running Gradle task 'assembleDebug'...

Compiler message:
/E:/sdk/flutter/flutter/packages/flutter/lib/src/painting/_network_image_web.dart:88:12: Error: Method not found: 'webOnlyInstantiateImageCodecFromUrl'.
return ui.webOnlyInstantiateImageCodecFromUrl(resolved, // ignore: undefined_function
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:24:3: Error: Type 'EventSource' not found.
EventSource _eventSource;
^^^^^^^^^^^
/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:58:10: Error: Type 'Event' not found.
Stream get onOpen => _eventSource.onOpen;
^^^^^
/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:79:34: Error: Type 'Event' not found.
void _onIncomingControlMessage(Event message) {
^^^^^
/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:88:27: Error: Type 'Event' not found.
void _onIncomingMessage(Event message) {
^^^^^
/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:24:3: Error: 'EventSource' isn't a type.
EventSource _eventSource;
^^^^^^^^^^^
/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:35:9: Error: The method 'EventSource' isn't defined for the class 'SseClient'.

  • 'SseClient' is from 'package:sse/client/sse_client.dart' ('/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'EventSource'.
    EventSource('$serverUrl?sseClientId=$clientId', withCredentials: true);
    ^^^^^^^^^^^
    /C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:79:34: Error: 'Event' isn't a type.
    void _onIncomingControlMessage(Event message) {
    ^^^^^
    /C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:80:28: Error: 'MessageEvent' isn't a type.
    var data = (message as MessageEvent).data;
    ^^^^^^^^^^^^
    /C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:88:27: Error: 'Event' isn't a type.
    void _onIncomingMessage(Event message) {
    ^^^^^
    /C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:90:32: Error: 'MessageEvent' isn't a type.
    jsonDecode((message as MessageEvent).data as String) as String;
    ^^^^^^^^^^^^
    /C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:107:15: Error: The getter 'HttpRequest' isn't defined for the class 'SseClient'.
  • 'SseClient' is from 'package:sse/client/sse_client.dart' ('/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'HttpRequest'.
    await HttpRequest.request(_serverUrl,
    ^^^^^^^^^^^
    /C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:7:8: Error: Not found: 'dart:html'
    import 'dart:html';
    ^
    Invalid depfile: F:\ELIS\Flutter\FlutterApp\chat_interaction.dart_tool\flutter_build\dee71e732d0cc3e36ea0a10b4ecbcb04\kernel_snapshot.d
    Invalid depfile: F:\ELIS\Flutter\FlutterApp\chat_interaction.dart_tool\flutter_build\dee71e732d0cc3e36ea0a10b4ecbcb04\kernel_snapshot.d

Compiler message:
/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:7:8: Error: Not found: 'dart:html'
import 'dart:html';
^
/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:24:3: Error: Type 'EventSource' not found.
EventSource _eventSource;
^^^^^^^^^^^
/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:58:10: Error: Type 'Event' not found.
Stream get onOpen => _eventSource.onOpen;
^^^^^
/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:79:34: Error: Type 'Event' not found.
void _onIncomingControlMessage(Event message) {
^^^^^
/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:88:27: Error: Type 'Event' not found.
void _onIncomingMessage(Event message) {
^^^^^
/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:24:3: Error: 'EventSource' isn't a type.
EventSource _eventSource;
^^^^^^^^^^^
/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:35:9: Error: The method 'EventSource' isn't defined for the class 'SseClient'.

  • 'SseClient' is from 'package:sse/client/sse_client.dart' ('/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'EventSource'.
    EventSource('$serverUrl?sseClientId=$clientId', withCredentials: true);
    ^^^^^^^^^^^
    /C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:79:34: Error: 'Event' isn't a type.
    void _onIncomingControlMessage(Event message) {
    ^^^^^
    /C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:80:28: Error: 'MessageEvent' isn't a type.
    var data = (message as MessageEvent).data;
    ^^^^^^^^^^^^
    /C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:88:27: Error: 'Event' isn't a type.
    void _onIncomingMessage(Event message) {
    ^^^^^
    /C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:90:32: Error: 'MessageEvent' isn't a type.
    jsonDecode((message as MessageEvent).data as String) as String;
    ^^^^^^^^^^^^
    /C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart:107:15: Error: The getter 'HttpRequest' isn't defined for the class 'SseClient'.
  • 'SseClient' is from 'package:sse/client/sse_client.dart' ('/C:/UNKNOWN/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/sse-3.5.0/lib/client/sse_client.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'HttpRequest'.
    await HttpRequest.request(_serverUrl,
    ^^^^^^^^^^^
    /E:/sdk/flutter/flutter/packages/flutter/lib/src/painting/_network_image_web.dart:88:12: Error: Method not found: 'webOnlyInstantiateImageCodecFromUrl'.
    return ui.webOnlyInstantiateImageCodecFromUrl(resolved, // ignore: undefined_function
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Unhandled exception:
    FileSystemException(uri=org-dartlang-untranslatab
    le-uri:dart%3Ahtml; message=StandardFileSystem only supports file:* and data:* URIs)
    #0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:33:7)
    add a changelog #1633 asFileUri (p
    ackage:vm/kernel_front_en
    d.dart
    :567:37)
    Cleanup dart-archive/sse#2 writeDepfile (pa
    ckage:vm/kernel_front
    _end.dart:760:21)
dart-archive/sse#3 FrontendCompiler.compile (package:front end_server/frontend_server.dart:535:15) dart-archive/sse#4 _FlutterFrontendCompiler.com pile (package:flutter_frontend_server/server.dart:40:22 )

#1634
starter (package:flutter_frontend_server/server.dart:1
7
7:27)
dart-archive/sse#6 main (file:///C:/b/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:8:30)
dart-archive/sse#7 _startIsolate. (dart:isolate-patch/isolate_patch.dart:299:32)
dart-archive/sse#8 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.

FAILURE: Build failed with an exception.

  • Where:
    Script 'E:\sdk\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 840

  • What went wrong:
    Execution failed for task ':flutter:compileFlutterBuildDebug'.

Process 'command 'E:\sdk\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 13s
Exception: Gradle task assembleDebug failed with exit code 1


FLUTTER DOCTOR

E:\sdk\flutter\flutter\bin\flutter.bat doctor --verbose
[√] Flutter (Channel master, v1.16.4-pre.18, on Microsoft Windows [Versione 10.0.18363.778], locale it-IT)
• Flutter version 1.16.4-pre.18 at E:\sdk\flutter\flutter
• Framework revision c8efcb632b (4 weeks ago), 2020-03-27 22:31:01 -0700
• Engine revision 3ee9e3d378
• Dart version 2.8.0 (build 2.8.0-dev.17.0 1402e8e1a4)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at E:\Softwares\AndroidSdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 28.0.3
• Java binary at: E:\Softwares\Android\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
• All Android licenses accepted.

[√] Android Studio (version 3.6)
• Android Studio at E:\Softwares\Android
• Flutter plugin version 45.1.1
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)

[!] IntelliJ IDEA Community Edition (version 2017.1)
• IntelliJ at E:\Program Files (x86)\IntelliJ IDEA Community Edition 2017.1.3
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins

[√] Connected device (1 available)
• PE TL10 • YFBDU15610000658 • android-arm • Android 6.0 (API 23)

! Doctor found issues in 1 category.
Process finished with exit code 0

@grouma
Copy link
Member

grouma commented Apr 30, 2020

These seems like some invalid dependencies. @jonahwilliams do you know what's going on here?

Closing as this isn't really relevant to package:sse.

@grouma grouma closed this as completed Apr 30, 2020
@jonahwilliams
Copy link
Contributor

@aresares please re-file on flutter/flutter with an example that reproduces this crash please

@mosuem mosuem transferred this issue from dart-archive/sse Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants