Skip to content

Different python version in neovim python3 host and virtualenv python #19

@wookayin

Description

@wookayin

Consider a case where g:python3_host_prog is set to /usr/bin/python (3.5.x), and the current shell (e.g. $PATH) uses another python from virtualenv or anaconda, with different version (3.6.x).

In this case, Syntax from python 3.6+ is not supported. e.g.

   99 var = 1
E>100 print(f'{var}')

Output of :Semshi error is

Syntax error: invalid syntax (100, 14)

Is this a neovim-related issue? Can we configure python being used in code checking other than neovim's host python (or autodetect from $PATH)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions