Thanks! I indeed missed the double slash.
I also saw how a json file is formatted and managed to do it. I had to add a comma after the pythonpath adress bracket.
@Nutti Is there going to be a fake-bpy-module-2.83 soon? I’m using 2.82 for now but there are things like bpy.context.workspace that are missing from 2.83.
Sorry for late response.
We’re preparing the release for 2.83.
Recently, I launched the slack channel for fake-bpy-module.
If you’re interested in this, you can join this channel.
We’re going to announce the release at this channel. https://fake-bpy-module.slack.com/
I tried using this again, but there is not much info to work with. I tried the link to visual studio code, but its dead. Simply opened a console and use the pip install command on the rout, i guess. it was at c:\ but i dont see anything there???
edit
okay found it, it installed in python39 lib folder?!?! Not sure what to do with it now.
Windows is a nightmare with those double backslashes. Whats wrong with single forward slahes. I see on windows you can you both, lots of apps can read those double backslashes but also the forward. I prefer forward since thats also compatible with OSX.
just tried both and again both work. Why is it that its explorer uses single backslash but that never used in code since that comments characters in strings?! Sorry just find Windows frn weird.
I got it working again.
Perhaps Nutti could add some more info on his GitHub
Here’s what my config looks like - fwd slashes work fine, it took me 2 seconds to test when I first started using the module as I agree backslashes suck too:
I do not think that will work. VSCode can’t parse that since it needs to interpret the above line first and that is generally possible with the regular Python distribution not with Blender’s Python.
You will need to compile Blender as Python module and install it under system’s Python to get a bit more sophistication with the autocompletion, instead of using the Fakebpy module ( as its name implies, it is fake).
I’m sorry to ask, but I installed fake-bpy with pip in VSCode.
I think "python.analysis.extraPaths": [ "C:/Users/MYNAME/AppData/Local/Programs/Python/Python37/Lib/site-packages/fake_bpy_module_3.1-20221006.dist-info" ]
should be fine (tried it out with \ as well…) but it still gives me “could not resolved” issues.
Any ideas so far? I’m using the most recent version of VSC and I’m on Win10
It shouldn’t be necessary to modify the extraPaths property.
Make sure your vscode workspace is using the same interpreter that you installed the fake-bpy package to.