找不到控制流扩展的扩展错误 [英] Extension not found error with control flow extension

查看:48
本文介绍了找不到控制流扩展的扩展错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 https://github.com/qiemem/ControlFlowExtension 到if-else. 我将其添加到扩展文件夹(C:\ Program Files(x86)\ NetLogo 5.1.0 \ extensions).从github提取的压缩文件夹. 在NetLogo代码中,我使用以下代码,

I am trying to use https://github.com/qiemem/ControlFlowExtension as an alternative to if-else. I have it to added to the extensions folder(C:\Program Files (x86)\NetLogo 5.1.0\extensions). The extracted zipped folder from github. In the NetLogo code I use the following,

extensions[ControlFlowExtension-master]

但是它仍然显示以下错误:

But it still shows me the following error:

推荐答案

该扩展程序尚未发布.您下载的zip文件只是源代码,不包含将扩展名与NetLogo一起使用所需的已编译JAR文件.

There is no release for the extension yet. The zip file that you downloaded is just the source code and doesn't contain the compiled JAR files that you need to use the extension with NetLogo.

如果您想尝试一下,则必须自己构建.为此,您需要安装 sbt .然后,打开命令终端,并在cd文件夹中解压缩从GitHub下载的文件.该文件夹应位于NetLogo extensions文件夹下,并称为cf(如果不是,请重命名).进入cf文件夹后,运行:

If you want to try it out, you will have to build it yourself. For that, you will need to install sbt. Then, open a command terminal and cd to the folder where you unzipped the file you downloaded from GitHub. This folder should be under the NetLogo extensions folder and be called cf (rename it if it is not the case). Once you are in the cf folder, run:

sbt package

这应该构建cf.jar,并允许您通过放置使用扩展名

This should build cf.jar and allow you to use the extension by putting

extensions [ cf ]

位于NetLogo模型中的代码"选项卡顶部.

at the top of the code tab in your NetLogo model.

但是请注意,该扩展程序仍处于实验阶段.可能有错误.语法仍然可以更改.这就是Bryan尚未发布正式版本的原因.

Be aware, though, that the extension is still very much experimental. There may be bugs. The syntax could still change. This is why Bryan did not put out an official release yet.

这篇关于找不到控制流扩展的扩展错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆