-
Notifications
You must be signed in to change notification settings - Fork 133
Find all References does not search in subdirectories #1988
Comments
@PhilipMay, thanks for letting us know about this. Are you using the language server or Jedi (see the "python.jediEnable" setting)? Also, please provide the content of the "Python" output panel and the "Python Language Server" output panel. Thanks! |
Jedi is enabled. I think I can not disable it because Microsoft Python Language Server requires a platform that supports .NET Core 2.1 - and I am on macOS. |
There is no output in the Python panel. And I do not see a "Python Language Server" output panel. |
The Python Language Server supports MacOS.
There should be quite a bit of content there (e.g. commands the extension runs to discover Python environments). Let's make sure we're talking about the same thing. In the "View" menu click on "Output". At the top-right of the "OUTPUT" panel that pops up select "Python" in the pull-down menu. |
@ericsnowcurrently thanks. This here is the output. It only seems to be pylint stuff. > /usr/local/miniconda3/envs/optuna/bin/python -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/develop/git/optuna/optuna/trial.py
cwd: ~/develop/git/optuna
> /usr/local/miniconda3/envs/optuna/bin/python -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/develop/git/optuna/optuna/trial.py
cwd: ~/develop/git/optuna
##########Linting Output - pylint##########
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) |
Thanks, @PhilipMay. Would you mind trying with the language server? In your settings.json put |
Ok. I turned off jedi. This is the output of the Python Language Server:
It still does only find references in scripts in the same folder. The extension does not seem to look into subdirectories. |
@PhilipMay, I'd like to reproduce the problem. What would be the simplest example that would repeat it? |
Great thanks @ericsnowcurrently
|
@PhilipMay, thanks for the detailed instructions. I was able to reproduce the behavior you've described and agree it shouldn't be happening. We'll work on fixing the problem. Thanks again for letting us know about it. |
@ericsnowcurrently Great. Thanks. :-) |
Any news about this? Did you find the reason? |
@PhilipMay, unfortunately we have not had time to work on this and I'm not sure when it might happen. 😞 If you don't see activity on this in the next few weeks please ping me again. |
1 similar comment
This comment has been minimized.
This comment has been minimized.
@jakebailey this seems to be reproducible with the Language Server. Is this a known behaviour? |
I know of small issues with references reported on the repo, but I don't have a specific one I'd say this is a duplicate of. |
@ericsnowcurrently @luabud @jakebailey Are you planning to work on a fix for this? For me this is realy an hard issue because it makes it difficult to understand code from other ppl. For me it is a reason to switch to some other IDE although I like VSCode very much. I would try to fix it myself but I am not confident with this. |
@ericsnowcurrently @luabud @jakebailey Are there any news on this? |
Looks like #1686 broke it. Before With the loop handling when I modify a file AND the file is a loop, then analysis runs on more than one file and it looks that sometimes |
What's interesting is that presumably jedi/rope didn't handle this either, so this seems pretty exceptional. |
@AlexanderSher could you please have a look into this issue? @MikhailArkhipov sais it might be connected to a PR you have been involved. See here: #1686 |
Alex is no longer working on this codebase. There's no reason to specifically ping people, we can handle that ourselves. |
Great. I am sorry. Did not intend to interfere with your team processes. |
Hi, any updates or progress on this topic? |
0.5.51 in daily channel |
So this is fixed - right? How to I install this fixed version with VSCode? |
LS is updated independently from VS Code. It is already out in daily channel. If all good, we promote to "python.analysis.downloadChannel": "daily" then restart. You should get 0.5.51. |
Environment data
When I use the "Find All References" function it seems only to find references in scripts in the same folder. The extension does not seem to look into subdirectories.
Is this known?
The text was updated successfully, but these errors were encountered: