-
Notifications
You must be signed in to change notification settings - Fork 13
Specification interoperability #18
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
Comments
I guess not. One of the main reasons was helping our community (users of HTTP Client in JetBrains IDEs) to implement their own out-of-IDE HTTP Requests runners before we introduced our own. Currently, this repository is not well maintained because it is hard to maintain a specification and deliver new features. In addition, there is official documentation, which currently feels enough. So, it is a bit abandoned right now.
No, it has a bit more, like creating and manipulating such data before passing to the (next) request. In addition, there is an API for writing tests. So, I guess in total, it wouldn't be a simple DSL and supporting it in different editors will be harder than supporting JS, which has support in most editors nowadays. I can add that JS is used because it is appropriate for people from different development backgrounds, and covers more or less all people who want to send HTTP Requests. But I think there will be discussions about |
Thanks @zinoviy23 for your insight. I agree that a DSL would not be simple if manipulating data is needed. The DSL could start with a simple feature set and evolve over time. On the other hand, requiring ECMAScript seems quite excessive compared to the need.
Not sure what do you include in most editors. Will such a specification last if it relies on a language because it is used to develop some editors? Anyway, you are right, the discussions on this matter are just starting and I hope it will be for the best as usual 🙂. |
In "has support" I meant that most of the editors have plugins for JS, including *vim and Emacs😁 And as I know, it is quite popular for JS developers to use Neovim with a bunch of plugins. About new generation editors, I think that JS in the specification or the language of the editor is not important. Because, as I understand, a common way of supporting languages in lightweight editors is moving language processing logic out of the editor process (via some kind of language server, e.g. using Language Server Protocol). Moreover, I can imagine a hypothetical Neovim plugin for |
It still feels like hitting the tack with a sledgehammer, I guess we can only agree on our disagreement. |
@gautaz We'll have to agree to disagree. I've used several of these HTTP clients, and the ones that don't support JS simply don't work for me. All the "magic" required to support the simple things, like standard security mechanisms, are unintuitive at best. Worse, that's for the standard stuff, move out of that realm and your just out of luck. Then there's API chaining and testing to consider. Good luck designing a DSL for that which isn't as complicated as JS. Ideally editors would use a LSP implementation and there'd be good CLI runners, and embedding JS isn't that difficult to do. I don't see using JS as overkill, and in fact see it is the ideal solution. |
Hello,
I am wondering if interoperability was one of the original goals of this specification.
I am in particular pointing the fact that ECMAScript was chosen as the scripting language.
This means that any editor/IDE supporting this specification also has to support ECMAScript, which seems a bit overkill.
AFAIK the reasoning behind this is to be able to reuse data between requests, a simple DSL fitted for this purpose would be far easier to integrate in any editor.
See rest-nvim/rest.nvim#205 for additional examples of where this choice leads to.
The text was updated successfully, but these errors were encountered: