1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Atom Shellで0.16系にしたらCocoa APIが叩けなくなった

1
Last updated at Posted at 2014-09-30

0.17.1でも別のエラーでダメ

[52035:1003/063903:INFO:renderer_main.cc(227)] Renderer process started
[52033:1003/063903:INFO:CONSOLE(83)] "Uncaught Error: Module version mismatch. Expected 15, got 14.", source: /Users/kjunichi/work/atom-shell/nodobjc/node_modules/NodObjC/node_modules/ref/node_modules/bindings/bindings.js (83)

関連しそうなISSUE

やってみたこと

前述のIssueの通りApmのバージョンを新しくなっているのを確認してい、片っ端から、NodObjCが依存しているネイティブモジュールを

HOME=~/.atom-shell-gyp node-gyp rebuild --target=0.11.13 --arch=x64 --dist-url=https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist

とリビルド

結果

ダメ。
どうダメかというと。

[42643:0930/120103:INFO:renderer_main.cc(227)] Renderer process started
[42641:0930/120105:INFO:CONSOLE(1259)] "Uncaught Error: readObject: Cannot read from NULL pointer", source: /Users/kjunichi/work/atom-shell/nodobjc/node_modules/NodObjC/node_modules/ffi/node_modules/ref/lib/ref.js (1259)

暫定対応

0.15.9を使う。
0.16.3で動かなかった状態のまま、0.15.9で動かしてみたら、動いた。

関連記事

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?