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

fix: "blender" dev_env not working #378

Merged
merged 2 commits into from
Dec 21, 2024
Merged

fix: "blender" dev_env not working #378

merged 2 commits into from
Dec 21, 2024

Conversation

jfcherng
Copy link
Collaborator

fixes #377

@Martysh12
Copy link

@jfcherng Running into another error:

[LSP-pyright][ERROR] Failed running command (('blender', '--background', '--python', 'C:\\Users\\Martin\\AppData\\Local\\Temp\\tmpynm3ed74\\sys_path_dumper.py')):   File "C:\Users\Martin\AppData\Local\Temp\tmpynm3ed74\sys_path_dumper.py", line 3
    with open("C:\Users\Martin\AppData\Local\Temp\tmpynm3ed74\sys_path.json", "w", encoding="utf-8") as f:
                                                                            ^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
[LSP-pyright][ERROR] Failed to update extra paths for dev environment "blender": [Errno 2] No such file or directory: 'C:\\Users\\Martin\\AppData\\Local\\Temp\\tmpynm3ed74\\sys_path.json'

Signed-off-by: Jack Cherng <[email protected]>
@jfcherng
Copy link
Collaborator Author

Hi @Martysh12 , please try it again when you are available.

@Martysh12
Copy link

@jfcherng It works!

[LSP-pyright][DEBUG] Due to "dev_environment", new "analysis.extraPaths" is (operation = 'prepend'): ['E:\\SteamLibrary\\steamapps\\common\\Blender\\4.3\\scripts\\startup', 'E:\\SteamLibrary\\steamapps\\common\\Blender\\4.3\\scripts\\modules', 'E:\\SteamLibrary\\steamapps\\common\\Blender\\python311.zip', 'E:\\SteamLibrary\\steamapps\\common\\Blender\\4.3\\python\\DLLs', 'E:\\SteamLibrary\\steamapps\\common\\Blender\\4.3\\python\\Lib', 'E:\\SteamLibrary\\steamapps\\common\\Blender', 'E:\\SteamLibrary\\steamapps\\common\\Blender\\4.3\\python', 'E:\\SteamLibrary\\steamapps\\common\\Blender\\4.3\\python\\Lib\\site-packages', 'E:\\SteamLibrary\\steamapps\\common\\Blender\\4.3\\scripts\\freestyle\\modules', 'C:\\Users\\Martin\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\scripts\\addons\\modules', 'E:\\SteamLibrary\\steamapps\\common\\Blender\\4.3\\scripts\\addons_core', 'C:\\Users\\Martin\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\scripts\\addons', 'E:\\SteamLibrary\\steamapps\\common\\Blender\\4.3\\scripts\\startup\\bl_ui']

@jfcherng jfcherng merged commit 29327f1 into master Dec 21, 2024
2 checks passed
@jfcherng jfcherng deleted the fix/blender branch December 21, 2024 17:52
@jfcherng
Copy link
Collaborator Author

A new version has been released and should be available on Package Control within hours.

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

Successfully merging this pull request may close these issues.

Blender's extra paths are not loaded correctly
2 participants