问题标签 [erlide]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
180 浏览

debugging - 调试 erlang 程序时的一些建议(在 Erlide 上)

我想调试我的 erlang 项目,但我的工作遇到了一些问题。

我项目的目标是在互联网上玩纸牌游戏。现在,我只是在同一台机器上运行所有线程(4 个客户端和服务器),我无法深入了解我的程序的正确性。

首先,如果我放置不同的断点,然后我一步一步地查看发生了什么,我的代码似乎工作,但如果我删除所有断点,一些线程退出,原因是“终止”或“终止”。也许原因与逻辑的线程有关,所以:

  • 当一个线程因“终止”原因退出时,当它因“终止”而退出时?

一件非常奇怪的事情是,当我删除所有断点时,线程在执行期间退出:

我想在这里发布关于线程结束的2个描述,因为它并没有解释很多退出的原因:

现在我的问题是:

  • 我怎样才能获得有关这些描述的有用信息?
  • 为什么我遇到 io:format() 的问题?也许有些僵局?

当然,感谢您提出的所有其他建议,因为我不是调试专家。

编辑:所有线程都以 spawn_link 开始。

0 投票
1 回答
520 浏览

eclipse - Erlang进程卡住了

我第一次在 erlang 上工作。每次我尝试运行 erlang 进程时,它都会卡住并且不接受输入。我在 Eclipse 中使用 erlide 插件来测试 erlang 代码。

代码是::

当我点击尝试运行shell中的代码时

在此之后我在 shell 中输入的所有内容都有效。任何人都可以解释如何在 erlang 和最佳实践中处理循环。

[编辑]

聊天客户端代码:

0 投票
1 回答
897 浏览

eclipse-plugin - Error creating Erlang project on eclipse through Erlide plugin

I ran into trouble when trying to install the Erlide plugin in eclipse for Erlang using the guide below: "myadventuresincoding.wordpress.com/2009/02/11/erlang-getting-started-and-using-eclipse/"

and I have successfully installed Erlang on my PC and was able to link the binary files to the system "PATH".

However, when it came to installing the plugin on my eclipse Indigo, it first I could not find the repository: "http://erlide.sourceforge.net/update". But that easily fixed by changing the repo to "http://erlide.org/update" which give a list of tools to download, which happened seamlessly.

And this is when I started to wonder: "Could it really be that easy ?".

My doubts were soon confirmed when I went on to create a new project (File > New > Project... > Erlang > Erlang Project), which immediately gave me an error box of "Unable to create the selected preference page. An error occurred while automatically activating bundle org.erlide.ui (317)."

I've been googling this issue for a while now (~3 hours) with not even a hint to this issue. Is there anyone who has encountered this issue before ?

//----------------------------------------------------------------------------------------------------------------------------------

Here is the error generated from it I hope it helps:

Thanks guys !

Regards.

0 投票
2 回答
532 浏览

erlang - 为什么 Erlang 在 Eclipse IDE 中运行配置停止在 57%?

我在 Win 7 64 位机器中开始使用 Erlang,我能够很好地使用 Erlang IDE,因为我习惯了 Eclipse,所以我想在 Eclipse 中使用 Erlide。我正在关注我能够跟进的 erlide 上运行的项目文档。(除了第 41 步,它正在谈论向“主选项卡”添加内容,在我的情况下,它显示为“Erlang”,但选项相同)当我在 HelloWorld 示例上运行“新配置”时,它会运行并卡住为 57%。

  • 我确实在我的 PC 上安装了 Erlang,并将它安装在一个没有空间的目录中,它确实显示在我在 Eclipse 中安装的运行时中。
  • 当我运行时,我看不到“Eclipse IDE”,就像我在 Eclipse 中运行 Scala IDE 时看到的那样。
  • 我确实输入了一个虚拟 cookie 名称,以防万一这是问题
  • 我尝试运行“erl -name foo”以确保节点能够运行并且确实如此。

有什么我需要检查的吗?谢谢

0 投票
3 回答
430 浏览

eclipse - 在终端内重新加载/重新编译/刷新 .beam 文件

我使用 Eclipse 和 Erlide 在 Erlang 中进行开发。为了运行该软件,我使用终端进入ebin/目录,因为我不喜欢 Eclipse 提供的控制台。但是,每次更改后,我都必须退出并在终端中重新输入 erl 以重新加载.beam已更改的文件。Eclipse会在每次保存后自动将新.beam文件生成到目录中。ebin/

我知道我可以使用c(filename)命令手动编译它,但这需要我移动到src/目录,编译文件,然后将它们移回ebin/目录。这需要更多的工作,而不仅仅是退出和进入 Erlang 终端。我听说过makefile,但我不知道它们是否可以在Erlang 终端中运行。我不想退出终端的原因是因为我会丢失以前命令的历史记录。如果我使用的是长名称的模块:方法,那么每次更改都会花费大量的输入时间。

在 Erlang 终端中,是否有任何方法可以重新加载当前目录中的 .beam 文件?或者有什么办法可以加载 Erlang 终端之前的命令历史记录?

0 投票
1 回答
160 浏览

erlang - Erlide erlang 控制台似乎挂起

我已经在七周内使用 Erlide for eclipse 完成了七种语言的 Erlang 教程,在我进入并发部分之前,大部分似乎一切都很好。

在本节中,作者通过一个简单的示例

当按照本书的建议运行时,我应该能够发送消息Pid ! "someStuff".但是当运行它时,没有返回任何内容,并且调试器要求我在任何活动恢复之前终止进程。

这是控制台的示例。你会看到当我发送消息时,没有任何返回。

这一切似乎都可以通过命令行直接使用 Eshell 完美运行(没有 eclipse 和 erlide)。我可能在某处错过了一些配置吗?我现在完全被难住了。我意识到也许 SO 不是解决此类问题的最佳地点,但是我已经完全用尽了我的 google-fu 并且似乎 erlide 没有任何论坛存在。

感谢您的任何建议。

如果它有助于我运行 Windows 7 和 Eclipse(STS,3.3.0),使用 Erlang 5.10.4(R16B03-1)

0 投票
4 回答
3298 浏览

erlang - "** 异常错误:未定义的函数 add:addfunc/0 in Erlang "

我正在尝试执行一个简单的 erlang 程序来添加两个数字。我正在尝试在 Ubuntu 10.04 LTS 上的 Eclipse 中执行此操作。

当我执行这个程序时,我收到如下所示的错误:

我该如何解决这个错误?提前致谢。

该程序在 erlang shell 中执行时运行良好。但是当谈到日食时,它给了我这个错误。不是这个,任何与此相关的程序都会给我类似的错误。猜猜我会遗漏一些关于 Eclipse 配置的信息。

编辑:

无论如何,这是示例添加程序,

0 投票
1 回答
183 浏览

erlang - 插件 org.erlide.ui 无法加载类 org.erlide.engine.ExecutableExtensionsFactory

当我尝试打开项目中的任何 erlang 文件时出现以下错误:

我的 Eclipse 版本是 Kepler Service Release 1,在带有 Erlang R13B03 的 Ubuntu 10.04 上运行。

Erlide 版本为 0.24.1.201312111707。

erlide.log:

我已经尝试过以前的答案,如更新到 Beta 版本,但这也给出了错误。未正确安装 Beta。

0 投票
1 回答
64 浏览

erlang - Calling NIF in Erlide IDE

Is it possible to call NIF functions from an Erlang program using Erlide if so is there any tutorial,article to help me run my first example

0 投票
1 回答
311 浏览

erlang - 如何在 Eclipse 中构建 ejabberd 源代码

我想在 Eclipse 中构建 ejabberd 源代码。为此,我遵循这些步骤。

谁能知道我们如何在eclipse中导入ejabberd源代码。