Closed butonic closed 3 weeks ago
now to make this work with Intellij I understand that it uses different fencing:
~~If it were that simple. Intellij only supports a minimized Scripting API. I am now trying to recreate this API as identically as possible. For example, the $random function is not allowed in the scripting area of Intellij (dynamic variables are not supported in scripting), so I don't pass the object into the context. It would be possible, but then httpyac would not be compatible with Intellij again. It is best to read the Intellij documentation to see what is supported. httpyac is more of a superset for this, or tries to be.~~
Since when are dynamic variables are supported in scripting: https://www.jetbrains.com/help/idea/exploring-http-syntax.html#dynamic-variables. This is news for me. I will add support for $random with the next release
$random was added with commit https://github.com/AnWeber/httpyac/commit/96d311dad8d2395785455064fec9e6d56f930802 . I will release this version the next days
Hey! thanks for httpYac, awesome tool to replace postman with files I can use in CI as well as the IDE.
I can happily run this request in VSCode:
Love it!
now to make this work with Intellij I understand that it uses different fencing:
.. and maybe use
request.variables.set
However, I already get a
$random is not defined
error. Reading the docs I assumed this would work, wouldn't it?