[Glass] Jade

BrunoBB via Glass glass at lists.gemtalksystems.com
Tue Mar 22 06:59:53 PDT 2016


Hi,

I have the same behavior here.

If you have a Jade Development Environment you can fix it with these two
changes:
1- ^nil added if a compiled error. 
(CodeSourcePresenter>>jadeExecuteAndDisplay:) 
2- If the evaluation result is nil --> no JadeInspector is open.
(CodeSourcePresenter>>jadeInspect)

See the code below:

CodeSourcePresenter
jadeExecuteAndDisplay: showResult 
	| result |
	result := self executeSelectionOrLine.
	result key ifTrue: [
		showResult ifTrue: [
			self showResult: result value.
		] ifFalse: [
			self setCaretToEndOfSelection.
		].
		^result value.
	] ifFalse: [
		self showCompileError: result value first.
		^nil.
	].

CodeSourcePresenter
jadeInspect
	| result |

	result := self jadeExecuteAndDisplay: false.
	result ifNil: [^self].
	JadeInspector showOn: result session: gciSession.




--
View this message in context: http://forum.world.st/Jade-tp4885815p4885920.html
Sent from the GLASS mailing list archive at Nabble.com.


More information about the Glass mailing list