小编jef*_*lab的帖子

错误`在'vagrant up --provider = vmware_fusion`期间等待HGFS内核模块加载

在此期间出现此错误vagrant up --provider=vmware_fusion:

[default] Waiting for HGFS kernel module to load... The HGFS kernel module was not found on the running virtual machine. This must be installed for shared folders to work properly. Please install the VMware tools within the guest and try again. Note that the VMware tools installation will succeed even if HGFS fails to properly install. Carefully read the output of the VMware tools installation to verify the HGFS kernel modules were installed properly.

谷歌搜索,我发现这与问题有关 …

vmware-tools vmware-fusion vagrant

9
推荐指数
1
解决办法
4947
查看次数

arduino看似0!= 0

我很困惑为什么简单的0 == 0比较似乎不起作用。

我的Arduino Sketch中包含以下内容:

int status;

status = do_something();

if(status == 0) {
  Serial.println("status == 0");
} else {
  Serial.print("status = ");
  Serial.println(status);

  Serial.print("status (hex) = ");
  Serial.println(status, HEX);

  Serial.print("status - 5 = ");
  Serial.println(status - 5);

  Serial.print("freeMemory inside if = ");
  Serial.println(freeMemory());
}
Run Code Online (Sandbox Code Playgroud)

我期望发生的是,如果status为0then,它将打印出来status == 0,但这是实际输出:

status = 0
status (hex) = 0
status - 5 = -5
freeMemory inside if = 1371
Run Code Online (Sandbox Code Playgroud)

它属于该else子句的事实意味着它status不为零。但是,当我同时用十进制和十六进制打印值时,它是0。我不知道怎么可能。

我以为是由于内存问题,我可能遇到了一些时髦的行为,但是您可以看到我有1.3K的可用RAM。

环境:

  • Mega2560
  • IDE …

c++ arduino

6
推荐指数
0
解决办法
116
查看次数

{{action}}与transitionTo链接使用关系ID

给定具有上下文的视图{ id: 1, form_id: 5},我想{{action}}使用form_id.创建表单的链接.

我的视图代码如下:

<script type="text/x-handlebars" data-template-name="group">
  {{action showForm form_id href=true}}
</script>
Run Code Online (Sandbox Code Playgroud)

我的路由器中的操作如下所示:

showForm: function(router, event) {
  var form_id = event.context;
  router.transitionTo('root.form', { id: form_id });
},
Run Code Online (Sandbox Code Playgroud)

我收到的错误是:

Uncaught Error: assertion failed: You must specify a target state for event 'showForm' in order to link to it in the current state 'root.index'.
Run Code Online (Sandbox Code Playgroud)

我猜这个问题与我设置上下文的方式有关transitionTo,但我无法弄清楚正确的解决方案.

以下是重现问题的完整代码:

<script type="text/x-handlebars" data-template-name="application">
  {{outlet}}
</script>

<script type="text/x-handlebars" data-template-name="group">
  {{action showForm form_id href=true}}
</script>

MyApp = Ember.Application.create({ …
Run Code Online (Sandbox Code Playgroud)

ember.js

5
推荐指数
1
解决办法
1791
查看次数

ember.js的推荐错误报告

什么是报告Ember app崩溃的ember.js社区推荐?我正在寻找Rails中的exception_notifier gem的等价物,以便在用户遇到错误时通知我.

Stack Overflow帖子推荐了通用的javascript错误处理解决方案,包括:

  • 处理window.onerror你自己
  • 使用window.onerror为您处理的托管服务,如Airbrake.ioMuscula

我希望有某种Mixin可以为您提供所有这些错误处理代码,并提供更丰富的错误消息(例如发生错误时的当前路由等).这还存在吗?如果没有,人们在做什么来解决这个问题?

ember.js

5
推荐指数
1
解决办法
1304
查看次数

Handlebars使用Ember rc1预编译版本错误

将Ember升级到1.0.0-rc1会导致以下错误:

Uncaught Template was precompiled with an older version of Handlebars 
than the current runtime. Please update your precompiler to a newer 
version (>= 1.0.0-rc.3) or downgrade your runtime to an older version (<= 1.0.rc.2).
Run Code Online (Sandbox Code Playgroud)

我正在使用根据上面的错误消息工作的车把版本:

DEBUG: Ember.VERSION : 1.0.0-rc.1 ember.js:339
DEBUG: Handlebars.VERSION : 1.0.0-rc.3 ember.js:339
DEBUG: jQuery.VERSION : 1.9.1
Run Code Online (Sandbox Code Playgroud)

我也将我的ember-rails宝石升级为0.9.2

我该如何解决这个错误?

ember.js

4
推荐指数
1
解决办法
2422
查看次数

标签 统计

ember.js ×3

arduino ×1

c++ ×1

vagrant ×1

vmware-fusion ×1

vmware-tools ×1