python-language-server icon indicating copy to clipboard operation
python-language-server copied to clipboard

StackOverflowException with PyMySQL==0.7.11

Open AZLisme opened this issue 7 years ago • 2 comments

The language server raises StackOverflowException and won't start up, if my code imports pymysql. The code itself runs well, just the language server keep crashes.

  • Environment: macOS Mojave 10.14.4
  • Python: 2.7.15 with pyenv and virtualenv
  • VSCode: 1.34.0 (1.34.0) a622c65b2c713c890fcf4fbf07cf34049d5fe758
  • Microsoft Python Language Server version 0.2.82.0
  • Installed PyMySQL==0.7.11 and import it from code.

Debug info from python outputs:

[Info  - 11:42:33 AM] Microsoft Python Language Server version 0.2.82.0
[Info  - 11:42:33 AM] Initializing for /Users/xxxx/.pyenv/versions/2.7.15/bin/python
Process is terminating due to StackOverflowException.

AZLisme avatar May 20 '19 03:05 AZLisme

Any specific code fragment you can provide? Or just import pymysql reproes it?

MikhailArkhipov avatar May 20 '19 17:05 MikhailArkhipov

Any specific code fragment you can provide? Or just import pymysql reproes it?

yeah, just import pymysql reproes it.

AZLisme avatar May 22 '19 03:05 AZLisme