FXTD-ODYSSEY / vscode-mayapy

Visual Studio Code Extension for Autdoesk Maya Python Developer
MIT License
38 stars 10 forks source link

Missing Path for Maya 2023 devkit #8

Open RaphaelRoman opened 3 weeks ago

RaphaelRoman commented 3 weeks ago

Hello. I'm trying to build a tool for my project in maya through vscode. I'm using maya 2023, so I don't have this path in my devkit: "devkitBase\devkit\other\pymel\extras\completion\py"

I'm missing everything from the "other" directory onward. Any workaround?

DavidTree commented 3 weeks ago

The mayapy extension brings its own copy of the completions directory and adds this key your python settings file at C:\Users\USERNAME\AppData\Roaming\Code\User\settings.json

"python.autoComplete.extraPaths": [ "c:\Users\USERNAME\.vscode\extensions\fxtd-odyssey.mayapy-1.0.4\mayaSDK"]

The workaround I have found is to edit the python settings.json file manually and add the following key and value then it might fix it (works for me Maya 2025, VSCode)

"python.analysis.extraPaths": [
    "c:\\Users\\USERNAME\\.vscode\\extensions\\fxtd-odyssey.mayapy-1.0.4\\mayaSDK"]

hope this helps.