Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Why doesn't it report an error?#551

Unanswered
w1475963 asked this question inQ&A
Discussion options

When I use some undefined variables, it doesn't give me an error.

IMG_20240415_162116

line 15, line 16, line 18, and line 19.

You must be logged in to vote

Replies: 1 comment

Comment options

I am trying to understand this! I am trying to move away from pyright where I have everything configured, anticipating a feature-full pylsp-rope. But I can't even get some of the basics. First, why do I not get unknown module or unknown name in module? None of the following give me any errors

import nonsense_moduleprint(nonsense_module)from numpy import nonsense_nameprint(nonsense_name)import pandaspandas.DataFrame().do_nonsense()

I have set pylsp.plugins.jedi.environment to a conda environment path and work in emacs eglot. I can autocomplete from my conda environment and I can also complete from my source code but rather bizarely (not having specified my top module starts in a folder called python). That is, I can autocomplete all of the below

import python.top_mod.sub_modimport top_mod.sub_modimport sub_mod

Only the second makes sense.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@w1475963@gmoutso

[8]ページ先頭

©2009-2025 Movatter.jp