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
Hardcoded "python3" value for executable breaks Windows installs #2062
Comments
That is a horrible solution, buffer by buffer and manual. Instead, one may alias all of Flycheck's Python checkers to |
Aliasing is the right solution, but it would indeed be nice if we did it by default. The problem here is that (IIRC) we can't define an alias between python-mode variables and ours without loading |
See also #1055 |
Thank you for taking the time to report an issue and improve Flycheck. This template is for actual bugs you observed. If you have trouble setting up Flycheck, or if you have a question, please use the relevant issue template instead.
Checklist
Bug description
Flycheck's Python checkers all have "python3" hardcoded as the path for the Python interpreter. This means that on Windows with an installation such as Miniforge or Anaconda or Mambaforge non of the checkers works by default, even if available. Instead, Flycheck finds a stub that ships with Windows and tells the user to install a Python distribution.
Steps to reproduce
Steps to reproduce the behavior:
flycheck-mode
on an open Python filepython3
, aspython
is the name of the executable, or it finds a fakepython3
file that Microsoft ships with all operating systems.Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Flycheck should honor other variables that determine the nameof the Python executable in a given setup, as single point of configuration.
System configuration
Emacs configuration:
The text was updated successfully, but these errors were encountered: