JacquesLucke / blender_vscode

Visual Studio Code extension for Blender development.
MIT License
575 stars 75 forks source link

Script works in Blender but not from Vscode #16

Closed gerroon closed 5 years ago

gerroon commented 5 years ago

Hi

I am writing a script that I will turn into an addon. When I run the script from Vscode I get bunch of errors. When load the exact same script in Blender text editor and run from there, it works perfectly. Does this sound like an Vscode issue based on the logs?

https://paste.debian.net/hidden/07afbae4/

I tried creating a script right from Vscode using the addon but I get "Cannot read property 'data' of undefined" so I just run the loaded script. It was working fine until I added obj exporting line to my code.

JacquesLucke commented 5 years ago

Looks like the context is not correctly initialized when using the "Run Script" command in vs code.

Thanks for the report.

gerroon commented 5 years ago

Thanks for looking into it.

gerroon commented 5 years ago

Do you have rough timeline for a possible fix? No pressure, just wondering.

thanks

melMass commented 5 years ago

This is now solved. This issue should be closed.