imlinhanchao / vsc-google-translate

A Translate Extension for VSCode
https://marketplace.visualstudio.com/items?itemName=hancel.google-translate
MIT License
108 stars 17 forks source link

Cannot read properties of null (reading '1') #41

Open AlexArGC opened 1 year ago

AlexArGC commented 1 year ago

I often get a contextual translation error:

[Error](vscode-file://vscode-app/c:/Users/a_kazakov/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

Translate failed, Error message: 'Cannot read properties of null (reading '1') Url: [https://translate.google.com/_/TranslateWebserverUi/data/batchexecute?rpcids=MkEWBc&f.sid=1857208321638065985&bl=boq_translate-webserver_20230606.06_p0&hl=en-US&soc-app=1&soc-platform=1&soc-device=1&_reqid=9746&rt=c'](vscode-file://vscode-app/c:/Users/a_kazakov/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html). Please post an issues for me.\
imlinhanchao commented 1 year ago

everytime?

AlexArGC commented 1 year ago

everytime?

9 out of 10 :-( I tried to change the server address from translate.google.com to other zones, it does not help.

imlinhanchao commented 1 year ago

That is strange. I can't reproduce this problem. Can you provide me with all your settings?

ToNyRANDRIAMANANTSOA commented 1 week ago

I'm getting the same issue. Target language: fr (french).

image

image