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

Pylint plugin not able to execute pylint on IDEA 2024.3, M1 Mac. #113

Closed
danielshawshi opened this issue Nov 21, 2024 · 1 comment
Closed

Comments

@danielshawshi
Copy link

danielshawshi commented Nov 21, 2024

Step 1: Are you in the right place?

  • [x ] I have verified there are no duplicate active or recent bugs, questions, or requests
  • [x ] I have verified that I am using the latest version of the plugin.

I understand there are similar bugs logged: #102, #99, and #89 where #89 is the most similar.

Since #89 is not recent, I dont this this log violates Step 1 a.

Step 2: Describe your environment

  • Plugin version: 0.16.4
  • PyCharm/IDEA version: IDEA version: 2024.3 / Mac OS X / Sonoma 14.6.1 | Apple M1 Max Silicon
  • Pylint version: 3.1.0

Step 3: Describe the problem:

Steps to reproduce:

  1. Install Pylint plugin from marketplace

  2. Configure pylint to either the pyenv pylint installation, or the project venv/bin/pylint.

  3. IDEA gives an error: image

  4. I have verified the executable, and it's path:

image

Observed Results:

Plugin claims executable does not exist.

Expected Results:

Expected to be able to configure and run Pylint on intellij

Relevant Code:

Below is the pylint script in pyenv.

#!/usr/bin/env bash
set -e
[ -n "$PYENV_DEBUG" ] && set -x

program="${0##*/}"

export PYENV_ROOT="/Users/dshaw/.pyenv"
exec "/opt/homebrew/opt/pyenv/bin/pyenv" exec "$program" "$@"

Below is the pylint script in venv

#!/Users/dshaw/Documents/Projects/REDACTED/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pylint
if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(run_pylint())

No additional logging available

@danielshawshi
Copy link
Author

Un-installing and reinstalling seems to have fixed the issue.. I'm closing.

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

No branches or pull requests

1 participant