Author Topic: Live Errors: AUto Detect?  (Read 911 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Live Errors: AUto Detect?
« on: July 31, 2020, 08:32:34 PM »
How does autodetect work?
The top of my python file is:
#!/usr/bin/env python3
Yet, Slick is running the 2.7 version of PyLint.

I think its really common for people to have multiple versions of python installed, and to edit scripts that use different versions.
Slick ought to at least peek at the shebang to detect the right version of python / pylint for this script.


Python for the project is set to: C:\Program Files\Python37\python.exe


patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Live Errors: AUto Detect?
« Reply #1 on: August 01, 2020, 02:29:02 PM »
Right now, the autodetect for Python is just going off the system python set in Python options.  It probably should look at the top line of the script, that's an oversight.   Easy enough to fix, I'll take a look at it.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Live Errors: AUto Detect?
« Reply #2 on: August 04, 2020, 06:10:37 PM »
Fixed for beta 2.  The version detection was insufficient for windows, and now it also checks the shebang line if there is one.

There is one limitation.  If you change the shebang line in a python file between python versions, RTE won't pick up on the change until you switch away from that buffer and then switch back.