solution for erlide hangs eclipse prolem

Please try with the latest nightly from http://erlide.org/update_nightly, we did some work about similar issues, I hope they will solve yours too. It would help to see the log from /erlide.log. You can also open the launch configuration from run->configurations and see if there is some weird value in any of the fields in the "runtime" tab, most probably the node host name.

 

http://stackoverflow.com/questions/13093265/eclipse-freezes-when-erlide-tries-to-run

 

What to do about it

 

The simplest solution is to check the hostname that Erlang assigns to nodes (start erl -name foo to see it, or check the Window→ Preferences→ Erlang→ Troubleshooting page) and add it to your /etc/hosts file (or similar) for the right IP address. If you want to debug distributed nodes on several machines, you must not use 127.0.0.1 for this, but the real address on the current network. For Macs, an alternative solution is to rename your computer from foo.whatever to just foo (or anyhting without any dots).

 

 

https://github.com/erlide/erlide/wiki/Troubleshooting

The `for (;;)` loop is a common construct in programming, particularly in C and C++ languages. It represents an **infinite loop**, meaning that the loop will continue executing indefinitely unless explicitly broken out of using a `break`, `return`, or some form of external intervention such as an exception or signal. ### Meaning of `for (;;)` A typical `for` loop has three components: 1. Initialization 2. Condition check 3. Increment/decrement In the case of `for (;;)`, none of these components are provided. This omission implies: - No initialization expression. - No condition expression, which by default means the loop condition is always true. - No increment/decrement expression. As a result, the loop body will execute repeatedly without termination unless controlled internally[^2]. ### Behavior of `for (;;)` Loop When this loop is executed, it behaves as follows: - The loop starts executing the block of code enclosed within its body. - After each iteration, it checks for any internal control statements like `break` or `return` to determine whether to exit the loop. - If no such statement exists, the loop continues indefinitely, consuming CPU cycles and potentially leading to unresponsive applications or system hangs if not managed properly. This construct is often used when waiting for external events or in server loops where the program must remain active until manually stopped or until a specific condition arises internally. Here is a simple example in C++: ```cpp #include <iostream> int main() { for (;;) { std::cout << "Looping infinitely..." << std::endl; // Simulate work // break; // Uncomment to exit the loop } return 0; } ``` In practice, `for (;;)` is preferred over other infinite loop forms (like `while (true)`) in some coding standards due to its concise nature and historical usage in low-level systems programming.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值