Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

No intellisense for azure package when creating a Python Function App #462

Closed

Description

Create an Azure Function App in Python and here's the sample code that gets generated (requirements.txt further below):

import logging
import azure.functions as func
import sys

def main(req: func.HttpRequest) -> func.HttpResponse:
    logging.info("Python HTTP trigger function processed a request.")
    name = req.params.get("name")

There's no intellisense for azure package, hence no intellisense for req.

I've tried pip installing the following into a separate python environment still nothing:

azure-functions==1.0.0a5
azure-functions-worker==1.0.0a6
grpcio==1.14.2
grpcio-tools==1.14.2
protobuf==3.6.1
six==1.11.0

Then checking for intellisense for azure, the result is nothing.
No errors, nothing, waited for 10 minutes, still nothing.

Jedi works and its available immediately.

Activity

  1. jakebailey commented on Dec 6, 2018

    @jakebailey
    Member

    Package source here: https://github.com/Azure/azure-functions-python-library/tree/master/azure/functions

    It's using both relative imports and __all__.

    Don Jayamanne (@DonJayamanne) When you say "checking intellisense for azure", what do you mean? Are you trying to do azure., or something else? That azure package itself is empty.

  2. DonJayamanne commented on Dec 6, 2018

    @DonJayamanne
    Author

    you trying to do azure., or something

    Yes

    That azure package itself is empty.

    Some how it works with Jedi

  3. jakebailey commented on Dec 6, 2018

    @jakebailey
    Member

    I guess I'm confused, then. import azure.functions as func is what is written. The azure package is not in scope. If you have it handy, it'd be good to see what you're seeing from Jedi, but we'll probably test it eventually too.

  4. MikhailArkhipov commented on Feb 16, 2019

    @MikhailArkhipov

    There is completion for azure and its components. However, params don't have sufficient info for 'get'

    image

    image

    image

  5. MikhailArkhipov commented on Feb 19, 2019

    @MikhailArkhipov

    image

    Jedi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions