-
Notifications
You must be signed in to change notification settings - Fork 770
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
Some packages are not detected for autoImport functionality #6964
Comments
@heejaechang would know better than me, but I think this may be intentional given that Put another way, how are you intending to use the |
@debonte Thanks for the chasing this up. I don't use the langgraph symbol directly, but the submodule that it contains. Anything that relates to the LangGraph package is not detected. The reason I had langgraph in the issue body is because even the main module is not detected. This is the way that LangGraph is normally used from langgraph.graph import StateGraph
graph_builder = StateGraph() Issue: When I type StateGraph, the auto import doesn't pop up, so I would need to manually add in the import line myself. Same issue with the LangChain package with the below usage from langchain_core.messages import HumanMessage
HumanMessage(content="Hello, world!") |
Same here. I want to auto-import some symbol from the package I'm writing, but pylance stopped doing that a while ago. and I tried to modify these settings And I have the workspace settings like this (my package name is line_length_lint): "python.analysis.extraPaths": ["line_length_lint/**"],
"python.autoComplete.extraPaths": ["line_length_lint/**"],
"python.analysis.packageIndexDepths": [
{
"name": "line_length_lint",
"depth": 100,
"includeAllSymbols": true
}
],
"python.analysis.userFileIndexingLimit": -1 And my user setting is like this
Then the auto-import function is still not detecting the symbol. However, the add import code action works (it's much harder to use than auto-import). I also tried to bisect extensions in VSCode-insiders, yet I cannot do it with "pylance" always on. So it wasn't fruitful at all. Is there a way to fix this problem? Should I create a new issue? |
Environment data
Code Snippet
langgraph
Repro Steps
Type the above comment with this setting
"python.analysis.autoImportCompletions": true,
.Expected behavior
I would expect to see
langgraph
auto import pops up while typing the above codes.Actual behavior
When I type langgraph, langgraph is not shown on the list, but langgraph_cli and langgraph sdk showed.
I have both langgraph and pydantic installed and have the env activated. The auto import works for pydantic, but not langgraph
Logs
The text was updated successfully, but these errors were encountered: