Amazing, it looks like XOTclIDE (also Smalltalk like IDE but based on XOTcl).Shin The Gin - Yes! I like XOTclIDE a lot. But TclTalk is more targeted to the novice and/or teacher of Tcl/Tk, and therefore I prefer to stay procedural for now. The only OO-alike encapsulation of code with TclTalk is done with namespaces and commands/subcommands, which should be all right for novices and small projects.Artur Trzewik - XOTclIDE seems to be, for most users, total overkill for an application. So it might be indeed a good idea to have a small nice GUI to play with the interpreter. Also Tkinspect and tkcon offers some functionality of this kind, but Smalltalk is indeed the best model. Why simulate a 70's like console if one has the text-widget?
Shin The Gin 2007-01-03 - Version 0.2.2 is online now. It contains only bug fixes and the [nsb] package at version 0.3Shin The Gin 2007-01-04 - Version 0.2.3 is out. The system browser's title bar is more informative and some bug fixes.Shin The Gin 2007-01-06 - TclTalk is at version 0.2.4 now. Better logging of changes. Better creation of new namespace variables and procedures using the system browser. Package creation now asks for a target directory and has better variable initialization support (see ::nsb::initializeNamespace). The menubar in a tutorial window is gone. Some bug fixes and a little intro.escargo 11 Jan 2007 - I just downloaded and tried to run the 0.2.4 kit. It was very strange. When I tried to select it on my XP Pro desktop, it became unselected. It would not accept being clicked on to become selected. If I used Windows Task Manager to switch to it, it became highlighted. When I tried typing to it, it was unresponsive. I had to use the Task Manager End Task button to kill it.Shin The Gin 2007-01-12 - Oops, I shouldn't have put the about box before the start of the program. It seems that it's just not visible on your screen but has the focus. Please be patient. Version 0.3 is underway. It will also handle the tree structured namespaces better when creating packages, is more informative in the "System Transcript" and will present an early version of a "Project Manager". Also the namespaces that make up TclTalk will be reorganized as a tree like:
::tcltalk ::tcltalk::nsb ::tcltalk::prj ::tcltalk::prj::mgr ::tcltalk::wsI don't have a Microsoft license to test TclTalk against MS-Windows. Maybe someone likes to cooperate on this?
Shin The Gin 2007-01-13 - Ok, let's enter level 0.3 with version 0.3a. I haven't done any testing on MS-Windows yet but it runs at least on Ubuntu-6.06LTS, SLAX 5.1.8 and Debian (testing). TclTalk is now able to create new functional starkits when it finds your sdx binary. This mechanism is called Turnkey deployment. TclTalk simply replaces its startup code with yours and spawns a copy of itself to disk. Give it a try!You'll always find the latest version at http://eris.dyndns.info/files/
AET 15jan06 - Still a problem starting on Windows XP. Workaround:
Start the .kit Click on another application window (focus goes away from TclTalk) Click back on TclTab (focus disappears from everywhere!) Alt-Tab & hold down the Alt key. You should see an unknown application (DOS-style icon) next to the Tk Icon of TclTab in the dialog. Still holding down the Alt key, press Shift-Tab. Nothing seems to change, but the focus now moves to the invisible window. Alt-F4 to kill that window. A Tk toplevel appears. Ignore it, and you're in business.
escargo 14 Jan 2007 - One bit of help that I need is an answer to a basic question. If I create a snippet of code, and then select "Do It", what do I have to do to make my code produce output in the Transcript?Back in version 0.2.3 (the last one where focus on Windows XP worked the right way), I tried setting variables and printing their values, but I never got it to do something that I understood. The "Do It" feature reminds me of Squeak Smalltalk (which is surely intentional). But I was unclear about what state the workspace was in and was never really happy about saving it.Shin The Gin 2007-01-15 - Hi, please try version 0.3c from http://eris.dyndns.info/files/old/tcltalk-0.3c.kit !TclTalk starts as follows
- Load packages
- Load the change log
- Request your initials
- Open the system transcript
escargo 16 Jan 2007 - In the .03e version, I can reproduce the following problem.
- Start the program
- Provide initials
- Go to the System Transcript and open a System Browser
- Go to the System Browser menu and select File, and then Open..
- An error dialogue appears:
bad option "edit": must be cget or configure bad option "edit": must be cget or configure while executing "$w edit modified" (procedure "::tcltalk::ws::canClose" line 2) invoked from within "::tcltalk::ws::canClose $w" (procedure "::tcltalk::ws::openFile" line 2) invoked from within "::tcltalk::ws::openFile [focus]" (menu invoke)STG: Oh yes, I found it!In terms of usability, I'm not exactly sure what opening a file in the transcript or system browser is supposed to do.STG: Well, to me it seems useful to open a file in a system browser, copy some text, click on a procedure to be shown and insert the copy buffer. I use it to copy from the change log back into the system. I know this spoils the proposed work flow. I need to rework "File->new" and "File->Open...", so that "File->Open..." always creates a new window.escargo - I guess because I see the System Browser being used for introspection of the system, opening a file from its file menu makes less sense to me than opening a file in the Transcript (where I expect it to be available for editing). In general, I would expect System Browser file commands to relate to the system (as a whole). Certainly you want to be able to open a file (for editing or to copy and paste), but that to me makes more sense to do in a separate window.)
When I open the system browser on OS X the scrollbar and window oscillate until I resize the window.
TclTalk 0.3e running on Tcl/Tk version 8.4.10JBRSTG - Thank You All For Testing!!!@JBR: I don't really see a reason for this, but I changed the Browser's appearing to set a reasonable width and height after its creation. So I hope to simulate, what you where doing by resizing.@escargo: I could try to give up on using only one instance of a system menu. My idea was to have one always present system menu in every window and put the special functions into the context menus of each subwindow, accessible on mouse button 3. Is it not portable to systems other then X11? Does the MacMouse still have only one button? I know common wheel mice come with 3 buttons.Shin The Gin 2007-01-16 - Version 0.3 is done.Shin The Gin 2007-01-24 - Give version 0.3.2 a try! The backup of changes is managed now. Selecting a namespace variable filters the shown procedures in the browser now. Some bugs were fixed and there shouldn't be any new ones :)Shin The Gin 2007-01-24 - I'm at 0.3.4 now.Version 0.3.4 is a streamline of the concept and now supports multiple browsers. Browsers can now collect references of a selected procedure and show them in a references browser.Please visit: http://eris.dyndns.info/escargo 8 Feb 2007 - I found the newer 0.3.4.1 version on the web site. I downloaded it, and gave it a little test drive. See if you see this behavior:
- Start TclTalk.
- Provide initials.
- Open a browser.
- Click on the ::tcltalk::ws namespace entry in the first window.
- Click on the wsActiveWConfig entry in the second window (populated after clicking on the namespace).
- See an error dialog box.
- Read the contents of the log file created from the dialog box.
can't set "::tcltalk::browser::CURRVAR(.brw_1170948608)": can't read "cv": no such variable can't set "::tcltalk::browser::CURRVAR(.brw_1170948608)": can't read "cv": no such variable while executing "set ::tcltalk::browser::CURRVAR(.brw_1170948608) [.brw_1170948608.space.top.vars get [.brw_1170948608.space.top.vars nearest 22]]" (command bound to event)STG 2007-02-08@escargo: I know about this problem. The selected variable is only declared but never initialized. You'll get the same erroneous result if you select the variable ::tcltalk::ws::wsThemesMenu (a relick from my tests using tile).If you "Do it"
set ::tcltalk::ws::wsActiveWConfig 0Then that error will be gone. I have no idea how to test the contents of an uninitialized variable in Tcl. Any suggestions? - RS 2007-02-09: See info existsSTG - Oh yes! Thanx. I'll release 0.3.4.3 A.S.A.P - 0.3.5 will support simple syntax highlighting :)rgf 2007-02-08 I downloaded version 0.3.4.1 and tried it with a linux tclkit (8.4.4). When I tried "::tcltalk::nsb::create" 'DoIt' (second window of tutorial) I received the message 'Error: invalid command name ::tcltalk::nsb::create' ... any suggestions as to what I'm doing wrong? Thanks!STG 2007-02-08 - Oops - I have to update the tutorial files to reflect the latest changes. TclTalk can open multiple browsers now, so the equivalent code should read:
::tcltalk::browser::create .browser[clock seconds]You better get version 0.3.4.2 available now :). It also corrects the fault of giving a wrong command representation of variables that contain lists. They had no surrounding brackets.PS: If you like the starsync concept, you can test with your sdx executable:
sdx update -from http://tcltalk.ath.cx/sync tcltalk.kitShin The Gin 2007-02-09 - Hi, before releasing version 0.3.5 (with simple syntax emphasizer) I tried it on a machine running Windows-XP today and was shocked! - The windows file selection dialog cannot browse into the vfs of TclTalk! - I understand that Tcl/Tk uses Windows's system dialogs, but how can I circumvent this incompatibility? Please help...escargo - comp.lang.tcl, the vfs page, or the starkit page might be better places to get an answer to the question. Just what precisely is the file selection dialog supposed to be able to see that you think it should but it does not?STG - It's done, thanx. To navigate TclTalks vfs I had to use ::tk::dialog::file:: instead of tk_getOpenFile
LV 2007 Aug 29 Hey Shin, did you report this problem with tk_getOpenFile at the Tcl.sf.net bug report web site?STG: Hello Larry! Is it really a bug? I mean these two dialogs are quite different. I don't think that anybody can get the MS-Windows system dialog to do new things like browsing into alien file systems.LV I guess my thought was that it probably should be documented somewhere. Maybe a bug isn't the best approach - maybe update something here on the wiki reminding others of the gotcha.
Shin The Gin 2007-02-09 - You may now pick version 0.3.5 with a simple syntax emphasizer. It also navigates through TclTalk's vfs on windows now by using the scripted file selection dialog of Tcl/Tk (Ugly but functional).escargo 9 Feb 2007 - I found 0.3.5 version on the web site. I downloaded it, and gave it a little test drive. See if you see this behavior:
- Start TclTalk.
- Provide initials.
- Open a browser.
- Click on the ::tcltalk::ws namespace entry in the first window.
- Click on the wsEditMenu entry in the second window (populated after clicking on the namespace).
- See an error dialog box.
- Read the contents of the log file created from the dialog box.
can't set "::tcltalk::browser::CURRVAR(.brw_1171047120)": bad switch "-all": must be --, -backward, -count, -elide, -exact, -forward, -nocase, or -regexp can't set "::tcltalk::browser::CURRVAR(.brw_1171047120)": bad switch "-all": must be --, -backward, -count, -elide, -exact, -forward, -nocase, or -regexp while executing "set ::tcltalk::browser::CURRVAR(.brw_1171047120) [.brw_1171047120.space.top.vars get [.brw_1171047120.space.top.vars nearest 37]]" (command bound to event)STG It doesn't fail here. Please fetch a fresh copy, or send your copy to tb(at)eris.dyndns.infoescargo - I am operating in a Microsoft Windows environment (much as I would prefer otherwise).rgf 2007-02-12 I'm trying version 0.3.5; working my way through the tutorial to "Tutorial: 02 SystemBrowser" I perform the first select/DoIt and open a Browser. Any button 1 presses in the right two columns of the browser generates an error very similar to that reported by escargo. My OS is Redhat linux, and I'm using tclkit 8.4.4.STG - Ok, I found it. The option "-all" of the subcommand "search" of a text command (e.g. .txt search -all "myvar") didn't exist before Tcl/Tk v.8.5. I have to test against v.8.4 again. Sorry, that will go into 0.3.5.1 coming soon.Sarnold - What kind of license applies to this software?STG @sarnold: Hm.. - I haven't decided yet. I want to give something back to the open source community, without which I wouldn't be able to do so. So, up to now it's completely free as in "Freibier!". What kind of license would be appropriate? Any suggestions?escargo 16 Feb 2007 - Obvious choice would be the same license as used by Tcl itself.STG - Sounds reasonable. So that would be the GPL ?Short answer is no. There is no separate page for it, but it's discussed here: Licenses.STG - Phew - I'm a little confused. Does TclTalk make its source available with its browser or do I have to offer a full source tree to meet the conditions for OpenSource licenses?LV Tcl uses the so-called BSD license agreement. After reading the Licenses page, you can see there's nothing in there about source trees, etc. The BSD license says you can use (and distribute) Tcl however you wish. You can make money selling Tcl if you want. But you have to leave the original license attached to all the original files.Shin The Gin 2007-03-05 - Version 0.3.5.2 is available now. This was tested on both versions of Tcl/Tk, 8.4 and 8.5. I couldn't test on windows yet, but at least on Ubuntu 6.10 and SLAX 5.1.8.escargo 5 Mar 2007 - Both of the issues that I reported have been resolved. I'm running this on Windows XP SP2.STG - Yeahh... - There's also a little hidden thing in ::tcltalk::wconf::switchActive. "Do it" it with a boolean "true" and get a little configuration browser on <double-mouse-2> over a certain widget. It's meant to be a helper for interactive GUI scripting :)Shin The Gin 2007-03-15 - 0.3.6 is out! - There are two immediately visible changes. First, I switched to Ctext from George Peter Staplin and second, I included Richard Suchenwirth's Simple search and replace. A CHANGELOG can now be viewed from the about box and namespaces which were packaged using the browser are now loaded at startup time.rgf 12 Jun 2007: I tried the example using 'Create turnkey starkit...' but couldn't find the result (I assumed it would be a *.kit file in the same directory). Is this menu entry implemented yet? STG - Hello and thank you for your interest. This sounds as if you are running TclTalk on Windows. What does the command pwd in TclTalk tell you where you are? Please look there. Oh, and Please make sure, that TclTalk can call your copy of sdx.exe. Maybe you have to adjust your PATH.rgf: I'm running TclTalk 0.3.6.1 with (tclkit) tcltk version 8.4.4 on linux. Executing "puts [pwd]" returns the directory I started tcltalk in, which also contains a copy of sdx.kit but the current directory ("./") is not in my path. I wasn't aware tcltalk required an external copy of sdx. - STG - Well, I allready tried to decompose the sdx utility, so I can use it from within Tcl/Tk, but failed. I dream of a procedure like ::sdx::wrap {source-dir kitname options}, so TclTalk could live without having the complete utility available.rgf 18 Jun 2007: I looked at the code for '::tcltalk::turnkey' and it appears you 'exec' sdx instead of sourcing it. Since my version of sdx is a kit I would usually 'source' it instead.Shin The Gin 2007-08-29 - Please give version 0.3.7 a try. It doesn't depend on external sdx.exe or sdx.kit anymore when creating turnkey starkits. See http://eris.dyndns.info/ ...