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.

"Code Analysis is in Progress" doesn't finish  #2117

Open

Description

Environment data

  • Language Server version: 0.5.51.0
  • MacOS Catalina: 10.15.6
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.5

Expected behaviour

To be not stuck in code analysis

Actual behaviour

Hovering over keywords just shows "code analysis is in progress"

Logs

{\rtf1\ansi\ansicpg1252\cocoartf2513
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{*\expandedcolortbl;;}
\paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0

\f0\fs24 \cf0 Info - 9:43:17 PM] Microsoft Python Language Server version 0.5.51.0
[Info - 9:43:17 PM] Workspace root:
[Info - 9:43:17 PM] GetCurrentSearchPaths /usr/local/bin/python3
[Info - 9:43:17 PM] Interpreter search paths:
[Info - 9:43:17 PM] /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
[Info - 9:43:17 PM] /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload
[Info - 9:43:17 PM] /Users/utkarshjain/Desktop/Utkarsh/Languages & Software/Python/Modules
[Info - 9:43:17 PM] /Library/Developer/CommandLineTools/usr/bin/python3
[Info - 9:43:17 PM] /Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules
[Info - 9:43:17 PM] /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages
[Info - 9:43:17 PM] User search paths:
2020-09-05 21:43:18.511416 [W:onnxruntime:, graph.cc:814 Graph] Initializer embeddings_matrix:0_quantized appears in graph inputs and will not be treated as constant value/weight. This may fail some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
2020-09-05 21:43:18.511477 [W:onnxruntime:, graph.cc:814 Graph] Initializer embeddings_matrix:0_scale appears in graph inputs and will not be treated as constant value/weight. This may fail some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
2020-09-05 21:43:18.511494 [W:onnxruntime:, graph.cc:814 Graph] Initializer embeddings_matrix:0_zero_point appears in graph inputs and will not be treated as constant value/weight. This may fail some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
2020-09-05 21:43:18.511525 [W:onnxruntime:, graph.cc:814 Graph] Initializer fixed_quantization_range_uint8 appears in graph inputs and will not be treated as constant value/weight. This may fail some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
2020-09-05 21:43:18.511540 [W:onnxruntime:, graph.cc:814 Graph] Initializer fixed_zero appears in graph inputs and will not be treated as constant value/weight. This may fail some of the graph optimizations, like const folding. Move it out of graph inputs if there is no need to override it, by either re-generating the model with latest exporter/converter or with the tool onnxruntime/tools/python/remove_initializer_from_input.py.
[Info - 9:43:18 PM] Initializing for /usr/local/bin/python3
[Info - 9:43:18 PM] Analysis caching mode: None.
Opening document file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py
Code Action in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (59, 7) - (59, 7)
Analysis of myClasses (Library) queued. Dependencies: myFunctions, statistics, random
Deep learning model loaded, memory footprint increased: 146141184 bytes
Code Action in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (59, 7) - (59, 7)
Code Action in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (59, 7) - (59, 7)
Code Action in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (59, 7) - (59, 7)
Hover in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (36, 13)
Code Action in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (36, 8) - (36, 8)
Code Action in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (36, 8) - (36, 8)
Goto Definition in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (36, 13)
Code Action in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (59, 7) - (59, 7)
Code Action in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (56, 19) - (56, 19)
Code Action in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (0, 0) - (0, 0)
Code Action in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (56, 19) - (56, 19)
Hover in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (18, 29)
Hover in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (13, 23)
Hover in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (17, 25)
[Info - 9:45:04 PM] Analysis caching mode: None.
[Info - 9:45:46 PM] Analysis caching mode: None.
[Info - 9:45:50 PM] Analysis caching mode: None.
[Info - 9:45:54 PM] Analysis caching mode: None.
[Info - 9:45:58 PM] Analysis caching mode: None.
[Info - 9:46:01 PM] Analysis caching mode: None.
[Info - 9:46:48 PM] Analysis caching mode: None.
[Info - 9:49:31 PM] Analysis caching mode: None.
[Info - 9:51:25 PM] Analysis caching mode: None.
Code Action in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (57, 5) - (57, 5)
Hover in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (24, 5)
Hover in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (24, 6)
Hover in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (24, 5)
Hover in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (24, 10)
Hover in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (24, 19)
Hover in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (36, 13)
Code Action in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (36, 8) - (36, 8)
Code Action in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (36, 8) - (36, 8)
Hover in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (35, 15)
Code Action in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (35, 8) - (35, 19)
Code Action in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (35, 8) - (35, 19)
Hover in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (24, 11)
Document highlight in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (24, 12)
Code Action in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (24, 12) - (24, 12)
Hover in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (24, 12)
Hover in file:///Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules/myClasses.py at (36, 14)
}

Code Snippet / Additional lnformation

#1175 Thread said this issue was fixed, but I seem to be encountering it again. I've modified my .zshrc profile to read another path. here is my .zshrc

export PATH="${PATH}:/Library/Frameworks/Python.framework/Versions/3.8/bin"
export PYTHONPATH="${PYTHONPATH}:/Users/utkarsh/Desktop/Utkarsh/Languages/Python/Modules"

Activity

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