The code assumes that parentView is set before >>#initialize is
called and this assumption was broken by the change. In the long run it might be best to call this routine >>#initializeView and or integrate the setting of the parent view. The patch changes the base class to restore the old behavior for creation. Call >>#initialize on the Workspace so that the variableNames tracker is properly initialized. Remove one unneeded call for the STInST module. 2016-01-23 Holger Hans Peter Freyther <[hidden email]> * BrowShell.st: Call >>#initialize. * DebugSupport.st: Do not call >>#initialize. * View.st: Use >>#basicNew to instantiate. 2016-01-23 Holger Hans Peter Freyther <[hidden email]> * BloxBasic.st: Use >>#basicNew to create Gui items. --- packages/blox/browser/BrowShell.st | 1 + packages/blox/browser/ChangeLog | 6 ++++++ packages/blox/browser/DebugSupport.st | 1 - packages/blox/browser/View.st | 2 +- packages/blox/gtk/BloxBasic.st | 4 ++++ packages/blox/gtk/ChangeLog | 4 ++++ packages/blox/tk/BloxBasic.st | 4 ++++ packages/blox/tk/ChangeLog | 4 ++++ 8 files changed, 24 insertions(+), 2 deletions(-) diff --git a/packages/blox/browser/BrowShell.st b/packages/blox/browser/BrowShell.st index 3ecba63..4d233cb 100644 --- a/packages/blox/browser/BrowShell.st +++ b/packages/blox/browser/BrowShell.st @@ -84,6 +84,7 @@ TopLevelShell subclass: BrowserShell [ | worksheet textView | worksheet := self new: label. worksheet addChildView: ((textView := PWorksheetText new: worksheet) + initialize; menuInit: ((PopupMenu new: textView label: 'Edit') selectors: #(#('Cut' #gstCut) #('Copy' #gstCopy) #('Paste' #gstPaste) #() #('Clear' #gstClear) #() #('Line...' #line) #('Find...' #find) #() #('Do it' #eval) #('Print it' #evalAndPrintResult) #('Inspect' #evalAndInspectResult) #() #('Senders' #senders) #('Implementors' #implementors)) receiver: textView diff --git a/packages/blox/browser/ChangeLog b/packages/blox/browser/ChangeLog index a112b85..5e77045 100644 --- a/packages/blox/browser/ChangeLog +++ b/packages/blox/browser/ChangeLog @@ -1,3 +1,9 @@ +2016-01-23 Holger Hans Peter Freyther <[hidden email]> + + * BrowShell.st: Call >>#initialize. + * DebugSupport.st: Do not call >>#initialize. + * View.st: Use >>#basicNew to instantiate. + 2014-07-26 Holger Hans Peter Freyther <[hidden email]> * PText.st: Remove PWorksheetText class >> #new. diff --git a/packages/blox/browser/DebugSupport.st b/packages/blox/browser/DebugSupport.st index 4c10518..9292195 100644 --- a/packages/blox/browser/DebugSupport.st +++ b/packages/blox/browser/DebugSupport.st @@ -46,7 +46,6 @@ STInST.STInST.RBProgramNodeVisitor subclass: VariableNames [ <category: 'visiting RBSequenceNodes'> ^(self new) - initialize; visitNode: (method parserClass parseMethod: method methodSourceString); varNames ] diff --git a/packages/blox/browser/View.st b/packages/blox/browser/View.st index 527651b..b1470b7 100644 --- a/packages/blox/browser/View.st +++ b/packages/blox/browser/View.st @@ -39,7 +39,7 @@ BLOX.Gui subclass: View [ View class >> new: aString in: view [ <category: 'instance creation'> | aView | - aView := self new. + aView := self basicNew. aView parentView: view. ^aView ] diff --git a/packages/blox/gtk/BloxBasic.st b/packages/blox/gtk/BloxBasic.st index 2d70bf6..fea2004 100644 --- a/packages/blox/gtk/BloxBasic.st +++ b/packages/blox/gtk/BloxBasic.st @@ -39,6 +39,10 @@ Object subclass: Gui [ expose an individual protocol but internally use a Blox widget for creating their user interface.'> + Gui class >> new [ + ^self basicNew + ] + blox [ "Return instance of blox subclass which implements window" diff --git a/packages/blox/gtk/ChangeLog b/packages/blox/gtk/ChangeLog index 2aa7335..b956cb9 100644 --- a/packages/blox/gtk/ChangeLog +++ b/packages/blox/gtk/ChangeLog @@ -1,3 +1,7 @@ +2016-01-23 Holger Hans Peter Freyther <[hidden email]> + + * BloxBasic.st: Use >>#basicNew to create Gui items. + 2014-07-26 Holger Hans Peter Freyther <[hidden email]> * BloxText.st: Remove BTextBindings class >> #new. diff --git a/packages/blox/tk/BloxBasic.st b/packages/blox/tk/BloxBasic.st index 9fcd373..5e78032 100644 --- a/packages/blox/tk/BloxBasic.st +++ b/packages/blox/tk/BloxBasic.st @@ -39,6 +39,10 @@ Object subclass: Gui [ expose an individual protocol but internally use a Blox widget for creating their user interface.'> + Gui class >> new [ + ^self basicNew + ] + blox [ "Return instance of blox subclass which implements window" diff --git a/packages/blox/tk/ChangeLog b/packages/blox/tk/ChangeLog index 159b177..842550d 100644 --- a/packages/blox/tk/ChangeLog +++ b/packages/blox/tk/ChangeLog @@ -1,3 +1,7 @@ +2016-01-23 Holger Hans Peter Freyther <[hidden email]> + + * BloxBasic.st: Use >>#basicNew to create Gui items. + 2014-05-26 Holger Hans Peter Freyther <[hidden email]> * BloxTK.c: Use Tcl_GetStringResult to access the result. -- 2.6.3 _______________________________________________ help-smalltalk mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-smalltalk |
That's helped a lot. Blox starts up and is a useful browser, although
actually adding code thought it seems impossible at the moment. Although my C is stoneage and my Smalltalk is maybe iron-age, I would be happy to help in as much as I can, if I can. Thomas Holger Hans Peter Freyther writes: > The code assumes that parentView is set before >>#initialize is > called and this assumption was broken by the change. In the long > run it might be best to call this routine >>#initializeView and > or integrate the setting of the parent view. The patch changes > the base class to restore the old behavior for creation. > > Call >>#initialize on the Workspace so that the variableNames > tracker is properly initialized. Remove one unneeded call for > the STInST module. > > 2016-01-23 Holger Hans Peter Freyther <[hidden email]> > > * BrowShell.st: Call >>#initialize. > * DebugSupport.st: Do not call >>#initialize. > * View.st: Use >>#basicNew to instantiate. > > 2016-01-23 Holger Hans Peter Freyther <[hidden email]> > > * BloxBasic.st: Use >>#basicNew to create Gui items. > --- > packages/blox/browser/BrowShell.st | 1 + > packages/blox/browser/ChangeLog | 6 ++++++ > packages/blox/browser/DebugSupport.st | 1 - > packages/blox/browser/View.st | 2 +- > packages/blox/gtk/BloxBasic.st | 4 ++++ > packages/blox/gtk/ChangeLog | 4 ++++ > packages/blox/tk/BloxBasic.st | 4 ++++ > packages/blox/tk/ChangeLog | 4 ++++ > 8 files changed, 24 insertions(+), 2 deletions(-) > > diff --git a/packages/blox/browser/BrowShell.st b/packages/blox/browser/BrowShell.st > index 3ecba63..4d233cb 100644 > --- a/packages/blox/browser/BrowShell.st > +++ b/packages/blox/browser/BrowShell.st > @@ -84,6 +84,7 @@ TopLevelShell subclass: BrowserShell [ > | worksheet textView | > worksheet := self new: label. > worksheet addChildView: ((textView := PWorksheetText new: worksheet) > + initialize; > menuInit: ((PopupMenu new: textView label: 'Edit') > selectors: #(#('Cut' #gstCut) #('Copy' #gstCopy) #('Paste' #gstPaste) #() #('Clear' #gstClear) #() #('Line...' #line) #('Find...' #find) #() #('Do it' #eval) #('Print it' #evalAndPrintResult) #('Inspect' #evalAndInspectResult) #() #('Senders' #senders) #('Implementors' #implementors)) > receiver: textView > diff --git a/packages/blox/browser/ChangeLog b/packages/blox/browser/ChangeLog > index a112b85..5e77045 100644 > --- a/packages/blox/browser/ChangeLog > +++ b/packages/blox/browser/ChangeLog > @@ -1,3 +1,9 @@ > +2016-01-23 Holger Hans Peter Freyther <[hidden email]> > + > + * BrowShell.st: Call >>#initialize. > + * DebugSupport.st: Do not call >>#initialize. > + * View.st: Use >>#basicNew to instantiate. > + > 2014-07-26 Holger Hans Peter Freyther <[hidden email]> > > * PText.st: Remove PWorksheetText class >> #new. > diff --git a/packages/blox/browser/DebugSupport.st b/packages/blox/browser/DebugSupport.st > index 4c10518..9292195 100644 > --- a/packages/blox/browser/DebugSupport.st > +++ b/packages/blox/browser/DebugSupport.st > @@ -46,7 +46,6 @@ STInST.STInST.RBProgramNodeVisitor subclass: VariableNames [ > > <category: 'visiting RBSequenceNodes'> > ^(self new) > - initialize; > visitNode: (method parserClass parseMethod: method methodSourceString); > varNames > ] > diff --git a/packages/blox/browser/View.st b/packages/blox/browser/View.st > index 527651b..b1470b7 100644 > --- a/packages/blox/browser/View.st > +++ b/packages/blox/browser/View.st > @@ -39,7 +39,7 @@ BLOX.Gui subclass: View [ > View class >> new: aString in: view [ > <category: 'instance creation'> > | aView | > - aView := self new. > + aView := self basicNew. > aView parentView: view. > ^aView > ] > diff --git a/packages/blox/gtk/BloxBasic.st b/packages/blox/gtk/BloxBasic.st > index 2d70bf6..fea2004 100644 > --- a/packages/blox/gtk/BloxBasic.st > +++ b/packages/blox/gtk/BloxBasic.st > @@ -39,6 +39,10 @@ Object subclass: Gui [ > expose an individual protocol but internally use a Blox widget for > creating their user interface.'> > > + Gui class >> new [ > + ^self basicNew > + ] > + > blox [ > "Return instance of blox subclass which implements window" > > diff --git a/packages/blox/gtk/ChangeLog b/packages/blox/gtk/ChangeLog > index 2aa7335..b956cb9 100644 > --- a/packages/blox/gtk/ChangeLog > +++ b/packages/blox/gtk/ChangeLog > @@ -1,3 +1,7 @@ > +2016-01-23 Holger Hans Peter Freyther <[hidden email]> > + > + * BloxBasic.st: Use >>#basicNew to create Gui items. > + > 2014-07-26 Holger Hans Peter Freyther <[hidden email]> > > * BloxText.st: Remove BTextBindings class >> #new. > diff --git a/packages/blox/tk/BloxBasic.st b/packages/blox/tk/BloxBasic.st > index 9fcd373..5e78032 100644 > --- a/packages/blox/tk/BloxBasic.st > +++ b/packages/blox/tk/BloxBasic.st > @@ -39,6 +39,10 @@ Object subclass: Gui [ > expose an individual protocol but internally use a Blox widget for > creating their user interface.'> > > + Gui class >> new [ > + ^self basicNew > + ] > + > blox [ > "Return instance of blox subclass which implements window" > > diff --git a/packages/blox/tk/ChangeLog b/packages/blox/tk/ChangeLog > index 159b177..842550d 100644 > --- a/packages/blox/tk/ChangeLog > +++ b/packages/blox/tk/ChangeLog > @@ -1,3 +1,7 @@ > +2016-01-23 Holger Hans Peter Freyther <[hidden email]> > + > + * BloxBasic.st: Use >>#basicNew to create Gui items. > + > 2014-05-26 Holger Hans Peter Freyther <[hidden email]> > > * BloxTK.c: Use Tcl_GetStringResult to access the result. -- Sent with my mu4e _______________________________________________ help-smalltalk mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-smalltalk |
> On 24 Jan 2016, at 17:16, [hidden email] wrote: > > That's helped a lot. Blox starts up and is a useful browser, although > actually adding code thought it seems impossible at the moment. Oh. does it give another routine? I had fixed one blox issue of the workspace from within blox itself. Which function is broken? > Although my C is stoneage and my Smalltalk is maybe iron-age, I would be > happy to help in as much as I can, if I can. For gst-browser it has known bugs/integration issues (and it made me stall the release of version 3.3) but it should start. If you could tell me where (architecture, distribution) you try to run it would be a good start. holger _______________________________________________ help-smalltalk mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-smalltalk |
Holger Freyther writes: >> On 24 Jan 2016, at 17:16, [hidden email] wrote: >> >> That's helped a lot. Blox starts up and is a useful browser, although >> actually adding code thought it seems impossible at the moment. > > Oh. does it give another routine? I had fixed one blox issue of the workspace > from within blox itself. Which function is broken? It's not that there is a broken function, just that there's no obvious way to create methods. There's an "add" option for classes but I'm not seeing any way to add a method. If I try editing in the lower pane and "Accept" it asks me if I want to discard my changes and when I say "no" it puts me back to editing mode again but doesn't seem to actually make any changes. > >> Although my C is stoneage and my Smalltalk is maybe iron-age, I would be >> happy to help in as much as I can, if I can. > > For gst-browser it has known bugs/integration issues (and it made me stall > the release of version 3.3) but it should start. If you could tell me where > (architecture, distribution) you try to run it would be a good start. I'm on Gentoo Linux AMD FX(tm)-4100 x86_64 with gcc 4.8.5 make is issuing: gcc -DHAVE_CONFIG_H -I. -I./libgst -I./lib-src -DCMD_XZIP="\"/usr/bin/zip\"" -DCMD_INSTALL="\"/usr/bin/install -c\"" -DCMD_LN_S="\"ln -s\"" -DDEFAULT_EXECUTABLE=\""/usr/local/bin/gst"\" -g -O2 -Wall -Wdeclaration-after-statement -Wno-format -Wpointer-arith -Wno-pointer-sign -Wno-switch -Wwrite-strings -Wno-strict-aliasing -fno-gcse -fstrict-aliasing -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c which seems pretty vanilla to me. Thomas -- Sent with my mu4e _______________________________________________ help-smalltalk mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-smalltalk |
> On 24 Jan 2016, at 22:09, [hidden email] wrote: > > > > It's not that there is a broken function, just that there's no obvious > way to create methods. There's an "add" option for classes but I'm not > seeing any way to add a method. If I try editing in the lower pane and > "Accept" it asks me if I want to discard my changes and when I say "no" > it puts me back to editing mode again but doesn't seem to actually make > any changes. If you select any "category" it gives you a dummy method you can alter and then use "Accept" to save it. The issue I see is that the template they provide is not correct syntax. method: selectors and: arguments "Comment describing purpose and answered value." | temporary variables | statements should be (the brackets): method: selectors and: arguments [ "Comment describing purpose and answered value." | temporary variables | statements ] that is the "new" fileout syntax of GNU Smalltalk. Would you like to try to fix that, create a GNU changelog and use git format-patch to send the patch? > I'm on Gentoo Linux AMD FX(tm)-4100 x86_64 with gcc 4.8.5 > > make is issuing: > > gcc -DHAVE_CONFIG_H -I. -I./libgst -I./lib-src -DCMD_XZIP="\"/usr/bin/zip\"" -DCMD_INSTALL="\"/usr/bin/install -c\"" -DCMD_LN_S="\"ln -s\"" -DDEFAULT_EXECUTABLE=\""/usr/local/bin/gst"\" -g -O2 -Wall -Wdeclaration-after-statement -Wno-format -Wpointer-arith -Wno-pointer-sign -Wno-switch -Wwrite-strings -Wno-strict-aliasing -fno-gcse -fstrict-aliasing -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c Any special gentoo release or flags? Is gtk-2.0 installed? _______________________________________________ help-smalltalk mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-smalltalk |
> If you select any "category" it gives you a dummy method you can alter
> and then use "Accept" to save it. The issue I see is that the template > they provide is not correct syntax. > > method: selectors and: arguments > "Comment describing purpose and answered value." > | temporary variables | > statements > > > should be (the brackets): > > method: selectors and: arguments [ > "Comment describing purpose and answered value." > | temporary variables | > statements > ] > > > that is the "new" fileout syntax of GNU Smalltalk. Would you like to > try to fix that, create a GNU changelog and use git format-patch to send > the patch? I'll give it a go. > >q >> I'm on Gentoo Linux AMD FX(tm)-4100 x86_64 with gcc 4.8.5 >> >> make is issuing: >> >> gcc -DHAVE_CONFIG_H -I. -I./libgst -I./lib-src -DCMD_XZIP="\"/usr/bin/zip\"" -DCMD_INSTALL="\"/usr/bin/install -c\"" -DCMD_LN_S="\"ln -s\"" -DDEFAULT_EXECUTABLE=\""/usr/local/bin/gst"\" -g -O2 -Wall -Wdeclaration-after-statement -Wno-format -Wpointer-arith -Wno-pointer-sign -Wno-switch -Wwrite-strings -Wno-strict-aliasing -fno-gcse -fstrict-aliasing -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c > > > Any special gentoo release or flags? Is gtk-2.0 installed? Well, what constitutes a "special" Gentoo flag is pretty subjective but I don't think so. I have gtk 2.24.28 installed as well as 3.16.7. Both have the introspection and cups flags set but that's all. Thomas _______________________________________________ > help-smalltalk mailing list > [hidden email] > https://lists.gnu.org/mailman/listinfo/help-smalltalk -- Sent with my mu4e _______________________________________________ help-smalltalk mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-smalltalk |
In reply to this post by Holger Freyther
Holger Freyther writes: > If you select any "category" it gives you a dummy method you can alter > and then use "Accept" to save it. The issue I see is that the template > they provide is not correct syntax. > > method: selectors and: arguments > "Comment describing purpose and answered value." > | temporary variables | > statements > > > should be (the brackets): > > method: selectors and: arguments [ > "Comment describing purpose and answered value." > | temporary variables | > statements > ] > > > that is the "new" fileout syntax of GNU Smalltalk. Would you like to > try to fix that, create a GNU changelog and use git format-patch to send > the patch? > I've created a patch with just this mod, not including your previous patch and it seems to work. Hopefully this is the correct format: --- packages/blox/browser/ChangeLog | 7 +++++++ packages/blox/browser/ClassHierBrow.st | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/blox/browser/ChangeLog b/packages/blox/browser/ChangeLog index 5e77045..1107fa6 100644 --- a/packages/blox/browser/ChangeLog +++ b/packages/blox/browser/ChangeLog @@ -1,3 +1,10 @@ + +2016-01-25 Thomas Weir Worthington <[hidden email]> + + * ClassHierBrow.st: updated method template to new + syntax + + 2016-01-23 Holger Hans Peter Freyther <[hidden email]> * BrowShell.st: Call >>#initialize. diff --git a/packages/blox/browser/ClassHierBrow.st b/packages/blox/browser/ClassHierBrow.st index 93799d4..9d02c74 100644 --- a/packages/blox/browser/ClassHierBrow.st +++ b/packages/blox/browser/ClassHierBrow.st @@ -212,11 +212,11 @@ GuiData subclass: ClassHierarchyBrowser [ "Return add method template" <category: 'accessing'> - ^'method: selectors and: arguments + ^'method: selectors and: arguments [ "Comment describing purpose and answered value." | temporary variables | statements -' +]' ] text [ -- 2.4.10 _______________________________________________ help-smalltalk mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-smalltalk |
> On 25 Jan 2016, at 22:48, [hidden email] wrote: > > I've created a patch with just this mod, not including your previous > patch and it seems to work. Hopefully this is the correct format: thanks applied and pushed. For some reason I had issues with taking it out of the mail directly and wonder if this was my mail client or yours? :) holger _______________________________________________ help-smalltalk mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-smalltalk |
I'm just using Emacs/mu4e for email so I'd be surprised if it did
anything odd to the text. What's the relationship between your git repo and the one on github: https://github.com/gnu-smalltalk/smalltalk ? Holger Freyther writes: >> On 25 Jan 2016, at 22:48, [hidden email] wrote: >> >> I've created a patch with just this mod, not including your previous >> patch and it seems to work. Hopefully this is the correct format: > > thanks applied and pushed. For some reason I had issues with taking it > out of the mail directly and wonder if this was my mail client or yours? :) > > holger > > _______________________________________________ > help-smalltalk mailing list > [hidden email] > https://lists.gnu.org/mailman/listinfo/help-smalltalk -- Sent with my mu4e _______________________________________________ help-smalltalk mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-smalltalk |
> On 28 Jan 2016, at 18:49, <[hidden email]> <[hidden email]> wrote: > > I'm just using Emacs/mu4e for email so I'd be surprised if it did > anything odd to the text. > > What's the relationship between your git repo and the one on github: > > https://github.com/gnu-smalltalk/smalltalk It is a mirror. Which means github will once a day fetch our primary repository and update its version. I am using it to benefit from the travis-ci integration. We are not using pull requests/issues of this repository. kind regards holger _______________________________________________ help-smalltalk mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-smalltalk |
Free forum by Nabble | Edit this page |