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

!reset / !override / … not supported by scheme #150

Closed
AnrDaemon opened this issue Nov 2, 2024 · 5 comments
Closed

!reset / !override / … not supported by scheme #150

AnrDaemon opened this issue Nov 2, 2024 · 5 comments
Labels
duplicate This issue or pull request already exists

Comments

@AnrDaemon
Copy link

Type: Bug

The !reset / !override tags are not supported and highlighted as errors.

Extension version: 1.29.3
VS Code version: Code 1.95.0 (912bb683695358a54ae0c670461738984cbb5b95, 2024-10-28T20:16:24.561Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i3-8145U CPU @ 2.10GHz (4 x 2304)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 7.86GB (0.42GB free)
Process Argv --folder-uri file:///d%3A/Profiles/anrdaemon/Documents/hk/invapi-php
Screen Reader no
VM 0%

Example compose file:

services:
  nginx:
    ports: !override
      - '127.0.0.1:8080:80'
    build:
      args:
        RELEASE_VERSION: dev
        ENV: dev
        CONF: devenv.conf
    volumes:
      - "./app:/opt/app/app"
      - "./build/nginx/config.js:/opt/app/app/panel/config.js"
  php-fpm:
    build:
      target: devenv
    links: !reset []
    volumes:
      - '.:/opt/app'
      - './build/php-fpm/config.php:/opt/app/config.php'
    extra_hosts:
      - "host.docker.internal:192.168.1.11"
  rabbitmq: !reset null

Image

@bwateratmsft
Copy link
Contributor

Moving this to the compose language service repo. Thanks for the report!

@bwateratmsft bwateratmsft transferred this issue from microsoft/vscode-docker Nov 4, 2024
@Graloth
Copy link

Graloth commented Nov 5, 2024

I would also very much request the compose spec used by vscode to be updated, since YAML tags have been a thing for quite some time now as part of the normal YAML spec, and the compose spec has added support for them for quite some time as well.

Hopefully it'll be a relatively simple thing to just update the version of the compose spec used.

@AnrDaemon
Copy link
Author

I would also very much appreciate code formatting. Thank you.

@bwateratmsft
Copy link
Contributor

It looks like these errors are actually coming from the YAML extension. I've noticed that the compose language service only flags them as warnings.

@bwateratmsft
Copy link
Contributor

Resolving as a duplicate of #145

@bwateratmsft bwateratmsft added the duplicate This issue or pull request already exists label Dec 12, 2024
@azuretools-vscode-bot azuretools-vscode-bot bot locked and limited conversation to collaborators Jan 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants