weixin_39616090
2020-11-24 16:12 阅读 6

vscode 1.43.1 macOS not load vsc-netease

Hello,

Screen Shot 2020-03-22 at 10 08 11 AM

I have vscode 1.43.1 on Catalina macOS. This version already include the libffmpeg.dylib but I get the following error when I trying the load the netease extension.

I run the script to copy the libffmpeg version from electron and I receive the same error. I install vscode 1.36.1, install the extension and I get the same error.

Is there any way to get your help.

Thanks for all.

该提问来源于开源项目:nondanee/vsc-netease-music

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

8条回答 默认 最新

  • weixin_39715187 weixin_39715187 2020-11-24 16:12

    Any version of VS Code include libffmpeg.dylib You can regard it as a "placeholder"

    VS Code 1.43.x will crash at start after lib replacement #86 The error log shows EXC_BAD_ACCESS (Code Signature Invalid) You can turn off SIP (System Integrity Protection) if you have urgent need with this extension

    In short, VS Code Webview can not play audio anymore after 1.43.x I will change the implement for macOS as soon as possible

    The extension should be worked in 1.36.1, but still need replacing ffmpeg lib

    点赞 评论 复制链接分享
  • weixin_39616090 weixin_39616090 2020-11-24 16:12

    Thanks for your help. I will wait for a new version.

    点赞 评论 复制链接分享
  • weixin_39613561 weixin_39613561 2020-11-24 16:12

    The same problem.

    点赞 评论 复制链接分享
  • weixin_39761195 weixin_39761195 2020-11-24 16:12

    Running the script to do the automatic replacement will lead to crash on my machine, exactly as reported. However, I went to the Electron repository to download the proper release version and did a manual replacement of the libffmpeg.dylib file. It then worked.

    I'm not sure the reason, but hope this info can be of help.

    点赞 评论 复制链接分享
  • weixin_39715187 weixin_39715187 2020-11-24 16:12

    So what is "the proper release version" ? The automatic script use the electron mirror from taobao npm instead of official repository I will check it soon THX

    点赞 评论 复制链接分享
  • weixin_39761195 weixin_39761195 2020-11-24 16:12

    The version indicated by the script, e.g. electron 7.1.1 for vscode 1.43.3

    点赞 评论 复制链接分享
  • weixin_39715187 weixin_39715187 2020-11-24 16:12

    Thank you for your feedback The automatic script use shutil.copyfileobj for file replacement https://stackoverflow.com/a/30359308 Because shutil.copyfileobj can not overwrite metadata, maybe the mismatched metadata cause crash I update script and add os.remove to ensure the whole file can be replaced completely

    You can continue using the automatic replacement It should work now

    点赞 评论 复制链接分享
  • weixin_39616090 weixin_39616090 2020-11-24 16:12

    Hello, Its works for me. Thank you  :-)

    点赞 评论 复制链接分享

相关推荐