Closed rbairwell closed 1 year ago
@rcjsuen can you take a look?
I can confirm that this is a problem. Heredocs are only supported for RUN
instructions at the moment. I will update this issue once I have created the relevant issues for tracking.
This is now being tracked by https://github.com/rcjsuen/dockerfile-utils/issues/112.
I guess the 0.9.0 version (current) of the language service doesn't yet utilize the update dockerfile-utils package, so we'll have to wait on releasing. I'll move this to 1.25.0 milestone.
Is this possibly related to some strange here-string syntax-highlighting behavior I'm seeing in extension version v1.23.3
?
With the extension installed, comments aren't properly colored following here-strings:
If I uninstall the extension and re-open, I see correct comment coloring following here-strings:
This fix has now been released in version 1.26 of the extension.
Possibly a reoccurrence of https://github.com/microsoft/vscode-docker/pull/3399 / https://github.com/microsoft/vscode-docker/pull/3355
If a HEREDOC section of a Dockerfile (as introduced in Buildx 1.4 https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/syntax.md#here-documents , if there is an empty line in the HEREDOC/HERE_DOCUMENT section, this extension reports "Empty continuation line dockerfile-utils(11)"
Docker File snippet:
with the report happening on the empty line between the two commented out sections.
Screenshot:
Environment
Extension version: v1.22.1 ( last updated 11/07/2022, 15:43:38 ) VS Code Version: Version: 1.69.1 (user setup) Commit: b06ae3b2d2dbfe28bca3134cc6be65935cdfea6a Date: 2022-07-12T08:21:24.514Z Electron: 18.3.5 Chromium: 100.0.4896.160 Node.js: 16.13.2 V8: 10.0.139.17-electron.0 OS: Windows_NT x64 10.0.19044