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

command 'extension.sendMelToMaya' not found #4

Open
MS-Astra opened this issue Nov 17, 2017 · 3 comments
Open

command 'extension.sendMelToMaya' not found #4

MS-Astra opened this issue Nov 17, 2017 · 3 comments

Comments

@MS-Astra
Copy link

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.

@clawjelly
Copy link

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);

@thejoltjoker
Copy link

Had the same issue, @clawjelly's fix worked though!

@danriduk
Copy link

unfortunately the above fix does not seem to work for me

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

No branches or pull requests

4 participants