英文:
Running ECL from Visual Studio Code with no local repo
问题
我们有一个连接到Git存储库的HPCC集群。
在从VSC调用ECL代码时,是否有绕过本地编译的方法?
这是一个使用情况,团队中的个人将需要运行ECL '模板' - 过滤条件将会改变。理想情况下,希望避免团队需要克隆存储库并定期拉取以保持同步。
我知道Playground可以用于运行远程代码,但对于这种情况并不理想。
谢谢。
英文:
We have a HPCC Cluster that is connected to a Git Repository.
Is there any way to bypass a local compile when invoking ECL code from VSC?
This is a use case where teams of individuals will need to run ECL 'templates' - where filter conditions will change. Ideally want to avoid the team needing to clone the repo and look at regular pulls to stay in sync.
I know the Playground can be used to run code against the remote code but is not ideal for this.
Thanks
答案1
得分: 1
从客户端工具PDF中:
HPCC Systems集成了原生支持Git的功能。--main选项已扩展以支持直接从Git存储库编译查询。当调用时,它从Git存储库中检索指定的ECL代码,编译代码并运行查询。检出是在远程ECLCCServer上执行的,而不是在客户机上执行。
因此,在您的VS Code Settings.json文件中,添加以下内容:
ecl.eclccArgs: ["--main"]
您可能还需要设置:
ecl.eclccSyntaxArgs: ["--main"]
希望这对您有所帮助!
Bob
英文:
From the Client Tools PDF:
HPCC Systems integrates native support for leveraging Git.
The --main option has been extended to support compiling a query directly from a Git repository. When invoked, it retrieves the ECL code specified from the Git repository, compiles the code, and runs the query. The checkout is done on the remote ECLCCServer rather than on the client machine.
So in your VS-Code Settings.json file, add the following:
ecl.eclccArgs: ["--main"]
You may also need to set:
ecl.eclccSyntaxArgs: ["--main"]
Hope this helps!
Bob
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论