-
Notifications
You must be signed in to change notification settings - Fork 545
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
bug: LS should not autocomplete private re-exports + scarb build
should not succeed when a private export is imported
#5859
Comments
deploy_syscall
is visible in a test moduledeploy_syscall
is visible in a test module
@misicnenad can I be assined this? |
@misicnenad I think you should import the following path instead: use starknet::syscalls::deploy_syscall; If this is the fix for you, then the problem is LS which autocompletes private re-exports. If you confirm, then I'll re-phrase the issue. |
@mkaput the issue I was describing is exactly this:
Maybe I should re-phrase the description. Another related issue is that running EDIT: I used a confusing description for the issue. Rephrased it to more accurately describe the problem. Note: I'm aware that |
deploy_syscall
is visible in a test modulescarb build
should not succeed when a private export is imported
yes indeed |
To build tests, you can run CC @misicnenad |
@maciektr that actually makes a lot of sense. Thanks a lot! |
Bug Report
Cairo version:
Current behavior:
Compiler complains that "Item
core::starknet::deploy_syscall
is not visible in this context." in a test module, even though it one of the recommended imports by the LSP.Running
scarb build
in the terminal runs successfully despite this error.Running
scarb cairo-test
in the terminal fails with the "deploy_syscall is not visible in this context" error!Expected behavior:
Either:
deploy_syscall
in the autocomplete dialogscarb build
should fail when a private re-export is imported in a moduleSteps to reproduce:
The text was updated successfully, but these errors were encountered: