-
Notifications
You must be signed in to change notification settings - Fork 524
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
Dockerfile language server hangs #3347
Comments
@willfrey Thanks for the bug report. Something similar was reported a few weeks back in #3312 but the other person could not reproduce it anymore. Given that we're not seeing widespread reports of this and a Dockerfile with an instruction that has two arguments are a dime a dozen (like your example, a lot of people use Would you be able to share the following information?
Thank you for your assistance. |
@rcjsuen Thanks for the reply! It seems to be better behaved today but I will keep an eye out for if it acts up again. If it does, I'll follow up on here. |
I guess I'll close this for now, please let us know if it reoccurs @willfrey! Thanks! |
@rcjsuen @bwateratmsft It's happening 🙃 # syntax=docker/dockerfile:1.3-labs
ARG PYTHON_VERSION=3.9.9
ARG POETRY_VERSION=1.1.12
FROM python:${PYTHON_VERSION} AS python
FROM python AS poetry
SHELL [ "/bin/bash", "-o", "pipefail", "-c" ]
ARG POETRY_VERSION
RUN <<EOF
curl --silent --show-error --location https://install.python-poetry.org | PYTHONUSERBASE=/usr/local XDG_DATA_HOME=/usr/local/libexec python3 -
rm --recursive /root/.cache
EOF
CMD [ "/bin/sh" ]
WORKDIR /
FROM poetry AS requirements
WORKDIR /var/tmp
COPY pyproject.toml poetry.lock ./
RUN poetry export --output /requirements.txt --without-hashes
WORKDIR /
FROM poetry AS build
WORKDIR /var/tmp
COPY pyproject.toml poetry.lock README.md ./
COPY src src
RUN <<EOF
python3 -m venv .venv && poetry build --format wheel
mv dist/*.whl /
rm --recursive .venv dist
EOF
WORKDIR / |
@willfrey Thanks for the screenshots and Dockerfile! WIll investigate... |
@willfrey I've opened rcjsuen/dockerfile-language-service#99 to track this. The issue seems to be contingent on your build stage being the same name as an image. Instead of... FROM python:${PYTHON_VERSION} AS python ...if you change it to something like... FROM python:${PYTHON_VERSION} AS python-base ....or anything else, it should be fine. Thank you so much for reporting this. Have a great day! :) |
Interesting! Thank you for the workaround 🙂 |
This is now released in Docker extension version 1.19.0. |
I'm having the Dockerfile language server hang repeatedly. The only fix is for me to manually kill the process in a terminal.
Does this occur consistently? Yes
Repro steps:
Version: 1.18.0
OS: darwin
OS Release: 21.1.0
Product: Visual Studio Code
Product Version: 1.62.3
Language: en
The text was updated successfully, but these errors were encountered: