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

_PROXY environment and setting not honoured since 1.1.1 #588

Closed
3 tasks
lcrockett opened this issue Nov 17, 2021 · 0 comments
Closed
3 tasks

_PROXY environment and setting not honoured since 1.1.1 #588

lcrockett opened this issue Nov 17, 2021 · 0 comments
Labels
Milestone

Comments

@lcrockett
Copy link

Describe the bug

Since version 1.1.1 PROXY environment variables are not honoured anymore. Referring to HTTP_PROXY and HTTPS_PROXY. This blocks the LS from downloading schema's. Setting a proxy via the settings in +1.1.1 does not work either. Due to a corporate firewall this prevents schema downloading functionality in +1.1.1.

Expected Behavior

I would expect either that the PROXY environment variables or the proxy settings would work.

Current Behavior

The error popping up in +1.1.1 when downloading schema's is Unable to load schema from 'https://json.schemastore.org/pre-commit-config.json': connect ECONNREFUSED 20.42.128.105:443

Steps to Reproduce

  1. Use settings block below
  2. Ensure LS version is +1.1.1
  3. Ensure a file is opened that matches one of the listings in the settings block (for instance: .pre-commit-config.yaml)
  4. The error should pop up

Environment

  • Windows
  • Mac
  • [X ] Linux
  • other (please specify)

NVIM v0.6.0-dev+589-gc0efe49e7 @ Ubuntu 20.04 LTS

Additional information

Could this perhaps be cause by this ?

LS settings
  settings = {
    http = {
      proxy = 'http://proxy.domain.tld:8080',
      proxyStrictSSL = false
    },
    redhat = {
      telemetry = { enabled = false }
    },
    yaml = {
      completion = true,
      editor = { formatOnType = true },
      format = {
        bracketSpacing = true,
        enable = true,
        proseWrap = 'preserve',
        singleQuote = true
      },
      hover = true,
      schemas = {
        ['https://raw.githubusercontent.com/awslabs/goformation/master/schema/cloudformation.schema.json'] = '**/cf-templates/**/*.{yml,yaml}',
        ['https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json'] = 'docker-compose.yml.{yml,yaml}',
        ['https://json.schemastore.org/ansible-playbook'] = '{playbook,site}.{yaml,yml}',
        ['https://json.schemastore.org/ansible-role-2.9'] = 'roles/tasks/*.{yaml,yml}',
        ['https://json.schemastore.org/circleciconfig'] = '.circleci/**/*.{yaml,yml}',
        ['https://json.schemastore.org/gitlab-ci'] = '*lab-ci.{yaml,yml}',
        ['https://json.schemastore.org/github-action'] = '.github/action.{yaml,yml}',
        ['https://json.schemastore.org/github-workflow'] = '.github/workflows/*.{yaml,yml}',
        ['https://json.schemastore.org/helmfile'] = 'helmfile.{yaml,yml}',
        ['https://json.schemastore.org/kustomization'] = 'kustomization.{yaml,yml}',
        ['https://json.schemastore.org/pre-commit-config.json'] = '.pre-commit-config.{yml,yaml}',
        ['https://json.schemastore.org/prettierrc'] = '.prettierrc.{yaml,yml}',
        ['https://json.schemastore.org/stylelintrc'] = '.stylelintrc.{yaml,yml}',
        ['https://json.schemastore.org/taskfile.json'] = 'Taskfile.yml',
        kubernetes = {
          '*-deployment.yaml', '*-deployment.yml', '*-service.yaml',
          '*-service.yml', 'clusterrole-contour.yaml',
          'clusterrole-contour.yml', 'clusterrole.yaml', 'clusterrole.yml',
          'clusterrolebinding.yaml', 'clusterrolebinding.yml', 'configmap.yaml',
          'configmap.yml', 'cronjob.yaml', 'cronjob.yml', 'daemonset.yaml',
          'daemonset.yml', 'deployment-*.yaml', 'deployment-*.yml',
          'deployment.yaml', 'deployment.yml', 'hpa.yaml', 'hpa.yml',
          'ingress.yaml', 'ingress.yml', 'job.yaml', 'job.yml', 'kubectl-edit-*.yaml',
          'namespace.yaml', 'namespace.yml', 'pvc.yaml', 'pvc.yml', 'rbac.yaml',
          'rbac.yml', 'replicaset', 'replicaset', 'role.yaml', 'role.yml',
          'rolebinding.yaml', 'rolebinding.yml', 'sa.yaml', 'sa.yml',
          'secret.yaml', 'secret.yml', 'service-*.yaml', 'service-*.yml',
          'service-account.yaml', 'service-account.yml', 'service.yaml',
          'service.yml', 'serviceaccount.yaml', 'serviceaccount.yml',
          'serviceaccounts.yaml', 'serviceaccounts.yml', 'statefulset.yaml',
          'statefulset.yml'
        }
      },
      schemaStore = {
        enable = true,
        url = 'https://www.schemastore.org/api/json/catalog.json'
      },
      validate = true
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants