Skip to content

auto completion for custom modules #194

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

Closed
DonJayamanne opened this issue Nov 14, 2017 · 4 comments
Closed

auto completion for custom modules #194

DonJayamanne opened this issue Nov 14, 2017 · 4 comments

Comments

@DonJayamanne
Copy link

From @cg-cnu on October 3, 2017 6:58

Environment data

VS Code version: 1.16.1
Python Extension version: 0.7.0
Python Version: 3.5.1
OS and version: windows 10

I am trying to get the auto completion working for a custom module bpy used in blender

Actual behavior

Not able to get auto completion working;

I edited settings as mentioned in this article

image

As you can see in the image; I was able to get auto completion for bpy. but not after bpy.context.
You can see the auto completion for context in a blender shell for the bpy module.

Expected behavior

Provide autocomplete

Steps to reproduce:

  • Download blender.
  • Setup workspace settings as shown in the image.
  • Try importing bpy and setup autocomplete.

Copied from original issue: DonJayamanne/pythonVSCode#1265

@DonJayamanne
Copy link
Author

From @cg-cnu on October 18, 2017 4:6

Hey guys!
Intellisense is working fine for the custom modules I have written but not with the ones provided by blender. I am trying to get down and debug this one. Should I look into anything specific ? Is there anything the module should or shouldn't do to get the intellisense working ?

@DonJayamanne DonJayamanne added the m label Nov 14, 2017
@DonJayamanne
Copy link
Author

Hi @cg-cnu, I haven't looked into this yet. Will check this out. At this stage no, pointers.
FYI - I'm using Jedi to provide intellisense within the extension.
It would be easier to test the library with custom paths. if it works there, then its most certainly a bug in the extension.

@DonJayamanne
Copy link
Author

From @cg-cnu on October 28, 2017 4:46

@DonJayamanne So, I got some help from the blender community. Found this fake bpy module and pointing the autocomplete.extrapaths to it gave a dummy auto completion. So, I assume the issue is with the module not the addon. Let me know if I can give any more details 😄

@DonJayamanne
Copy link
Author

I assume the issue is with the module not the addon

Closing as this isn't an issue with the extension.

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

No branches or pull requests

2 participants