Open MS-Astra opened 6 years ago
I got the problem fixed for me. I haven't really any idea about NodeJS, so i cannot really say what changed exactly, but it seems that you can't define a variable more than once in a VSC-extention. Furthermore i haven't GIT (or any idea how to work with that), so i'll post the solution that worked for me here:
open the extention javascript file (windows location: %USERPROFILE%\.vscode\extensions\JonMacey.mayaport-1.0.0\extension.js
or check VSC documentation for your system ) and replace the following lines:
line 74:
var disposable = vscode.commands.registerCommand('extension.sendPythonToMaya', function () {
to
let disposable_py = vscode.commands.registerCommand('extension.sendPythonToMaya', function () {
line 95:
context.subscriptions.push(disposable);
to
context.subscriptions.push(disposable_py);
line 95:
var disposable = vscode.commands.registerCommand('extension.sendMelToMaya', function () {
to
var disposable_mel = vscode.commands.registerCommand('extension.sendMelToMaya', function () {
line 116:
context.subscriptions.push(disposable);
to
context.subscriptions.push(disposable_mel);
Had the same issue, @clawjelly's fix worked though!
unfortunately the above fix does not seem to work for me
With the current vscode version 1.18.1 MayaPort extension doesn't work. I get a warning command 'extension.sendMelToMaya' not found. Python has the same issue.