Skip to content

Conversation

@moreal
Copy link
Contributor

@moreal moreal commented Feb 6, 2025

This pull request writes messages for todo! macros to help debugging.

For example, I met a situation that I cannot know lines where the build fails, when working on #5486.

error: proc macro panicked
  --> pylib/src/lib.rs:14:5
   |
14 |     rustpython_derive::py_freeze!(dir = "./Lib", crate_name = "rustpython_compiler_core");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: message: not yet implemented

After this pull request, I met a helpful message:

error: proc macro panicked
  --> pylib/src/lib.rs:14:5
   |
14 |     rustpython_derive::py_freeze!(dir = "./Lib", crate_name = "rustpython_compiler_core");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: message: not yet implemented: implement SymbolTableBuilder::scan_type_params TypeParam:::ParamSpec

@moreal moreal force-pushed the write-todo-messages branch from b6bc3b8 to 5b5b468 Compare February 6, 2025 14:47
@moreal
Copy link
Contributor Author

moreal commented Feb 6, 2025

Instead leaving todo messages, I complemented the logics in #5505

@moreal moreal closed this Feb 6, 2025
@youknowone
Copy link
Member

I am also open to merge this first and go for other patches later.

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

Successfully merging this pull request may close these issues.

2 participants