You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Obtain somehow information about the mapping of attribute to it's plugin version (i.e. from scarb, on defined macros request?)
Modify proc_macro_server_types to allow v1/v2 requests (different proc-macro-server request formats)
Using 1. and 2. point send the request in appropriate format for expansion to proc-macro-server
Testing scenarios
test with a package that has dependency on proc macro that uses old API
test with a package that has dependency on proc macro that uses new API
test with a package that has dependency on both mentioned proc macros
In all of the above cases:
check if macros expand correctly via Cairo: Recursively expand (...) command from command palette
check if an invalid code treated with macros generates reasonable diagnostics
check if any package has only macros it directly depends on available(exception: re-export-cairo-plugins)
check if diagnostics are correctly mapped
check if goto/hover etc. work correctly (also related to mappings)
Note
Keep in mind macros may take a while to be calculated especially on large projects like OZ. Spinner is your friend in assessing whether any other calculations are still going on.
The text was updated successfully, but these errors were encountered:
mkaput
changed the title
Test procmacros migration effort in Scarb with LS
Migrate procmacros support to procmacros & PMS v2
Mar 10, 2025
mkaput
changed the title
Migrate procmacros support to procmacros & PMS v2
Migrate procmacros support to the v1-v2 compatibility mode of PMS
Mar 10, 2025
TODO:
proc_macro_server_types
to allow v1/v2 requests (differentproc-macro-server
request formats)proc-macro-server
Testing scenarios
In all of the above cases:
Cairo: Recursively expand (...)
command from command palettere-export-cairo-plugins
)goto
/hover
etc. work correctly (also related to mappings)Note
Keep in mind macros may take a while to be calculated especially on large projects like OZ. Spinner is your friend in assessing whether any other calculations are still going on.
The text was updated successfully, but these errors were encountered: