Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Getting python 3 generics to work with lsp-python-ms #91

Open
bubba42 opened this issue May 1, 2020 · 3 comments
Open

Getting python 3 generics to work with lsp-python-ms #91

bubba42 opened this issue May 1, 2020 · 3 comments

Comments

@bubba42
Copy link

bubba42 commented May 1, 2020

Apologies in advance if this is not the right place for this question.

I'm trying to get lsp-python-ms to work as the lsp backend for spacemacs.

I'm using:

  1. Emacs Version 26.3
  2. OSX 10.15.4
  3. Python 3.7
  4. Pipenv through the develop branch of the python spacemacs layer

So when I try to write code that uses typing and generics I get the following errors:

Snippet 1/Error 1
image

image

Snippet 2/Error 2
image

image

Any thoughts?

Do I need to add a settings.json directory level file

Thanks!

@seagle0128
Copy link
Collaborator

It seems the configs for python is incorrect in your env. Did you try it with pipenv package? If you are using macOS, you need exec-path-from-shell. The simple way to check which python version is running in Emacs, to run M-! python --version.

@bubba42
Copy link
Author

bubba42 commented May 3, 2020

Hi,

  1. I am using pipenv with the python layer (using the devlop branch)
  2. In the REPL after activating the pipenv I typed:
  import sys
  print(sys.version)

  1. The result was
  >>> 3.7.3 (default, Apr  7 2020, 14:06:47) 
  [Clang 11.0.3 (clang-1103.0.32.59)]

Thanks.

@seagle0128
Copy link
Collaborator

Sorry, I am not using spacemacs, and cannot help on the env issue for it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants