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.

Intellisense not working with TensorFlow 2.0 #991

Closed
@DonJayamanne

Description

@DonJayamanne

@david-macleod commented on Wed Apr 17 2019

Environment data

  • VS Code version: 1.33.1
  • Extension version (available under the Extensions sidebar): 2019.3.6558
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.8 Anaconda
  • Type of virtual environment used: conda
  • Relevant/affected Python packages and their versions:
  • tensorflow==2.0.0-alpha0
  • Microsoft Python Language Server version 0.2.59.0

Expected behaviour

When I hover over a variable I see the object definition (this is example is using tensorflow=1.12.0)

image

Actual behaviour

When using tensorflow==2.0.0-alpha0 I see no object description in the hover overlay
image

Steps to reproduce:

  1. Install tensorflow
  2. Import an object and hover over with cursor

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

************* Module 
2,0,error,no-name-in-module:No name 'keras' in module 'tensorflow'
2,0,error,import-error:Unable to import 'tensorflow.keras.layers'

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions