Skip to content

auto completion for custom modules  #194

Closed

Description

From sreenivas alapati (@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

Activity

  1. DonJayamanne commented on Nov 14, 2017

    @DonJayamanne
    Author

    From sreenivas alapati (@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 ?

  2. DonJayamanne commented on Nov 14, 2017

    @DonJayamanne
    Author

    Hi sreenivas alapati (@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.

  3. DonJayamanne commented on Nov 14, 2017

    @DonJayamanne
    Author

    From sreenivas alapati (@cg-cnu) on October 28, 2017 4:46

    Don Jayamanne (@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 😄

  4. DonJayamanne commented on Nov 14, 2017

    @DonJayamanne
    Author

    I assume the issue is with the module not the addon

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

  5. locked as resolved and limited conversation to collaborators on Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions