Hi,
I am having trouble making the compiler not be interactive when it encounters a syntax error.
To reproduce the problem I attach here an .st file that has a funny character in the method name. If I file this in, like:
���
AAA.st��� asFileReference fileIn.
I get a Syntax Error dialog. I would like to avoid that.
After diving in, I noticed that I can tell the requestor of the CodeImporter to not be interactive, but that does not seem to have an effect:
'
AAA.st' asFileReference readStreamDo: [ :s |
importer := CodeImporter fileStream: s.
importer requestor interactive: false.
importer evaluateDeclarations ]
I also tried to play on the end of the SyntaxErrorDebugger, and replace it with something that logs the exception, but I was not successful because that one is expected to return a string that can be compiled.
Can anyone point me in the right direction?
Cheers,
Doru
--
www.tudorgirba.comwww.feenk.com
"Every now and then stop and ask yourself if the war you're fighting is the right one."