This is an archive of the discontinued LLVM Phabricator instance.

[llvm][TableGen][Jupyter] Show llvm-tblgen not found error in notebook
ClosedPublic

Authored by DavidSpickett on Jan 25 2023, 3:39 AM.

Details

Summary

Previously this message was only shown on the command line,
which is not much help if you can't see that.
(you've full screened the browser or you aren't running Jupyter
on the same machine)

Instead return the error as stderr which will get printed in
the notebook just like stderr from llvm-tblgen would.

I've refactored the message sending along the way. Note that
even when we do not send a stream, we still need to send the
status reply. The send_... methods will do that for you.

Diff Detail

Event Timeline

DavidSpickett created this revision.Jan 25 2023, 3:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 25 2023, 3:39 AM
DavidSpickett requested review of this revision.Jan 25 2023, 3:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 25 2023, 3:39 AM
DavidSpickett edited the summary of this revision. (Show Details)Jan 25 2023, 3:40 AM
DavidSpickett added a reviewer: jpienaar.
jpienaar accepted this revision.Feb 9 2023, 9:31 AM
This revision is now accepted and ready to land.Feb 9 2023, 9:31 AM
This revision was landed with ongoing or failed builds.Feb 13 2023, 1:26 AM
This revision was automatically updated to reflect the committed changes.