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

dart compiler not working in webvm, but works in docker #112

Open
Meai opened this issue Aug 12, 2024 · 2 comments
Open

dart compiler not working in webvm, but works in docker #112

Meai opened this issue Aug 12, 2024 · 2 comments

Comments

@Meai
Copy link

Meai commented Aug 12, 2024

FROM --platform=i386 i386/debian:buster
ARG DEBIAN_FRONTEND=noninteractive

# System update and installing required packages
RUN apt-get clean && apt-get update && apt-get -y upgrade && \
    apt-get -y install apt-utils gcc python3 vim unzip ruby nodejs \
    fakeroot dbus base whiptail hexedit patch wamerican ucf manpages \
    file luajit make lua50 dialog curl less cowsay netcat-openbsd \
    apt-transport-https wget

# Download and install Dart SDK
RUN wget https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.0/sdk/dartsdk-linux-ia32-release.zip
RUN mkdir -p /myinstall && unzip ./dartsdk-linux-ia32-release.zip -d /myinstall/

# Add Dart to PATH for all subsequent steps and users
ENV PATH="$PATH:/myinstall/dart-sdk/bin"

# Install Dart packages
RUN dart pub global activate webdev

ENV PATH="$PATH:$HOME/.pub-cache/bin"


# Create a non-root user
RUN useradd -m user && echo "user:password" | chpasswd

# Copy examples and set permissions
COPY --chown=user:user ./examples /home/user/examples
RUN chmod -R +x /home/user/examples/lua

# Set work directory and environment variables
WORKDIR /home/user/
ENV HOME="/home/user" TERM="xterm" USER="user" SHELL="/bin/bash" EDITOR="vim" LANG="en_US.UTF-8" LC_ALL="C"

# Set root password
RUN echo 'root:password' | chpasswd

# Default command
CMD [ "/bin/bash" ]

then after webvm has started, it errors out on typing:
image

dart

@1tbfree
Copy link

1tbfree commented Aug 13, 2024

Likely an WebVM issue with syscalls. That is normal, but still should be fixed.

@saarikoski-jules
Copy link
Member

Thanks for the report. The initial issue has been fixed and deployed (though due to CDN caching it might take some time before the new version is visible everywhere). There is, however, another issue further up in the execution that we'll continue working on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants