Hi,
I'm sending code from a web-based editor back into Pharo for compilation and trying to catch compilation errors and return them to the browser.
I've created a notifier which implements #notify:at:in: and I pass an instance into the compiler in something like:�
compiler := Compiler new.
compiler from: codeToCompile class: aClass context: nil notifying: notifier.
compiler translate: codeToCompile readStream noPattern: false ifFail: �[ ... ]
Is there a better compiler API to use?
I've noticed that I appear to have to mock additional methods in the notifier e.g. #selectFrom:to: and #selectionInterval, though still find that a morphic UI appears in my image asking for variable creation confirmation etc.
I then tried using the�NonInteractiveUIManager, but found my image quit with DNU on�NonInteractiveUIManager>>#openDebuggerOn:context:label:contents:fullView:, which I duly implemented, but am starting to feel like there must be easier way. Have I missed something?
Thanks
Nick�