AnWeber / vscode-httpyac

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac
MIT License
237 stars 20 forks source link

Import varaiables from non .env files stopped working with 6.3.0 #184

Closed smaktacular closed 1 year ago

smaktacular commented 1 year ago

Given the following files:

.pat.http

@Token = abc

debug.http

# @import .pat.http

###
GET https://{{url}}/v1.0/debug
Authorization: Bearer {{Token}}

Sending the request in debug.http yields

ReferenceError: Token is not defined
    at global.<anonymous> ...

In 6.2.0 this works.

AnWeber commented 1 year ago

Should be fixed with 6.3.1. please try this version

smaktacular commented 1 year ago

nope, still happening with 6.3.1

AnWeber commented 1 year ago

Error is fixed with v6.3.2. The cause was an error in the call for executing the imported global regions. The current file was used instead of the imported one. Test is created for it.