-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
ModuleNotFoundError: No module named arepl_dump #379
Comments
arepl_dump is not meant to be run from the command line - it only works in AREPL. |
That being said it would probably still be good to have it not cause an error when running from the command line, so users can run a script from the shell without having to comment the import out 🤔 |
Yes, good idea is not to generate the suiglly red line and leave us run commands without errors. Can this be fixed? |
It can, but I don't work that much on this project anymore. You or someone else is welcome to be submit a PR if you wish. |
It would be great to get rid of the reported problem. For example if Pylance is being used (I think it is the default in VS Code) it shows the red underline and this message in the problems report:
Of course constantly reported problems make the otherwise extremely useful problem report hard to use. For Pylance a simple workaround could be to ignore the problem by appending a directive: from arepl_dump import dump # type: ignore |
@vbrozik , not sure what you suggest resolves the issue. I have the directive, when I hit the button run in VSCode, still getting
as you can notice in the snapshot |
@eliassal, I was reacting just to:
Of course the directive just deactivates the Pyright/Pylance check (inside VS Code) to get rid of the red line. It will not make the code run outside of AREPL. |
I've had this error even inside vscode, at least when using a venv. For this and the case when run outside of vscode, this try:
from arepl_dump import dump # type: ignore
except ModuleNotFoundError:
def dump() -> None:
return
finally:
pass |
Describe the bug
I copied the code for Misc/Dumping, once pasted, VSC puts a red suiggly line under "arepl_dump" in
from arepl_dump import dump
I hit run without debug, I get variables dumped on the right hand side but in terminal I get
To Reproduce
Steps to reproduce the behavior:
Expected behavior
it should work according to what is mentioned at https://marketplace.visualstudio.com/items?itemName=almenon.arepl
Screenshots
Other Information (please complete the following information):
The text was updated successfully, but these errors were encountered: