I have a Python file open in Visual Studio Code, and I run the file in the integrated terminal. When it hits a problem in my code (problems? in MY code???!), Python gives me the usual Traceback, starting with the first command it ran and ending with the line that triggered the bug. For example (and omitting some of the intermediate lines):
Traceback (most recent call last):
File "/shar/1TB/Data/Projects/ExtractMorphFromFLEx/fwdata2xml.py", line 2117, in <module>
domGrammar = LanguageData(sFLExFile)
^^^^^^^^^^^^^^^^^^^^^^^
[some intermediate lines]
File "/shar/1TB/Data/Projects/ExtractMorphFromFLEx/fwdata2xml.py", line 1536, in AddVarFVs
NewNC.features.closedValues.append(FV.ToRef())
^^^^^^^^^^^^^^
Each line has the complete path to the file and the line #, and if I mouse over it that information becomes underlined, and I get a sort of pop-up that says Open file in editor (ctrl + click).
It used to be that when I Ctrl-left-clicked on this underlined text, VSC would scroll the already opened Python file to that line, and position the cursor at the beginning of this line.
Now instead I get a drop-down with all the traceback lines listed, each prefaced by the complete filename. I then have to click on the line in this dropdown that I want (usually at the top of this list) . But I already selected which line I want, by Ctrl-clicking on that line. I don't want to have to select the appropriate line twice.
This issue is probably my fault, because Reasons... and somewhere I seem to have messed up what Ctrl-click does.
I don't see the option to set Ctrl-click in VSC's keymapper.conf (which seems to be only about keystrokes), nor can I find the command that Ctrl-click is/was using. I've tried searching for words like 'link' in VSC's Settings, to no avail.
Even worse, if I have an https URL in my Python file, ctrl-clicking on it used to bring up that website page in my browser. Now instead it brings up the same drop-down menu listing of traceback lines if I have a traceback, and the final subdirectory of the file's path if there is no traceback.
This is under VSC 1.104.3, in Xubuntu. I have several Python extensions installed, including Microsoft's Python, Pylance, Python Debugger, and Python Environments. A few settings appear in my settings.json file with the word 'python', but none of them looks like a likely candidate.
What am I doing wrong? How do I set what Ctrl-click does, and what should I set it to so it will follow the unique hyperlink that I'm clicking on?