lucashilles / flutter-dev-container Goto Github PK
View Code? Open in Web Editor NEWFlutter dev container for VS Code Remote Development
License: MIT License
Flutter dev container for VS Code Remote Development
License: MIT License
ERROR: failed to solve: process "/bin/sh -c sdkmanager \"system-images;android-${ANDROID_PLATFORM_VERSION};google_apis;x86_64\" \t && avdmanager create avd -n Android${ANDROID_PLATFORM_VERSION} -k \"system-images;android-${ANDROID_PLATFORM_VERSION};google_apis;x86_64\"" did not complete successfully: exit code: 1
[2023-02-11T11:18:19.044Z] Stop (80644 ms): Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-nickveliki/container-features/0.29.0-1676114218379/Dockerfile-with-features -t vsc-flutter-dev-container-a9f261cac1bec1191e0c07ed437c6ab1 --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /home/nickveliki/Downloads/flutter-dev-container/.devcontainer
[2023-02-11T11:18:19.045Z] Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-nickveliki/container-features/0.29.0-1676114218379/Dockerfile-with-features -t vsc-flutter-dev-container-a9f261cac1bec1191e0c07ed437c6ab1 --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /home/nickveliki/Downloads/flutter-dev-container/.devcontainer
[2023-02-11T11:18:19.045Z] at pie (/home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js:1916:1698)
[2023-02-11T11:18:19.045Z] at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
[2023-02-11T11:18:19.045Z] at async vF (/home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js:1915:1972)
[2023-02-11T11:18:19.045Z] at async P7 (/home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js:1915:901)
[2023-02-11T11:18:19.045Z] at async Fie (/home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js:1921:2093)
[2023-02-11T11:18:19.046Z] at async Vf (/home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js:1921:3241)
[2023-02-11T11:18:19.046Z] at async eoe (/home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js:2045:17324)
[2023-02-11T11:18:19.046Z] at async Qse (/home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js:2045:17065)
[2023-02-11T11:18:19.050Z] Stop (81097 ms): Run: /snap/code/119/usr/share/code/code --ms-enable-electron-run-as-node /home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/nickveliki/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-ba948632-49f6-4e79-90ef-68673458c5d51676114216665 --workspace-folder /home/nickveliki/Downloads/flutter-dev-container --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/nickveliki/Downloads/flutter-dev-container --id-label devcontainer.config_file=/home/nickveliki/Downloads/flutter-dev-container/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/nickveliki/Downloads/flutter-dev-container/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-02-11T11:18:19.050Z] Exit code 1
[2023-02-11T11:18:19.053Z] Command failed: /snap/code/119/usr/share/code/code --ms-enable-electron-run-as-node /home/nickveliki/.vscode/extensions/ms-vscode-remote.remote-containers-0.275.1/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/nickveliki/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-ba948632-49f6-4e79-90ef-68673458c5d51676114216665 --workspace-folder /home/nickveliki/Downloads/flutter-dev-container --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/nickveliki/Downloads/flutter-dev-container --id-label devcontainer.config_file=/home/nickveliki/Downloads/flutter-dev-container/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/nickveliki/Downloads/flutter-dev-container/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-02-11T11:18:19.054Z] Exit code 1
It should describe:
Error:
GET /dwds/src/injected/client.js
Error thrown by handler.
NoSuchMethodError: The method 'toFilePath' was called on null.
Receiver: null
Tried calling: toFilePath()
Add in dockerfile:
flutter update-packages
Add in dockerfile:
flutter config --no-analytics
Add a test project and update the instructions of the readme.
Create a guide for web and adb configuration.
https://flutter.dev/docs/get-started/web
https://blog.codemagic.io/how-to-dockerize-flutter-apps/
Change env to new sdk versions
Force the deviceId to web-server.
"configurations": [
{
"name": "Flutter Web",
"type": "dart",
"request": "launch",
"program": "lib/main.dart",
// Setting for fixed web server port
"deviceId": "web-server",
"args": [
"--web-port",
"8000"
],
},
]
#0 120.6 fatal: detected dubious ownership in repository at '/opt/flutter'
#0 120.6 To add an exception for this directory, call:
#0 120.6
#0 120.6 git config --global --add safe.directory /opt/flutter
#0 122.0 Running "flutter pub get" in devicelab... 1.3
s
#0 123.3 Running "flutter pub get" in automated_tests... 0.6
s
#0 123.9 Running "flutter pub get" in complex_layout...
#0 124.8 The current Flutter SDK version is 0.0.0-unknown.
#0 124.8
#0 124.8
#0 124.8
#0 124.8 Because complex_layout depends on flutter_gallery_assets 0.2.1 which re
quires Flutter SDK version >=0.1.0 <2.0.0, version solving failed.
#0 124.9 pub get failed (1; Because complex_layout depends on flutter_gallery_as
sets 0.2.1 which requires Flutter SDK version >=0.1.0 <2.0.0, version solving fa
iled.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.