rune icon indicating copy to clipboard operation
rune copied to clipboard

Use item name in error/warning messages instead of hashes

Open pkolaczk opened this issue 4 years ago • 2 comments

error: Script execution error: missing instance function `0x15b77c7748430d90` for `Session` (at inst 3)

Would be nice to present the original identifier instead of its hash. I guess this would require keeping the mapping somewhere just for the purpose of error reporting.

pkolaczk avatar Nov 04 '21 11:11 pkolaczk

Hm. It should be possible if we have debug info available in the unit (https://docs.rs/runestick/0.9.1/runestick/struct.Unit.html#method.debug_info) which requires the debug-info option to be enabled during compilation (https://docs.rs/rune/0.9.1/rune/struct.Options.html#method.debug_info).

EmitDiagnostics could be modified to take this into account somehow if available.

udoprog avatar Nov 10 '21 16:11 udoprog

+1. Definitely needed.

jasal82 avatar Mar 31 '23 16:03 jasal82