Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode 1.43.1 macOS not load vsc-netease #87

Closed
diegofn opened this issue Mar 22, 2020 · 8 comments
Closed

vscode 1.43.1 macOS not load vsc-netease #87

diegofn opened this issue Mar 22, 2020 · 8 comments
Labels
common Helpful tips for freshman

Comments

@diegofn
Copy link

diegofn commented Mar 22, 2020

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
Copy link
Owner

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

@diegofn
Copy link
Author

diegofn commented Mar 28, 2020

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

@undefined-moe
Copy link

The same problem.

@xiaoweiz
Copy link

xiaoweiz commented Apr 8, 2020

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.

@nondanee
Copy link
Owner

nondanee commented Apr 8, 2020

@xiaoweiz
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

@xiaoweiz
Copy link

xiaoweiz commented Apr 8, 2020

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

@nondanee
Copy link
Owner

@xiaoweiz
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

@nondanee nondanee added the common Helpful tips for freshman label Apr 12, 2020
@diegofn
Copy link
Author

diegofn commented Apr 12, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Helpful tips for freshman
Projects
None yet
Development

No branches or pull requests

4 participants