Discussion:
Tweak in Browser Plugin
Fournier Eric
2006-01-19 22:41:03 UTC
Permalink
I'm successfully running Tweak now in a browser window via the
NPSqueak plugin. Everything runs bug-equivalent (so far) with the
standalone version with the exception of...

Several keys are mapped oddly from the keyboard when in the Tweak
environment. s,w,h,b, the return key, some others(?) are being paired
with control characters only in Tweak, only in browser. I can run
same image standalone and have no troubles.

The plugin is v3.5.3C1, and we are using much newer (assuming that
plugin version maps to VM version) standalone VMs (3.8.8b14, 3.8.9b7).

I scanned through the image looking for some 'I'm in a browser so do
this weird stuff with keystrokes' code, but found nothing.

Any ideas?

-- Eric
Bert Freudenberg
2006-01-19 22:49:45 UTC
Permalink
Post by Fournier Eric
I'm successfully running Tweak now in a browser window via the
NPSqueak plugin. Everything runs bug-equivalent (so far) with the
standalone version with the exception of...
Several keys are mapped oddly from the keyboard when in the Tweak
environment. s,w,h,b, the return key, some others(?) are being
paired with control characters only in Tweak, only in browser. I
can run same image standalone and have no troubles.
The plugin is v3.5.3C1, and we are using much newer (assuming that
plugin version maps to VM version) standalone VMs (3.8.8b14, 3.8.9b7).
I scanned through the image looking for some 'I'm in a browser so
do this weird stuff with keystrokes' code, but found nothing.
Sounds like a keycode problem (see
CMacOSPlatform>>macVirtualKeycodes). What does "Smalltalk vmVersion"
say in the plugin?

- Bert -
Eric Fournier
2006-01-20 02:24:21 UTC
Permalink
Post by Bert Freudenberg
Post by Fournier Eric
I'm successfully running Tweak now in a browser window via the
NPSqueak plugin. Everything runs bug-equivalent (so far) with the
standalone version with the exception of...
Several keys are mapped oddly from the keyboard when in the Tweak
environment. s,w,h,b, the return key, some others(?) are being
paired with control characters only in Tweak, only in browser. I
can run same image standalone and have no troubles.
The plugin is v3.5.3C1, and we are using much newer (assuming that
plugin version maps to VM version) standalone VMs (3.8.8b14,
3.8.9b7).
I scanned through the image looking for some 'I'm in a browser so
do this weird stuff with keystrokes' code, but found nothing.
Sounds like a keycode problem (see
CMacOSPlatform>>macVirtualKeycodes). What does "Smalltalk
vmVersion" say in the plugin?
After doing some installation updating:

'Squeak3.8 of ''5 May 2005'' [latest update: #6665] 1.5'

The Mac Finder's info on NPSqueakStubCFM is 3.5.1bC1; NPSqueak.bundle
is 3.8.8b7.

I mentioned the issue to one of the Croquet programmers (also running
Tweak), and he (Peter Moore) mentioned that he recalled that we have
seen this problem before (in standalone Squeak). He thinks one of the
other guys might have a workaround. I'll check that out tommorrow.

Thanks.

--Eric
Post by Bert Freudenberg
- Bert -
_______________________________________________
Tweak mailing list
http://impara.de/mailman/listinfo/tweak
Eric Fournier
Java and Web Services
University of Minnesota Office of Information Technology
190 Shepherd Labs

***@umn.edu
Eric Fournier
2006-01-20 04:30:47 UTC
Permalink
Ah, okay Bert;

The same image returns:

'Squeak3.8 of ''5 May 2005'' [latest update: #6665] Squeak VM
3.8.8b14'

...when run against the standalone VM (thoughtfully included with the
Squeakland package). Looks like the report of the VM version gets
boggled in the browser plugin. I just hacked
CMacOSPlatform>>macVirtualKeycodes to return true since we are using
modern VMs here. Solved the problem.

I owe you a beer!

--Eric
Post by Eric Fournier
Post by Bert Freudenberg
Post by Fournier Eric
I'm successfully running Tweak now in a browser window via the
NPSqueak plugin. Everything runs bug-equivalent (so far) with the
standalone version with the exception of...
Several keys are mapped oddly from the keyboard when in the Tweak
environment. s,w,h,b, the return key, some others(?) are being
paired with control characters only in Tweak, only in browser. I
can run same image standalone and have no troubles.
The plugin is v3.5.3C1, and we are using much newer (assuming
that plugin version maps to VM version) standalone VMs (3.8.8b14,
3.8.9b7).
I scanned through the image looking for some 'I'm in a browser so
do this weird stuff with keystrokes' code, but found nothing.
Sounds like a keycode problem (see
CMacOSPlatform>>macVirtualKeycodes). What does "Smalltalk
vmVersion" say in the plugin?
'Squeak3.8 of ''5 May 2005'' [latest update: #6665] 1.5'
The Mac Finder's info on NPSqueakStubCFM is 3.5.1bC1;
NPSqueak.bundle is 3.8.8b7.
I mentioned the issue to one of the Croquet programmers (also
running Tweak), and he (Peter Moore) mentioned that he recalled
that we have seen this problem before (in standalone Squeak). He
thinks one of the other guys might have a workaround. I'll check
that out tommorrow.
Thanks.
--Eric
Post by Bert Freudenberg
- Bert -
_______________________________________________
Tweak mailing list
http://impara.de/mailman/listinfo/tweak
Eric Fournier
Java and Web Services
University of Minnesota Office of Information Technology
190 Shepherd Labs
_______________________________________________
Tweak mailing list
http://impara.de/mailman/listinfo/tweak
Eric Fournier
Java and Web Services
University of Minnesota Office of Information Technology
190 Shepherd Labs

***@umn.edu
Bert Freudenberg
2006-01-20 09:03:12 UTC
Permalink
Actually, the current macVirtualKeycodes method falls back on a
preference (we had the same problem in a custom VM):

macVirtualKeycodes
self majorMinorBuildFrom: Smalltalk vmVersion
satisfies: [:major :minor :build |
| ver |
ver := (minor * 100) + (major * 10000) + build.
^ver >= 30807].
"No parseable version number found. Preference defaults to false"
^Preferences macVirtualKeycodes

- Bert -
Post by Eric Fournier
Ah, okay Bert;
'Squeak3.8 of ''5 May 2005'' [latest update: #6665] Squeak VM
3.8.8b14'
...when run against the standalone VM (thoughtfully included with
the Squeakland package). Looks like the report of the VM version
gets boggled in the browser plugin. I just hacked
CMacOSPlatform>>macVirtualKeycodes to return true since we are
using modern VMs here. Solved the problem.
I owe you a beer!
--Eric
Post by Eric Fournier
Post by Bert Freudenberg
Post by Fournier Eric
I'm successfully running Tweak now in a browser window via the
NPSqueak plugin. Everything runs bug-equivalent (so far) with
the standalone version with the exception of...
Several keys are mapped oddly from the keyboard when in the
Tweak environment. s,w,h,b, the return key, some others(?) are
being paired with control characters only in Tweak, only in
browser. I can run same image standalone and have no troubles.
The plugin is v3.5.3C1, and we are using much newer (assuming
that plugin version maps to VM version) standalone VMs
(3.8.8b14, 3.8.9b7).
I scanned through the image looking for some 'I'm in a browser
so do this weird stuff with keystrokes' code, but found nothing.
Sounds like a keycode problem (see
CMacOSPlatform>>macVirtualKeycodes). What does "Smalltalk
vmVersion" say in the plugin?
'Squeak3.8 of ''5 May 2005'' [latest update: #6665] 1.5'
The Mac Finder's info on NPSqueakStubCFM is 3.5.1bC1;
NPSqueak.bundle is 3.8.8b7.
I mentioned the issue to one of the Croquet programmers (also
running Tweak), and he (Peter Moore) mentioned that he recalled
that we have seen this problem before (in standalone Squeak). He
thinks one of the other guys might have a workaround. I'll check
that out tommorrow.
Thanks.
--Eric
Post by Bert Freudenberg
- Bert -
_______________________________________________
Tweak mailing list
http://impara.de/mailman/listinfo/tweak
Eric Fournier
Java and Web Services
University of Minnesota Office of Information Technology
190 Shepherd Labs
_______________________________________________
Tweak mailing list
http://impara.de/mailman/listinfo/tweak
Eric Fournier
Java and Web Services
University of Minnesota Office of Information Technology
190 Shepherd Labs
_______________________________________________
Tweak mailing list
http://impara.de/mailman/listinfo/tweak
Eric Fournier
2006-01-23 05:00:26 UTC
Permalink
Right, but setting the preference to the default I want is of no help
because the version number returned by Smalltalk>>vmVersion, while
incorrect, is parse-able, and so the preference never gets answered.
I think the NPSqueak plugin version of the VM should return the VM
version it is based on, but it doesn't. With my updated version of
the plugin, I still get:

'Squeak3.8 of ''5 May 2005'' [latest update: #6665] 2.0.3'

...even though the Mac Finder info suggests the plugin is based on
3.8.8b7. '2.0.3' means something to John, I bet ;-)

-- Eric
Post by Bert Freudenberg
Actually, the current macVirtualKeycodes method falls back on a
macVirtualKeycodes
self majorMinorBuildFrom: Smalltalk vmVersion
satisfies: [:major :minor :build |
| ver |
ver := (minor * 100) + (major * 10000) + build.
^ver >= 30807].
"No parseable version number found. Preference defaults to false"
^Preferences macVirtualKeycodes
- Bert -
Post by Eric Fournier
Ah, okay Bert;
'Squeak3.8 of ''5 May 2005'' [latest update: #6665] Squeak VM
3.8.8b14'
...when run against the standalone VM (thoughtfully included with
the Squeakland package). Looks like the report of the VM version
gets boggled in the browser plugin. I just hacked
CMacOSPlatform>>macVirtualKeycodes to return true since we are
using modern VMs here. Solved the problem.
I owe you a beer!
--Eric
Post by Eric Fournier
Post by Bert Freudenberg
Post by Fournier Eric
I'm successfully running Tweak now in a browser window via the
NPSqueak plugin. Everything runs bug-equivalent (so far) with
the standalone version with the exception of...
Several keys are mapped oddly from the keyboard when in the
Tweak environment. s,w,h,b, the return key, some others(?) are
being paired with control characters only in Tweak, only in
browser. I can run same image standalone and have no troubles.
The plugin is v3.5.3C1, and we are using much newer (assuming
that plugin version maps to VM version) standalone VMs
(3.8.8b14, 3.8.9b7).
I scanned through the image looking for some 'I'm in a browser
so do this weird stuff with keystrokes' code, but found nothing.
Sounds like a keycode problem (see
CMacOSPlatform>>macVirtualKeycodes). What does "Smalltalk
vmVersion" say in the plugin?
'Squeak3.8 of ''5 May 2005'' [latest update: #6665] 1.5'
The Mac Finder's info on NPSqueakStubCFM is 3.5.1bC1;
NPSqueak.bundle is 3.8.8b7.
--Eric
Eric Fournier
Java and Web Services
University of Minnesota Office of Information Technology
190 Shepherd Labs

***@umn.edu
John M McIntosh
2006-01-23 06:50:00 UTC
Permalink
sure it does, it means 2.0.3 is a bug
See it's returning the version of Safari versus the version of the
squeak plugin bundle.
Sigh.

Not sure you can get version number, however can you tell if you are
running the browser plugin VM?
GetAttributeString with a negative number gets emed parms btw.
It's likely we'll need to look at usage of Smalltalk vmVersion and
consider the impact of this bug.
Post by Eric Fournier
Right, but setting the preference to the default I want is of no
help because the version number returned by Smalltalk>>vmVersion,
while incorrect, is parse-able, and so the preference never gets
answered. I think the NPSqueak plugin version of the VM should
return the VM version it is based on, but it doesn't. With my
'Squeak3.8 of ''5 May 2005'' [latest update: #6665] 2.0.3'
...even though the Mac Finder info suggests the plugin is based on
3.8.8b7. '2.0.3' means something to John, I bet ;-)
-- Eric
Post by Bert Freudenberg
Actually, the current macVirtualKeycodes method falls back on a
macVirtualKeycodes
self majorMinorBuildFrom: Smalltalk vmVersion
satisfies: [:major :minor :build |
| ver |
ver := (minor * 100) + (major * 10000) + build.
^ver >= 30807].
"No parseable version number found. Preference defaults to false"
^Preferences macVirtualKeycodes
- Bert -
Post by Eric Fournier
Ah, okay Bert;
'Squeak3.8 of ''5 May 2005'' [latest update: #6665] Squeak VM
3.8.8b14'
...when run against the standalone VM (thoughtfully included with
the Squeakland package). Looks like the report of the VM version
gets boggled in the browser plugin. I just hacked
CMacOSPlatform>>macVirtualKeycodes to return true since we are
using modern VMs here. Solved the problem.
I owe you a beer!
--Eric
Post by Eric Fournier
Post by Bert Freudenberg
Post by Fournier Eric
I'm successfully running Tweak now in a browser window via the
NPSqueak plugin. Everything runs bug-equivalent (so far) with
the standalone version with the exception of...
Several keys are mapped oddly from the keyboard when in the
Tweak environment. s,w,h,b, the return key, some others(?) are
being paired with control characters only in Tweak, only in
browser. I can run same image standalone and have no troubles.
The plugin is v3.5.3C1, and we are using much newer (assuming
that plugin version maps to VM version) standalone VMs
(3.8.8b14, 3.8.9b7).
I scanned through the image looking for some 'I'm in a browser
so do this weird stuff with keystrokes' code, but found nothing.
Sounds like a keycode problem (see
CMacOSPlatform>>macVirtualKeycodes). What does "Smalltalk
vmVersion" say in the plugin?
'Squeak3.8 of ''5 May 2005'' [latest update: #6665] 1.5'
The Mac Finder's info on NPSqueakStubCFM is 3.5.1bC1;
NPSqueak.bundle is 3.8.8b7.
--Eric
Eric Fournier
Java and Web Services
University of Minnesota Office of Information Technology
190 Shepherd Labs
--
========================================================================
===
John M. McIntosh <***@smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
========================================================================
===

Loading...