python-fluent icon indicating copy to clipboard operation
python-fluent copied to clipboard

Copy fluent.runtime/runtests.py to fluent.syntax

Open stasm opened this issue 5 years ago • 2 comments

VS Code doesn't like the fact that fluent.syntax/runtests.py looks like a Bash script (it's a symlink) rather than a Python script as the extension would suggest.

stasm avatar Aug 26 '20 14:08 stasm

I think that would be good, but in this PR I'd like to just unblock myself from being able to use the Python interpreter in VS Code. Two copies is still OK, so I'd suggest to factor the script out the root dir once we have maybe 3 or 4.

stasm avatar Aug 26 '20 16:08 stasm

My quick glance says that moving the file wouldn't require changes to runtests itself, just the callsites would need to change.

I tried that and it did work when I invoked ../runtests.py manually from the CLI. Unfortunately, tox was no longer able to find it and I didn't investigate further.

stasm avatar Aug 27 '20 12:08 stasm

Closing, as modern VS Code correctly detects the symlinked file as Python.

eemeli avatar Feb 07 '23 12:02 eemeli