Skip to content
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

Compile error:failed to resolve: could not find compile in vm #11

Open
Masrawy2 opened this issue Aug 27, 2024 · 5 comments
Open

Compile error:failed to resolve: could not find compile in vm #11

Masrawy2 opened this issue Aug 27, 2024 · 5 comments

Comments

@Masrawy2
Copy link

what is the problem?
error[E0433]: failed to resolve: could not find compile in vm
--> pyc\src/main.rs:80:21
|
80 | vm::compile::Mode::Exec,
| ^^^^^^^ could not find compile in vm
|
help: consider importing this enum
|
1 + use rustpython_vm::compiler::Mode;
|
help: if you import Mode, refer to it directly
|
80 - vm::compile::Mode::Exec,
80 + Mode::Exec,
|

error[E0061]: this method takes 2 arguments but 1 argument was supplied
--> pyc\src/main.rs:66:31
|
66 | .map_err(|err| vm.new_syntax_error(&err));
| ^^^^^^^^^^^^^^^^------ an argument of type Option<&str> is missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@Masrawy2 and others