Skip to content
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

RangeError: Maximum call stack size exceeded with library Firedrake #1315

Closed
salazardetroya opened this issue May 19, 2021 · 28 comments
Closed
Labels
bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@salazardetroya
Copy link

Environment data

  • Language Server version: v2021.5.2
  • OS and version: macOS 10.14.6
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.3 64-bit

Expected behaviour

Correct highlighting in the attached script (at the bottom) using the firedrake library (https://github.com/firedrakeproject/firedrake):

Actual behaviour

I am getting the error

{
	"resource": "/Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py",
	"owner": "_generated_diagnostic_collection_name_#1",
	"severity": 8,
	"message": "An internal error occurred while type checking file \"/Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py\": RangeError: Maximum call stack size exceeded\n    
        at buildTypeVarMap (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:1101:17)\n    at buildTypeVarMapFromSpecializedClass (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:1093:24)\n    
        at partiallySpecializeType (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:602:24)\n    
        at specializedMroClass (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:870:41)\n    
        at F.next (<anonymous>)\n    
        at next (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:775:31)\n    
        at D.next (<anonymous>)\n   
        at lookUpClassMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:747:22)\n    
        at Object.lookUpObjectMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:732:16)\n   
        at yi (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeEvaluator.ts:20852:36)",
	"source": "Pylance",
	"startLineNumber": 1,
	"startColumn": 1,
	"endLineNumber": 1,
	"endColumn": 1
}

but only if the function foo() is included. The first lines

import firedrake as fd

h_sizes_coeff = fd.Constant(1.0)
h_sizes = h_sizes_coeff.da

by themselves are ok

Logs

Background analysis message: setFileOpened
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
[FG] parsing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (2ms)
[FG] binding: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (1ms)
Background analysis message: getSemanticTokens full
[BG(1)] getSemanticTokens full at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py ...
[BG(1)]   parsing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (1ms)
[BG(1)]   binding: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (0ms)
[BG(1)] getSemanticTokens full at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (154ms)
[Error - 4:44:59 PM] Request textDocument/semanticTokens/full failed.
  Message: Request textDocument/semanticTokens/full failed unexpectedly without providing any details.
  Code: -32603 
Background analysis message: getSemanticTokens range
[BG(1)] getSemanticTokens range 0:0 - 9:0 at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (43ms)
[Error - 4:44:59 PM] Request textDocument/semanticTokens/range failed.
  Message: Request textDocument/semanticTokens/range failed unexpectedly without providing any details.
  Code: -32603 
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: analyze
[Error - 4:44:59 PM] An internal error occurred while type checking file "/Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py": RangeError: Maximum call stack size exceeded
    at specializedMroClass (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:858:18)
    at F.next (<anonymous>)
    at next (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:775:31)
    at D.next (<anonymous>)
    at lookUpClassMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:747:22)
    at Object.lookUpObjectMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:732:16)
    at canAssignType (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeEvaluator.ts:20852:36)
    at partiallySpecializeFunctionForBoundClassOrObject (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22401:18)
    at bindFunctionToClassOrObject (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22261:24)
    at yi (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeEvaluator.ts:20856:45)
[BG(1)] analyzing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py ...
[BG(1)]   checking: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (38ms)
[BG(1)] analyzing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (38ms)
[Error - 4:44:59 PM] Error performing analysis: RangeError: Maximum call stack size exceeded
    at specializedMroClass (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:858:18)
    at F.next (<anonymous>)
    at next (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:775:31)
    at D.next (<anonymous>)
    at lookUpClassMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:747:22)
    at Object.lookUpObjectMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:732:16)
    at canAssignType (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeEvaluator.ts:20852:36)
    at partiallySpecializeFunctionForBoundClassOrObject (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22401:18)
    at bindFunctionToClassOrObject (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22261:24)
    at yi (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeEvaluator.ts:20856:45)
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
[Error - 4:45:05 PM] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: Maximum call stack size exceeded
  Code: -32603 
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] parsing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (1ms)
[FG] binding: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (0ms)
Background analysis message: getSemanticTokens range
[BG(1)] getSemanticTokens range 0:0 - 9:0 at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py ...
[BG(1)]   parsing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (2ms)
[BG(1)]   binding: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (1ms)
[BG(1)] getSemanticTokens range 0:0 - 9:0 at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (99ms)
[Error - 4:45:17 PM] Request textDocument/semanticTokens/range failed.
  Message: Request textDocument/semanticTokens/range failed unexpectedly without providing any details.
  Code: -32603 
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getSemanticTokens full
[BG(1)] getSemanticTokens full at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (42ms)
[Error - 4:45:17 PM] Request textDocument/semanticTokens/full failed.
  Message: Request textDocument/semanticTokens/full failed unexpectedly without providing any details.
  Code: -32603 
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] parsing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (1ms)
[FG] binding: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (0ms)
[FG] completion at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py:8:18 [found 2 items] (10ms)
[Error - 4:45:17 PM] Request completionItem/resolve failed.
  Message: Request completionItem/resolve failed with message: Maximum call stack size exceeded
  Code: -32603 
Background analysis message: getSemanticTokens range
[BG(1)] getSemanticTokens range 0:0 - 9:0 at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py ...
[BG(1)]   parsing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (1ms)
[BG(1)]   binding: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (0ms)
[BG(1)] getSemanticTokens range 0:0 - 9:0 at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (66ms)
[Error - 4:45:17 PM] Request textDocument/semanticTokens/range failed.
  Message: Request textDocument/semanticTokens/range failed unexpectedly without providing any details.
  Code: -32603 
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getSemanticTokens full
[BG(1)] getSemanticTokens full at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (32ms)
[Error - 4:45:18 PM] Request textDocument/semanticTokens/full failed.
  Message: Request textDocument/semanticTokens/full failed unexpectedly without providing any details.
  Code: -32603 
Background analysis message: analyze
[Error - 4:45:18 PM] An internal error occurred while type checking file "/Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py": RangeError: Maximum call stack size exceeded
    at buildTypeVarMap (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:1101:17)
    at buildTypeVarMapFromSpecializedClass (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:1093:24)
    at partiallySpecializeType (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:602:24)
    at specializedMroClass (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:870:41)
    at F.next (<anonymous>)
    at next (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:775:31)
    at D.next (<anonymous>)
    at lookUpClassMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:747:22)
    at Object.lookUpObjectMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:732:16)
    at yi (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeEvaluator.ts:20852:36)
[BG(1)] analyzing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py ...
[BG(1)]   checking: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (31ms)
[BG(1)] analyzing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (31ms)
[Error - 4:45:18 PM] Error performing analysis: RangeError: Maximum call stack size exceeded
    at buildTypeVarMap (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:1101:17)
    at buildTypeVarMapFromSpecializedClass (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:1093:24)
    at partiallySpecializeType (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:602:24)
    at specializedMroClass (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:870:41)
    at F.next (<anonymous>)
    at next (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:775:31)
    at D.next (<anonymous>)
    at lookUpClassMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:747:22)
    at Object.lookUpObjectMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeUtils.ts:732:16)
    at yi (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.2/dist/pyright-internal/src/analyzer/typeEvaluator.ts:20852:36)
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: markFilesDirty
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: analyze
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange

Code Snippet / Additional information

import firedrake as fd

h_sizes_coeff = fd.Constant(1.0)
h_sizes = h_sizes_coeff.dat

def foo():
    h_sizes_coeff = fd.Constant(1.0)
    h_sizes = h_sizes_coeff.dat
    return h_sizes
@jakebailey
Copy link
Member

@erictraut

This is one of the few errors we had left after our big release, so I'm glad to finally know what code caused it.

@jakebailey
Copy link
Member

@salazardetroya We just put out 2021.5.3 moments ago; can you test with that version to verify that this still occurs?

@salazardetroya
Copy link
Author

I still get the same error with 2021.5.3. The new log is:

Background analysis message: setFileOpened
Background analysis message: getDiagnosticsForRange
[FG] parsing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (3ms)
[FG] binding: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (0ms)
Background analysis message: getDiagnosticsForRange
Background analysis message: getSemanticTokens full
[BG(1)] getSemanticTokens full at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py ...
[BG(1)]   parsing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (4ms)
[BG(1)]   binding: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (1ms)
[BG(1)] getSemanticTokens full at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (76ms)
[Error - 5:07:18 PM] Request textDocument/semanticTokens/full failed.
  Message: Request textDocument/semanticTokens/full failed unexpectedly without providing any details.
  Code: -32603 
Background analysis message: getSemanticTokens range
[BG(1)] getSemanticTokens range 0:0 - 9:0 at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (45ms)
[Error - 5:07:18 PM] Request textDocument/semanticTokens/range failed.
  Message: Request textDocument/semanticTokens/range failed unexpectedly without providing any details.
  Code: -32603 
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: analyze
[Error - 5:07:19 PM] An internal error occurred while type checking file "/Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py": RangeError: Maximum call stack size exceeded
    at getClassMemberIterator (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:758:18)
    at lookUpClassMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:745:23)
    at Object.lookUpObjectMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:732:16)
    at canAssignType (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:21041:36)
    at partiallySpecializeFunctionForBoundClassOrObject (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22624:18)
    at bindFunctionToClassOrObject (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22484:24)
    at canAssignType (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:21045:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22624:18)
    at bindFunctionToClassOrObject (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22484:24)
    at Ti (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:21045:45)
[BG(1)] analyzing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py ...
[BG(1)]   checking: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (38ms)
[BG(1)] analyzing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (38ms)
[Error - 5:07:19 PM] Error performing analysis: RangeError: Maximum call stack size exceeded
    at getClassMemberIterator (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:758:18)
    at lookUpClassMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:745:23)
    at Object.lookUpObjectMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:732:16)
    at canAssignType (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:21041:36)
    at partiallySpecializeFunctionForBoundClassOrObject (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22624:18)
    at bindFunctionToClassOrObject (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22484:24)
    at canAssignType (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:21045:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22624:18)
    at bindFunctionToClassOrObject (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22484:24)
    at Ti (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:21045:45)
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] parsing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (0ms)
[FG] binding: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (0ms)
Background analysis message: getSemanticTokens range
[BG(1)] getSemanticTokens range 0:0 - 9:0 at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py ...
[BG(1)]   parsing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (1ms)
[BG(1)]   binding: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (0ms)
[BG(1)] getSemanticTokens range 0:0 - 9:0 at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (102ms)
[Error - 5:07:26 PM] Request textDocument/semanticTokens/range failed.
  Message: Request textDocument/semanticTokens/range failed unexpectedly without providing any details.
  Code: -32603 
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getSemanticTokens full
[FG] parsing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (0ms)
[FG] binding: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (0ms)
[FG] completion at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py:8:18 [found 2 items] (5ms)
[BG(1)] getSemanticTokens full at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (40ms)
[Error - 5:07:26 PM] Request textDocument/semanticTokens/full failed.
  Message: Request textDocument/semanticTokens/full failed unexpectedly without providing any details.
  Code: -32603 
Background analysis message: setFileOpened
Background analysis message: markFilesDirty
[FG] parsing: /Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/typeshed-fallback/stdlib/typing.pyi [fs read 1ms] (25ms)
[FG] binding: /Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/typeshed-fallback/stdlib/typing.pyi (11ms)
[FG] parsing: /Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 0ms] (10ms)
[FG] binding: /Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (1ms)
[FG] parsing: /Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/typeshed-fallback/stdlib/typing_extensions.pyi [fs read 0ms] (2ms)
[FG] binding: /Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/typeshed-fallback/stdlib/typing_extensions.pyi (1ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/__init__.py [fs read 0ms] (74ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/__init__.py ...
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/ufl/ufl/__init__.py [fs read 0ms] (48ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/ufl/ufl/__init__.py (1ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/assemble.py [fs read 0ms] (29ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/assemble.py (3ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/bcs.py [fs read 0ms] (26ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/bcs.py (5ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/checkpointing.py [fs read 0ms] (12ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/checkpointing.py (4ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/constant.py [fs read 0ms] (5ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/constant.py (1ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/exceptions.py [fs read 1ms] (3ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/exceptions.py (0ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/expression.py [fs read 0ms] (2ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/expression.py (3ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/function.py [fs read 0ms] (20ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/function.py (4ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/functionspace.py [fs read 1ms] (8ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/functionspace.py (1ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/interpolation.py [fs read 0ms] (15ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/interpolation.py (2ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/output.py [fs read 0ms] (16ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/output.py (5ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/linear_solver.py [fs read 0ms] (6ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/linear_solver.py (3ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/__init__.py [fs read 0ms] (24ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/__init__.py ...
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/base.py [fs read 0ms] (5ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/base.py (1ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/asm.py [fs read 0ms] (7ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/asm.py (2ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/assembled.py [fs read 0ms] (2ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/assembled.py (1ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/massinv.py [fs read 1ms] (4ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/massinv.py (1ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/pcd.py [fs read 0ms] (3ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/pcd.py (1ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/patch.py [fs read 0ms] (32ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/patch.py (7ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/low_order.py [fs read 1ms] (1ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/low_order.py (1ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/gtmg.py [fs read 0ms] (2ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/gtmg.py (1ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/pmg.py [fs read 0ms] (18ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/pmg.py (7ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/hypre_ams.py [fs read 0ms] (1ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/hypre_ams.py (1ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/hypre_ads.py [fs read 0ms] (1ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/hypre_ads.py (1ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/preconditioners/__init__.py (102ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/mesh.py [fs read 0ms] (36ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/mesh.py (6ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/mg/mesh.py [fs read 0ms] (5ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/mg/mesh.py (1ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/mg/interface.py [fs read 0ms] (3ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/mg/interface.py (1ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/mg/embedded.py [fs read 0ms] (4ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/mg/embedded.py (2ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/mg/opencascade_mh.py [fs read 0ms] (14ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/mg/opencascade_mh.py (3ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/norms.py [fs read 0ms] (2ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/norms.py (0ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/nullspace.py [fs read 0ms] (2ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/nullspace.py (1ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/optimizer.py [fs read 0ms] (2ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/optimizer.py (0ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/parameters.py [fs read 0ms] (5ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/parameters.py (1ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/parloops.py [fs read 0ms] (9ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/parloops.py (1ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/plot.py [fs read 0ms] (36ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/plot.py (5ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/projection.py [fs read 0ms] (6ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/projection.py (6ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slate/__init__.py [fs read 0ms] (4ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slate/__init__.py ...
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slate/slate.py [fs read 0ms] (12ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slate/slate.py (5ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slate/static_condensation/__init__.py [fs read 1ms] (4ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slate/static_condensation/__init__.py ...
[FG]       parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slate/static_condensation/hybridization.py [fs read 0ms] (6ms)
[FG]       binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slate/static_condensation/hybridization.py (2ms)
[FG]       parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slate/static_condensation/scpc.py [fs read 0ms] (3ms)
[FG]       binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slate/static_condensation/scpc.py (1ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slate/static_condensation/__init__.py (12ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slate/__init__.py (33ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slope_limiter/__init__.py [fs read 1ms] (5ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slope_limiter/__init__.py ...
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slope_limiter/limiter.py [fs read 0ms] (0ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slope_limiter/limiter.py (0ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slope_limiter/vertex_based_limiter.py [fs read 1ms] (2ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slope_limiter/vertex_based_limiter.py (0ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/slope_limiter/__init__.py (2ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/solving.py [fs read 0ms] (3ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/solving.py (1ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/ufl_expr.py [fs read 0ms] (7ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/ufl_expr.py (1ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/utility_meshes.py [fs read 0ms] (17ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/utility_meshes.py (3ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/variational_solver.py [fs read 0ms] (4ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/variational_solver.py (1ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/vector.py [fs read 0ms] (2ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/vector.py (1ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/ensemble.py [fs read 0ms] (2ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/ensemble.py (2ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/randomfunctiongen.py [fs read 0ms] (8ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/randomfunctiongen.py (3ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/logging.py [fs read 0ms] (6ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/logging.py (0ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/__init__.py (619ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/ufl/ufl/coefficient.py [fs read 0ms] (6ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/ufl/ufl/coefficient.py (1ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/ufl/ufl/core/terminal.py [fs read 0ms] (3ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/ufl/ufl/core/terminal.py (0ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/ufl/ufl/core/expr.py [fs read 0ms] (2ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/ufl/ufl/core/expr.py (1ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/ufl/ufl/core/ufl_type.py [fs read 1ms] (6ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/ufl/ufl/core/ufl_type.py (2ms)
[FG] parsing: /Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/typeshed-fallback/stdlib/abc.pyi [fs read 1ms] (2ms)
[FG] binding: /Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/typeshed-fallback/stdlib/abc.pyi (0ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/ufl/ufl/utils/formatting.py [fs read 0ms] (1ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/ufl/ufl/utils/formatting.py (0ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/adjoint/constant.py [fs read 0ms] (8ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/adjoint/constant.py (0ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyadjoint/pyadjoint/overloaded_type.py [fs read 0ms] (2ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyadjoint/pyadjoint/overloaded_type.py (1ms)
[FG] parsing: /Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/typeshed-fallback/stdlib/functools.pyi [fs read 1ms] (3ms)
[FG] binding: /Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/typeshed-fallback/stdlib/functools.pyi (3ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyadjoint/pyadjoint/block_variable.py [fs read 0ms] (1ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyadjoint/pyadjoint/block_variable.py (1ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/utils.py [fs read 0ms] (3ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/firedrake/firedrake/utils.py (2ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyop2/pyop2/__init__.py [fs read 0ms] (5ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyop2/pyop2/__init__.py ...
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyop2/pyop2/op2.py [fs read 0ms] (6ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyop2/pyop2/op2.py (1ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyop2/pyop2/__init__.py (7ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyop2/pyop2/mpi.py [fs read 0ms] (4ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyop2/pyop2/mpi.py (1ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/loopy/loopy/__init__.py [fs read 1ms] (78ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/loopy/loopy/__init__.py (4ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyop2/pyop2/utils.py [fs read 0ms] (5ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyop2/pyop2/utils.py (2ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyop2/pyop2/logger.py [fs read 0ms] (1ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyop2/pyop2/logger.py (0ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyop2/pyop2/configuration.py [fs read 0ms] (2ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/src/pyop2/pyop2/configuration.py (0ms)
[FG] parsing: /Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/typeshed-fallback/stdlib/os/__init__.pyi [fs read 0ms] (8ms)
[FG] binding: /Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/typeshed-fallback/stdlib/os/__init__.pyi (10ms)
[FG] parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/__init__.py [fs read 0ms] (22ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/__init__.py ...
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/__init__.py [fs read 0ms] (28ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/__init__.py ...
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/numeric.py [fs read 0ms] (32ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/numeric.py ...
[FG]       parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/umath.py [fs read 0ms] (3ms)
[FG]       binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/umath.py ...
[FG]         parsing: /Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/bundled/native-stubs/numpy/core/_multiarray_umath.pyi [fs read 3ms] (58ms)
[FG]         binding: /Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/bundled/native-stubs/numpy/core/_multiarray_umath.pyi (12ms)
[FG]       binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/umath.py (72ms)
[FG]       parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/numerictypes.py [fs read 0ms] (9ms)
[FG]       binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/numerictypes.py (2ms)
[FG]       parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/fromnumeric.py [fs read 0ms] (21ms)
[FG]       binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/fromnumeric.py (3ms)
[FG]       parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/arrayprint.py [fs read 0ms] (13ms)
[FG]       binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/arrayprint.py (10ms)
[FG]       parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/_asarray.py [fs read 0ms] (3ms)
[FG]       binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/_asarray.py (1ms)
[FG]       parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/_ufunc_config.py [fs read 0ms] (4ms)
[FG]       binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/_ufunc_config.py (2ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/numeric.py (151ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/records.py [fs read 1ms] (14ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/records.py (8ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/memmap.py [fs read 0ms] (3ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/memmap.py (2ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/function_base.py [fs read 0ms] (6ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/function_base.py (1ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/machar.py [fs read 0ms] (9ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/machar.py (2ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/getlimits.py [fs read 1ms] (13ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/getlimits.py (2ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/shape_base.py [fs read 1ms] (15ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/shape_base.py (3ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/einsumfunc.py [fs read 1ms] (14ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/einsumfunc.py (9ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/core/__init__.py (287ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/__init__.py [fs read 0ms] (3ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/__init__.py ...
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/type_check.py [fs read 0ms] (4ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/type_check.py (1ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/index_tricks.py [fs read 0ms] (11ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/index_tricks.py (2ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/function_base.py [fs read 1ms] (32ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/function_base.py (14ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/nanfunctions.py [fs read 0ms] (11ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/nanfunctions.py (5ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/shape_base.py [fs read 1ms] (11ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/shape_base.py (2ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/stride_tricks.py [fs read 1ms] (2ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/stride_tricks.py (1ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/twodim_base.py [fs read 0ms] (5ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/twodim_base.py (1ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/ufunclike.py [fs read 0ms] (1ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/ufunclike.py (1ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/histograms.py [fs read 1ms] (6ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/histograms.py (3ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/polynomial.py [fs read 1ms] (12ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/polynomial.py (3ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/utils.py [fs read 0ms] (9ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/utils.py (4ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/arraysetops.py [fs read 1ms] (5ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/arraysetops.py (5ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/npyio.py [fs read 0ms] (34ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/npyio.py (14ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/financial.py [fs read 1ms] (10ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/financial.py (3ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/arraypad.py [fs read 0ms] (6ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/arraypad.py (4ms)
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/_version.py [fs read 1ms] (2ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/_version.py (1ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/lib/__init__.py (230ms)
[FG]   parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/matrixlib/__init__.py [fs read 0ms] (1ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/matrixlib/__init__.py ...
[FG]     parsing: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/matrixlib/defmatrix.py [fs read 1ms] (6ms)
[FG]     binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/matrixlib/defmatrix.py (3ms)
[FG]   binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/matrixlib/__init__.py (10ms)
[FG] binding: /users/salazardetro1/scicomp_libraries/firedrake-dev/firedrake/lib/python3.7/site-packages/numpy/__init__.py (565ms)
Background analysis message: analyze
[BG(1)] analyzing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py ...
[BG(1)]   parsing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (1ms)
[BG(1)]   binding: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (0ms)
[Error - 5:07:27 PM] An internal error occurred while type checking file "/Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py": RangeError: Maximum call stack size exceeded
    at partiallySpecializeType (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:594:17)
    at specializedMroClass (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:870:41)
    at F.next (<anonymous>)
    at next (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:775:31)
    at D.next (<anonymous>)
    at lookUpClassMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:747:22)
    at Object.lookUpObjectMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:732:16)
    at canAssignType (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:21041:36)
    at partiallySpecializeFunctionForBoundClassOrObject (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22624:18)
    at Fi (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22484:24)
[BG(1)]   checking: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (77ms)
[BG(1)] analyzing: /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (79ms)
[Error - 5:07:27 PM] Error performing analysis: RangeError: Maximum call stack size exceeded
    at partiallySpecializeType (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:594:17)
    at specializedMroClass (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:870:41)
    at F.next (<anonymous>)
    at next (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:775:31)
    at D.next (<anonymous>)
    at lookUpClassMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:747:22)
    at Object.lookUpObjectMember (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:732:16)
    at canAssignType (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:21041:36)
    at partiallySpecializeFunctionForBoundClassOrObject (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22624:18)
    at Fi (/Users/salazardetro1/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22484:24)
Background analysis message: getSemanticTokens range
[BG(1)] getSemanticTokens range 0:0 - 9:0 at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (73ms)
Background analysis message: getDiagnosticsForRange
[Error - 5:07:27 PM] Request textDocument/semanticTokens/range failed.
  Message: Request textDocument/semanticTokens/range failed unexpectedly without providing any details.
  Code: -32603 
Background analysis message: getSemanticTokens full
[BG(1)] getSemanticTokens full at /Users/salazardetro1/code/TransportER/heat_exchanger_3D/test_vscode.py (35ms)
[Error - 5:07:27 PM] Request textDocument/semanticTokens/full failed.
  Message: Request textDocument/semanticTokens/full failed unexpectedly without providing any details.
  Code: -32603 
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: markFilesDirty
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: analyze
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange

@jakebailey
Copy link
Member

Thanks.

@erictraut
Copy link
Contributor

I'm trying to install the firedrake package, but it's a pretty odd beast, and I'm running into errors during installation:

(pandas-dev) (base) MacBook-Pro:Test3 eric$ python firedrake-install
Running firedrake-install
Installing command line tools...
Checking brew doctor...
Installing required packages via homebrew...
Traceback (most recent call last):
  File "firedrake-install", line 1404, in <module>
    for p in json.loads(check_output(["brew", "info", "--installed", "--json"])))
  File "/Users/eric/opt/anaconda3/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/Users/eric/opt/anaconda3/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Users/eric/opt/anaconda3/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@erictraut
Copy link
Contributor

Instructions for installation are here: https://www.firedrakeproject.org/download.html

@wence-
Copy link

wence- commented May 20, 2021

I'm trying to install the firedrake package, but it's a pretty odd beast, and I'm running into errors during installation:

If you want to debug this do you want to do it over on our side rather than here?

@erictraut
Copy link
Contributor

Thanks for offering to help, but stack overflow (infinite recursion) bugs are typically quite difficult to debug. We really need a local repro case for this one.

@jakebailey
Copy link
Member

FWIW I tried to install firedrake locally by pip installing the repo, but it appears as though some of its dependencies don't correctly indicate theirs and pip install -r requirements.txt fails to finish. I wasn't able to reproduce the problem with a partial install, not that it's a good test.

It'd be nice to know how the original issue filer set up their environment, or if @wence- can reproduce it as well.

@salazardetroya
Copy link
Author

@jakebailey I followed the instructions in https://www.firedrakeproject.org/download.html. Firedrake heavily depends on other non-python libraries such as PETSc. I believe this is why it cannot be easily installed through pip.

@jakebailey
Copy link
Member

Okay, thanks. I'll have to try and pull out my non-ARM Mac to see if I can get this to work.

Unfortunately, the script assumes an apt based Linux distribution, so I can't test it on my Arch machine.

@salazardetroya
Copy link
Author

There is also a docker image https://hub.docker.com/r/firedrakeproject/firedrake . I am not sure if it is possible to debug through docker with the VSCode container capabilities.

@judej judej added the needs investigation Could be an issue - needs investigation label May 20, 2021
@github-actions github-actions bot removed the triage label May 20, 2021
@wence-
Copy link

wence- commented May 20, 2021

Unfortunately, the script assumes an apt based Linux distribution, so I can't test it on my Arch machine.

You can ask not to install the dependencies with --no-package-manager (we have arch users). I don't know what the relevant package names are, but the build deps we need are listed here https://www.firedrakeproject.org/download.html

--minimal-petsc will be helpful to speed things up.

@wence-
Copy link

wence- commented May 20, 2021

Thanks for offering to help, but stack overflow (infinite recursion) bugs are typically quite difficult to debug. We really need a local repro case for this one.

I guess I meant the install issues. FWIW, I don't tend to use vscode myself but could reproduce the error @salazardetroya reports.

@erictraut
Copy link
Contributor

I thought of a way that you can help if you're able to repro the problem in VS Code. Add the following options to your .vscode/settings.json file:

  "python.analysis.logLevel": "Trace",
  "python.analysis.logTypeEvaluationTime": true,

Then repro the crash and look at the Output window for Pylance. I'm interested in the last hundred or so lines of log output before the crash.

Thanks!

@wence-
Copy link

wence- commented May 21, 2021

Then repro the crash and look at the Output window for Pylance. I'm interested in the last hundred or so lines of log output before the crash.

I think you want something like this:

[Error - 09:58:58] An internal error occurred while type checking file "/Users/vtdb72/Documents/work/src/doodles/foo.py": RangeError: Maximum call stack size exceeded
    at next (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:758:18)
    at D.next (<anonymous>)
    at lookUpClassMember (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:747:22)
    at Object.lookUpObjectMember (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:732:16)
    at canAssignType (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:21041:36)
    at partiallySpecializeFunctionForBoundClassOrObject (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22624:18)
    at bindFunctionToClassOrObject (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22484:24)
    at canAssignType (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:21045:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22624:18)
    at Fi (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22484:24)
[BG(1)] analyzing: /Users/vtdb72/Documents/work/src/doodles/foo.py ...
[BG(1)]   checking: /Users/vtdb72/Documents/work/src/doodles/foo.py (42ms)
[BG(1)] analyzing: /Users/vtdb72/Documents/work/src/doodles/foo.py (42ms)
[Error - 09:58:58] Error performing analysis: RangeError: Maximum call stack size exceeded
    at next (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:758:18)
    at D.next (<anonymous>)
    at lookUpClassMember (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:747:22)
    at Object.lookUpObjectMember (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeUtils.ts:732:16)
    at canAssignType (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:21041:36)
    at partiallySpecializeFunctionForBoundClassOrObject (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22624:18)
    at bindFunctionToClassOrObject (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22484:24)
    at canAssignType (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:21045:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22624:18)
    at Fi (/Users/vtdb72/.vscode/extensions/ms-python.vscode-pylance-2021.5.3/dist/pyright-internal/src/analyzer/typeEvaluator.ts:22484:24)
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getSemanticTokens range
[BG(1)] getSemanticTokens range 0:0 - 9:0 at /Users/vtdb72/Documents/work/src/doodles/foo.py ...
[BG(1)]   getDeclarationsForNameNode ...
[BG(1)]     getTypeOfExpression ...
[BG(1)]       getEffectiveTypeOfSymbolForUsage ...
[BG(1)]         getTypeOfExpression ...
[BG(1)]           getFunctionInferredReturnType ...
[BG(1)]             getTypeOfExpression ...
[BG(1)]               getTypeOfExpression ...
[BG(1)]                 getEffectiveTypeOfSymbolForUsage ...
[BG(1)]                   getTypeOfExpression ["op2.Global(1, data)" (firedrake.constant)] (112ms)
[BG(1)]                 getEffectiveTypeOfSymbolForUsage [symbol Variable, "dat"  (firedrake.constant)] (112ms)
[BG(1)]               getTypeOfExpression ["dat" (firedrake.constant)] (112ms)
[BG(1)]             getTypeOfExpression ["(dat, rank, shape)" (firedrake.constant)] (112ms)
[BG(1)]           getFunctionInferredReturnType [Function '_globalify' (firedrake.constant)] (128ms)
[BG(1)]         getTypeOfExpression ["_globalify(value)" (firedrake.constant)] (143ms)
[BG(1)]       getEffectiveTypeOfSymbolForUsage [symbol Variable, "dat"  (firedrake.constant)] (143ms)
[BG(1)]     getTypeOfExpression ["h_sizes_coeff.dat" (Users.vtdb72.Documents.work.src.doodles.foo)] (143ms)
[BG(1)]   getDeclarationsForNameNode ["dat" (Users.vtdb72.Documents.work.src.doodles.foo)] (143ms)
[BG(1)] getSemanticTokens range 0:0 - 9:0 at /Users/vtdb72/Documents/work/src/doodles/foo.py (178ms)
[Error - 09:59:22] Request textDocument/semanticTokens/range failed.
  Message: Request textDocument/semanticTokens/range failed unexpectedly without providing any details.
  Code: -32603 

@erictraut
Copy link
Contributor

Thanks for the logs. Unfortunately, there's not enough information there for me to diagnose the problem. Let's continue to look for ways to repro it locally.

@wence-
Copy link

wence- commented May 21, 2021

I'm happy to try and debug getting a firedrake environment up for you to reproduce. The homebrew-based json decoder error you posted in #1315 (comment) is one I haven't seen before (but I don't know what macos hardware/release you are on).

@jakebailey
Copy link
Member

jakebailey commented May 21, 2021

I've personally been unable to run the script on my Arch machine; I think I have everything, but it fails complaining about some missing blas symbols from numpy very late into the build (confusing, because I have openblas). Next thing I'll try is a Mac.

@wence-
Copy link

wence- commented May 21, 2021

I've personally been unable to run the script on my Arch machine; I think I have everything, but it fails complaining about some missing blas symbols from numpy very late into the build (confusing, because I have openblas). Next thing I'll try is a Mac.

Can you try with --with-blas /path/to/blas (or else --with-blas=download?). We have had a tremendous palaver here because numpy wheels ship with a libgfortran version that doesn't match what homebrew provides (and we end up with multiple incompatible fortran ABIs which breaks some libraries we use).

@jakebailey
Copy link
Member

Thanks, the latter let me complete the build on Linux and I can now reproduce the issue:

$ pyright --lib main.py
No configuration file found.
No pyproject.toml file found.
stubPath /home/jake/work/firedrakething/typings is not a valid directory.
Assuming Python platform Linux
Searching for source files
Found 1 source file
An internal error occurred while type checking file "/home/jake/work/firedrakething/main.py": RangeError: Maximum call stack size exceeded
    at x (/home/jake/.config/yarn/global/node_modules/pyright/dist/pyright-internal.js:1:597154)
    at k (/home/jake/.config/yarn/global/node_modules/pyright/dist/pyright-internal.js:1:597011)
    at b (/home/jake/.config/yarn/global/node_modules/pyright/dist/pyright-internal.js:1:595044)
    at F (/home/jake/.config/yarn/global/node_modules/pyright/dist/pyright-internal.js:1:596737)
    at F.next (<anonymous>)
    at D (/home/jake/.config/yarn/global/node_modules/pyright/dist/pyright-internal.js:1:595738)
    at D.next (<anonymous>)
    at I (/home/jake/.config/yarn/global/node_modules/pyright/dist/pyright-internal.js:1:595576)
    at Object.C [as lookUpObjectMember] (/home/jake/.config/yarn/global/node_modules/pyright/dist/pyright-internal.js:1:595505)
    at gi (/home/jake/.config/yarn/global/node_modules/pyright/dist/pyright-internal.js:1:550536)
Error performing analysis: RangeError: Maximum call stack size exceeded
    at x (/home/jake/.config/yarn/global/node_modules/pyright/dist/pyright-internal.js:1:597154)
    at k (/home/jake/.config/yarn/global/node_modules/pyright/dist/pyright-internal.js:1:597011)
    at b (/home/jake/.config/yarn/global/node_modules/pyright/dist/pyright-internal.js:1:595044)
    at F (/home/jake/.config/yarn/global/node_modules/pyright/dist/pyright-internal.js:1:596737)
    at F.next (<anonymous>)
    at D (/home/jake/.config/yarn/global/node_modules/pyright/dist/pyright-internal.js:1:595738)
    at D.next (<anonymous>)
    at I (/home/jake/.config/yarn/global/node_modules/pyright/dist/pyright-internal.js:1:595576)
    at Object.C [as lookUpObjectMember] (/home/jake/.config/yarn/global/node_modules/pyright/dist/pyright-internal.js:1:595505)
    at gi (/home/jake/.config/yarn/global/node_modules/pyright/dist/pyright-internal.js:1:550536)

@jakebailey
Copy link
Member

Full stack trace by increasing the limit from the default 10. Working to get the evaluator tracing force enabled at the CLI.

/usr/bin/node ./packages/pyright/index.js --lib /home/jake/work/firedrakething/main.py
No configuration file found.
No pyproject.toml file found.
stubPath /home/jake/work/pyright/typings is not a valid directory.
Assuming Python platform Linux
Searching for source files
Found 1 source file
An internal error occurred while type checking file "/home/jake/work/firedrakething/main.py": RangeError: Maximum call stack size exceeded
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32212:21)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyr…pyright/packages/pyright/dist/pyright-internal.js:21884:28)
    at getTypeFromCall (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:21265:36)
    at getTypeOfExpressionInternal (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:17625:34)
    at evaluateTypesForAssignmentStatement (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:25581:39)
    at evaluateTypesForStatement (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:28500:25)
    at /home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:30723:17
    at evaluateTypeForSubnode (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:28659:13)
    at getInferredTypeOfDeclaration (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:30722:38)
    at /home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:30832:36
    at Array.forEach (<anonymous>)
    at getEffectiveTypeOfSymbolForUsageInternal (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:30801:15)
    at getTypeOfMemberInternal (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:31148:32)
    at getTypeFromClassMemberName (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:20180:36)
    at getTypeFromObjectMember (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:17961:28)
    at getTypeFromMemberAccessWithBaseType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:20014:36)
    at getTypeFromMemberAccess (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:19894:34)
    at getTypeOfExpressionInternal (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:17606:30)
    at evaluateTypesForAssignmentStatement (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:25581:39)
    at Object.evaluateTypesForStatement (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:28500:25)
    at /home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33672:96
    at TimingStat.timeOperation (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:43487:28)
    at run (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33658:55)
    at Object.evaluateTypesForStatement (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33672:43)
    at Checker.visitAssignment (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:3850:25)
    at Checker.visitNode (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:11049:26)
    at Checker.walk (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:11018:37)
    at Checker.walk (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:3427:19)
    at /home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:11026:22
    at Array.forEach (<anonymous>)
    at Checker.walkMultiple (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:11024:15)
    at Checker.walk (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:11020:18)
    at Checker.walk (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:3427:19)
    at Checker._walkStatementsAndReportUnreachable (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:4328:18)
    at Checker.check (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:3414:14)
    at /home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:15303:29
    at TimingStat.timeOperation (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:43487:28)
    at /home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:15301:54
    at LogTracker.log (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:41848:20)
    at SourceFile.check (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:15299:33)
    at /home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:12259:36
    at LogTracker.log (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:41848:20)
    at Program._checkTypes (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:12236:33)
    at /home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:11986:30
    at Object.runWithCancellationToken (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:17425:20)
    at Program._runEvaluatorWithCancellationToken (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:12837:40)
    at Program.analyze (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:11959:21)
    at Object.analyzeProgram (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:226:33)
    at BackgroundAnalysisProgram.startAnalysis (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:503:27)
    at Timeout._onTimeout (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:14648:67)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)…
Error performing analysis: RangeError: Maximum call stack size exceeded
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32212:21)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeFunctionForBoundClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33500:23)
    at bindFunctionToClassOrObject (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33418:24)
    at canAssignType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:32449:45)
    at partiallySpecializeF…pyright/packages/pyright/dist/pyright-internal.js:21884:28)
    at getTypeFromCall (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:21265:36)
    at getTypeOfExpressionInternal (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:17625:34)
    at evaluateTypesForAssignmentStatement (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:25581:39)
    at evaluateTypesForStatement (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:28500:25)
    at /home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:30723:17
    at evaluateTypeForSubnode (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:28659:13)
    at getInferredTypeOfDeclaration (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:30722:38)
    at /home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:30832:36
    at Array.forEach (<anonymous>)
    at getEffectiveTypeOfSymbolForUsageInternal (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:30801:15)
    at getTypeOfMemberInternal (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:31148:32)
    at getTypeFromClassMemberName (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:20180:36)
    at getTypeFromObjectMember (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:17961:28)
    at getTypeFromMemberAccessWithBaseType (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:20014:36)
    at getTypeFromMemberAccess (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:19894:34)
    at getTypeOfExpressionInternal (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:17606:30)
    at evaluateTypesForAssignmentStatement (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:25581:39)
    at Object.evaluateTypesForStatement (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:28500:25)
    at /home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33672:96
    at TimingStat.timeOperation (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:43487:28)
    at run (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33658:55)
    at Object.evaluateTypesForStatement (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:33672:43)
    at Checker.visitAssignment (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:3850:25)
    at Checker.visitNode (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:11049:26)
    at Checker.walk (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:11018:37)
    at Checker.walk (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:3427:19)
    at /home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:11026:22
    at Array.forEach (<anonymous>)
    at Checker.walkMultiple (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:11024:15)
    at Checker.walk (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:11020:18)
    at Checker.walk (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:3427:19)
    at Checker._walkStatementsAndReportUnreachable (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:4328:18)
    at Checker.check (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:3414:14)
    at /home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:15303:29
    at TimingStat.timeOperation (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:43487:28)
    at /home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:15301:54
    at LogTracker.log (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:41848:20)
    at SourceFile.check (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:15299:33)
    at /home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:12259:36
    at LogTracker.log (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:41848:20)
    at Program._checkTypes (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:12236:33)
    at /home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:11986:30
    at Object.runWithCancellationToken (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:17425:20)
    at Program._runEvaluatorWithCancellationToken (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:12837:40)
    at Program.analyze (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:11959:21)
    at Object.analyzeProgram (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:226:33)
    at BackgroundAnalysisProgram.startAnalysis (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:503:27)
    at Timeout._onTimeout (/home/jake/work/pyright/packages/pyright/dist/pyright-internal.js:14648:67)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)…
Process exited with code 2

@jakebailey
Copy link
Member

jakebailey commented May 21, 2021

Narrowed down to just:

from pyop2.base import Global
Global()

(Which is thankfully reproducible just from the PyOP2 repo without any build steps.)

@erictraut
Copy link
Contributor

Big thanks to @jakebailey for helping to track down a straightforward repro case.

I was able to find and fix the bug. It was triggered by a complex interaction between various unannotated methods. This included a class-based decorator validate_type that contains a __call__ method. This decorator was applied to the __init__ method on a class (Global) that also had a __call__ method.

Pyright (the type checker that underlies pylance) contains various recursion checks, but it was missing one in this particular call chain. The fix was as easy as adding this check.

@erictraut erictraut added bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version and removed needs investigation Could be an issue - needs investigation labels May 22, 2021
@salazardetroya
Copy link
Author

Thanks!! I will check the daily build for the fix.

@erictraut
Copy link
Contributor

We publish a new version of pylance approximately once a week, typically on Wed or Thurs. We'll update this bug report when a version is released with this fix.

@wence-
Copy link

wence- commented May 22, 2021

Thanks

@jakebailey
Copy link
Member

This issue has been fixed in version 2021.5.4, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202154-26-may-2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

5 participants