Re: [Pharo-dev] Debugger Button Positioning

2018-06-14 Thread Henrik-Nergaard
Hi, Moving the icons down to the middle row is as simple as changing: *** codeActionsPragmas ^ #( stackDebuggingActions codeDebuggingActions ) *** *** stackDebuggingActionsPragmas ^ #() *** in GTGenericStackDebugger. Best regards, Henrik -- Sent from:

Re: [Pharo-dev] fun with announcers

2018-05-08 Thread Henrik-Nergaard
Hi, >Announcer allInstances size. “7124" Remember that GT implements a lot of Announcer subclasses so to gain a better picture you should use: Announcer allSubInstances size. >clearly, that’s not good. >a symptom there is something leaking badly in our current development version. There has

Re: [Pharo-dev] [Pharo 7.0-dev] Build #510: 21246-Store-main-window-title

2018-02-08 Thread Henrik-Nergaard
Hi Marcus, You can add -p for this error to be ignored: man mkdir | grep -A 2 parents -p, --parents no error if existing, make parent directories as needed Best regards, Henrik -- Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html

Re: [Pharo-dev] Streaming over a UTF-8 encoded file using upToAll:

2017-12-30 Thread Henrik-Nergaard
Here is a fix. PositionableStream>>#upToAll: aCollection "Answer a subcollection from the current access position to the occurrence (if any, but not inclusive) of aCollection. If aCollection is not in the stream, answer the entire rest of the stream."

Re: [Pharo-dev] Streaming over a UTF-8 encoded file using upToAll:

2017-12-28 Thread Henrik-Nergaard
Hi, #upTo: works fine. 'test' asFileReference readStreamDo: [ :stream | stream converter: UTF8TextConverter new; upTo: $e ]. "'ß'" It looks like PositionableStream>>#upToAll: assumes a 1 to 1 map per item, and only takes the difference between current position up to the pattern when found.

Re: [Pharo-dev] Weird ZnClient benchmarking result

2017-12-10 Thread Henrik-Nergaard
Hi Sven, What you are seeing is most likely a $, vs $. issue. See BenchmarkResult >>#printFrequenceOn: it uses both decimal and thousand separators. If i run this code: - | counter | counter := ZnClient new in: [ :client | client loggingOff. [ client

Re: [Pharo-dev] Implementors of margins in GLMRubScrolledTextBrick

2017-12-09 Thread Henrik-Nergaard
>>GLMRubScrolledTextBrick>>withoutMargins uses self margins: but I cannot find the method. This is because it is implemented in RubScrollTextMorph. GLMRubScrolledTextBrick implements #doesNotUnderstand: to send it to the rubric object. see:

Re: [Pharo-dev] About Git support for windows

2017-09-10 Thread Henrik-Nergaard
>>Everyone who used filetree with metadata can tell it is super annoying and destroys the complete experience. There has been a fix for this on the issue tracker for some time: https://pharo.fogbugz.com/f/cases/20251/Write-out-filetree-metadata-in-order Best regards, Henrik -- Sent from:

Re: [Pharo-dev] About Git support for windows

2017-09-09 Thread Henrik Nergaard
>> but this is still WIP: for example timestamp needs to go to avoid conflicts. why/how would this cause conflicts versus other changes? Fra: Pharo-dev på vegne av Esteban Lorenzano Sendt: 9. september

Re: [Pharo-dev] [ Pharo 70 ] Build 83 PR 236 introduce-at-at-in-dictionary

2017-09-03 Thread Henrik Nergaard
The Link to 236 points to something else that is not #at:at: in https://github.com/pharo-project/pharo/commit/00f8cff298cf359b63cee4ab1c0a831829e2354a Why are new sub dictionaries instansiated as a normal Dictionary instead of species/class? I would expect a sub-Dictionary be of the same class

[Pharo-dev] No Metadata in 7.0

2017-07-09 Thread Henrik Nergaard
Hi, I had a look at the Pharo 7.0 today and see metadata for methods (Author and timestamp) has been removed*, what is the reason for this? Having the ability to find methods created around the same time and/or by author is quite useful when fixing bugs in the core libraries. There is also quite

Re: [Pharo-dev] Sources location inconsistency between WIndows and OSX

2017-06-28 Thread Henrik Nergaard
Are you sure you have the correct version of .sources?. It has allways been possible to have the .sources at the .exe (I have allways done it that way), (are you sure that the right vm is started, clicking on an image might launch a different vm if you have multiple). What is the output of

Re: [Pharo-dev] New and richer halt messages

2017-06-06 Thread Henrik Nergaard
A simple way of having a "onlyMe" type is to throw another type of error and wrap the code execution with an #on:do: catching and resuming Halt. Here is an example: --- | cls | cls := Halt subclass: #CustomHalt. cls class compile:

Re: [Pharo-dev] New and richer halt messages

2017-06-03 Thread Henrik Nergaard
Sounds like a good idea, but please implement them as constructors/class side methods in Halt instead of adding even more methods to Object. "self haltIfTest -> Halt ifTest" Best regards, Henrik Fra: Pharo-dev på vegne av

Re: [Pharo-dev] Code colors with dark theme (out of box)

2017-04-27 Thread Henrik Nergaard
default theme coloring ... but I wonder why it changes the theme when I manipulate only the comment color? Is this a bug? Thanks T. Gesendet: Donnerstag, 27. April 2017 um 11:33 Uhr Von: "Henrik Nergaard" <draag...@outlook.com> An: "Pharo Development List" <pharo-dev

Re: [Pharo-dev] Code colors with dark theme (out of box)

2017-04-27 Thread Henrik Nergaard
Tested with a clean 60471 and the correct code theme is used for me (primary white text color). What are these values for you: -- Smalltalk ui theme. "a Pharo3DarkTheme" SHTextStylerST80 styleTable = Smalltalk ui theme shStyleTable. "true" SHRBTextStyler styleTable =

Re: [Pharo-dev] confused about hanging pointer

2017-04-24 Thread Henrik Nergaard
Hi Ben, --- Smalltalk garbageCollect. Pharo3DarkTheme allInstances first pointersTo collect: [ :each | each class ] "{ClassVariable. Context. Context. Context. Context. Context. Context. Context. Context. Context. Context}" --- >I can't understand where in that method

[Pharo-dev] NumberParser and exponent

2017-03-29 Thread Henrik Nergaard
Hi, Apperently the number parser cannot parse '2E+2' correctly, is this a bug or a feature. ('2E+2' asNumber = '2e2' asNumber) Is there any reason to why parsing numbers with uppercase exponent letter is not allowed? (see NumberParser >> #exponentLetters) The parser has a method named

Re: [Pharo-dev] Capitalized

2017-03-15 Thread Henrik Nergaard
>to "capitalize" is writing a word with its first letter. The Smalltalk String is not neccessarily just a word, it could be something else so the current implementation makes no assumptions of what the string is.

Re: [Pharo-dev] How can I create a trivial "spinner" etc, to see if image is busy?

2017-02-05 Thread Henrik Nergaard
rMilliseconds: 1) wait] displayingProgress:[:aClass| 'Processing ', aClass name]. Phil On Sun, Feb 5, 2017 at 7:16 PM, Henrik Nergaard <draag...@outlook.com<mailto:draag...@outlook.com>> wrote: http://smalltalkhub.com/#!/~Latsa

Re: [Pharo-dev] How can I create a trivial "spinner" etc, to see if image is busy?

2017-02-05 Thread Henrik Nergaard
Writer nextPut: Smalltalk allClasses ] ] ] ] ensure: [ file > close ]. > ] timeToRun. "0:00:00:00.385" > > Which is faster. > > Total file size is ~1.2MB. > > BTW, we need #readStreamDo: and #writeStreamDo: on File I think, as it > encourages proper resource m

Re: [Pharo-dev] How can I create a trivial "spinner" etc, to see if image is busy?

2017-02-05 Thread Henrik Nergaard
http://smalltalkhub.com/#!/~Latsabben/GafletFremgangFremviser - | ston file| ston := (1 to: 30) flatCollect: [:ix |STON toStringPretty: Smalltalk allClasses]. file := (FileStream fileNamed: 'file.ston'). ston whileDisplayingProgress action: [ :stream | file

Re: [Pharo-dev] In the need of Pharo magic

2017-01-19 Thread Henrik Nergaard
Here is an example of using the ast to remove -all- halts from the code if one or more is encountered during execution. | haltTypes haltingMethods testCode | haltTypes := #( halt halt: haltIf: haltIfNil haltOnCount: haltOnce).

Re: [Pharo-dev] collection flatCollect: #something VS (collection collect: #something) flattened

2017-01-12 Thread Henrik Nergaard
llection flatCollect: #something VS (collection collect: #something) flattened On 01/12/2017 06:45 AM, Julien Delplanque wrote: > On 12/01/17 12:32, Henrik Nergaard wrote: >> Ps. Using a symbol instead of a block reduces performance. >> [ 1 to: 1e9 do: [ :each | each ] ] timeToRun.

Re: [Pharo-dev] collection flatCollect: #something VS (collection collect: #something) flattened

2017-01-12 Thread Henrik Nergaard
>Shouldn't these two code snippets behave the same way? #flatCollect: expects that aBlock returns a collection for each element (see method comment) and only flattens one level, while # flattened expands all sub collections it finds:

Re: [Pharo-dev] Strange DNU effect on Windows with Pastell

2017-01-11 Thread Henrik Nergaard
Jan 2017, at 11:46, Henrik Nergaard <draag...@outlook.com> wrote: > > And Object/Association >> #tail > > Best regards, > Henrik > > -Opprinnelig melding- > Fra: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] På vegne av Esteban > Lorenzano &

Re: [Pharo-dev] Strange DNU effect on Windows with Pastell

2017-01-11 Thread Henrik Nergaard
And Object/Association >> #tail Best regards, Henrik -Opprinnelig melding- Fra: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] På vegne av Esteban Lorenzano Sendt: 11 January 2017 10:13 Til: Pharo Development List Emne: Re: [Pharo-dev] Strange DNU

Re: [Pharo-dev] :: Separator in class names

2017-01-02 Thread Henrik Nergaard
+100 I do not think that there should be restrictions on the number of :: separators. Modified to allow #A::B::Object etc.. --- isValidGlobalName self ifEmpty: [ ^ false ]. "reserverd default names" self = #NameOfSubclass ifTrue: [ ^ false ].

Re: [Pharo-dev] [Moose-dev] Too frequent crashes :-(

2016-12-19 Thread Henrik Nergaard
Using floats should not be a problem as BitBlt will round these to integers: | canvas image | canvas := FormCanvas extent: 100.1@100.2. canvas fillColor: Color gray. image := Smalltalk ui icons iconNamed: #error. canvas image: image at: 2.5@3.9 sourceRect: (1.2@5.3 extent: 42.1@43.4) rule: 34.

Re: [Pharo-dev] NeoUUIDGenerator>>testTwoSameGenerator - intermittent CI failure

2016-12-11 Thread Henrik Nergaard
>The timing problem might indeed be resolution dependent: 100us is probably to >short sometimes. Time microsecondClockValue gives the time in microseconds, but it does not guarantee microsecond resolution, on windows the resolution is still in milliseconds. -- | col | col := Array

Re: [Pharo-dev] about syntaxError

2016-12-08 Thread Henrik Nergaard
Change line 3 of RBExtractMethodRefactoring>>extractMethod to something like: [ extractedParseTree := RBParser parseExpression: extractCode ] on: SyntaxErrorNotification do: [ :ex| ex debug ]. To bring up a debugger. Best regards, Henrik -Original Message- From: Pharo-dev

Re: [Pharo-dev] Set internal array size

2016-12-01 Thread Henrik Nergaard
The Set implementation requires the array to have a size > 0. (Set basicNew initialize: 0) add: #x "Error Zero Devide" Best regards, Henrik -Original Message- From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Christophe Demarey Sent: Thursday, December 1, 2016

Re: [Pharo-dev] Set internal array size

2016-12-01 Thread Henrik Nergaard
Hashed collections keep a portion of the available memory empty (usually 25%) as a partition mechanism to increase lookup speed. "Normal array" | col | col := Smalltalk allClassesAndTraits asArray. [ col includes: 8; includes: Morph ] bench. "'366.853 per second'" "Normal set ~75% load" | set

Re: [Pharo-dev] How to report website text bugs?

2016-11-30 Thread Henrik Nergaard
SystemNavigation new allLocalCallsOn: 'No change' ofClass: ProtoObject . "a Set(Delay class>>#delaySchedulerClass:)" From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Esteban Lorenzano Sent: Wednesday, November 30, 2016 12:14 PM To: Pharo Development List

Re: [Pharo-dev] two question about fasttable

2016-11-28 Thread Henrik Nergaard
- Then I miss an important design point. Why datasource returns Morph? Do you mean from #cellColumn:row: ? - I do not get why a data source should return UI element. To me it violates layers. The datasource is a wrapper/binding between the real object and the view (table/list) and provides the

Re: [Pharo-dev] Pharo6 64bits Unix on Windows 10

2016-11-28 Thread Henrik Nergaard
Do you mean starting a linux vm via windows-bash with DISPLAY exported to something like xming, or was something else done? - fetching packages from github. (tar fail to create files with ':' in them, so downloading filetree from github fails). If the image/download path is located within the

Re: [Pharo-dev] Please test new VMs (round one)

2016-11-09 Thread Henrik Nergaard
Please test new VMs (round one) 2016-11-09 13:28 GMT+01:00 Henrik Nergaard <henrik.nerga...@uia.no<mailto:henrik.nerga...@uia.no>>: Got it running on Windows using “Ubuntu on Windows” and Xming server. There are some failing kernel tests, but no crash so far ;) You've used the linux

Re: [Pharo-dev] About setProperty:toValue: vs. valueOfProperty:

2016-11-03 Thread Henrik Nergaard
| dct arr | dct := IdentityDictionary new. arr := #( #valueOfProperty: #valueOfProperty:ifAbsent: #valueOfProperty:ifAbsentPut: #setProperty:toValue: #hasProperty: ). Morph withAllSubclasses do: [ :class | class methods do: [ :each |

[Pharo-dev] Odd literal in metaclasses methods

2016-10-29 Thread Henrik Nergaard
Every method implemented in the class side includes a literal: "nil->theMetaClass". Object class methods collect: [ :cm | cm literals last ]. What is it used for? Best regards, Henrik

Re: [Pharo-dev] Latest Configuration of XPath is broken

2016-09-14 Thread Henrik Nergaard
=stable,VM=vm/lastCompletedBuild/console From the output: > Project: XMLParser release-2.8.7 [2.8.7] Could you try manually loading the latest ConfigurationOfXMLParser from its repo and using the latest XPath config again, and tell me what platform you're using (Pharo, Squeak, GS)? >From: &

[Pharo-dev] Latest Configuration of XPath is broken

2016-09-08 Thread Henrik Nergaard
Hi, Trying to load XPath using the latest configuration (ConfigurationOfXPath-monty.91) gives the following error: MetacelloProjectSpecLoadError: No version found for #'release-2.8.7' of ConfigurationOfXMLParser because: The symbolic version #'release-2.8.7' is not defined in

Re: [Pharo-dev] Cycles lost on startup

2016-09-06 Thread Henrik Nergaard
Rewriting the implementation of #initSelectorTable to: SelectorTable := WeakSet withAll: (CompiledMethod allInstances collect: [:m | m selector] as: IdentitySet). Makes it 20ms faster, so it looks like there is some overhead when using WeakSet compared to first use a normal set to remove

Re: [Pharo-dev] About the non-use of Announcer in Bloc

2016-08-28 Thread Henrik Nergaard
Probably from the use of critical (mutex), the way #subscriptionsHandling: is done, and that Announcer is built for X number of announcers and Y number of subscribers, which means that each announcement the announcer has to filter and find the correct subscribers. | ann a | ann :=

Re: [Pharo-dev] Usability issue : the class/instance button in Pharo 5 gives poor feedback

2016-08-22 Thread Henrik Nergaard
What about something like this? Best regards, Henrik -Original Message- From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Stephan Eggermont Sent: Monday, August 22, 2016 10:36 PM To: pharo-dev@lists.pharo.org Subject: Re: [Pharo-dev] Usability issue : the

[Pharo-dev] Performance of [ * ] repeat vs [ * . true ] whileTrue

2016-08-14 Thread Henrik Nergaard
Hi, Why is "[ * ] repeat" almost twice as slow as "[ * . true ] whileTrue" ? -- [ | n | n := 0. [ [ n := n + 1. n > 1 ifTrue: [ Error signal ] ] repeat ] on: Error do: [ :err | ]. ]

Re: [Pharo-dev] How to get fogubugz to send email notifications to me ....

2016-08-07 Thread Henrik Nergaard
At the top right corner of the webpage there is a dropdown menu with an entry “Subscribe”. This enables you to automatically subscribe to cases according to certain filters, and changes in those will then be notified by mail. Best regards, Henrik From: Pharo-dev

Re: [Pharo-dev] Spec TreeModel get selected items in order

2016-08-07 Thread Henrik Nergaard
Sunday, August 7, 2016 7:46 PM To: Pharo Development List <pharo-dev@lists.pharo.org> Subject: Re: [Pharo-dev] Spec TreeModel get selected items in order 2016-08-07 18:23 GMT+02:00 Nicolai Hess <nicolaih...@gmail.com<mailto:nicolaih...@gmail.com>>: 2016-08-07 17:53 G

Re: [Pharo-dev] Spec TreeModel get selected items in order

2016-08-07 Thread Henrik Nergaard
ListModel has that: #selectedItemsSorted, but looking at the tree model structure I guess the simplest way is to just traverse the whole structure until the selected nodes are found. Something like this should do the trick: -- TreeModel >>

Re: [Pharo-dev] Athens Font Rendering Bug

2016-07-12 Thread Henrik Nergaard
On Windows? Try: - CairoGlyph class removeSelector:#byteAlignment. CairoGlyph rebuildFieldAccessors . Best regards, Henrik -Original Message- From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Hilaire Sent: Tuesday, July 12, 2016 11:00 AM To:

Re: [Pharo-dev] GT-Spotter dive in shortcut

2016-06-07 Thread Henrik Nergaard
IIRC the shortcut is not changed, it still is meta+right(+shift). Only the tooltip was changed to display the system specific key instead of “cmd” so for Windows/Linux this would be “ctrl”. Best regards, Henrik From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Nicolai

Re: [Pharo-dev] Smalltalk ui icons vs iconNamed: vs @

2016-05-30 Thread Henrik Nergaard
What about Symbol >>#asIcon ^ Smalltalk ui icons iconNamed: self Then one can do: "#add asIcon" ? Best regards, Henrik -Original Message- From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Peter Uhnak Sent: Monday, May 30, 2016 4:34 PM To: Pharo Development

Re: [Pharo-dev] slice/merge conflict with package AST-FFI-Pharo50Compatibility

2016-05-24 Thread Henrik Nergaard
When trying to load the Slice for 17696 from pharo60Inbox I get: “MessageNotUnderstood: receiver of "dependencies" is nil” when it tries to load AST-FFI-Pharo50Compatibility. I think you need to reset the package cache/folder? You might also I need to do the slice again (without loading the

Re: [Pharo-dev] strange Zinc JPEG bug

2016-05-24 Thread Henrik Nergaard
Not sure where to report zinc bugs… fogzbugz? or is it a separate project? Any bug found in the standard image regardless of project should be reported on fogbugz, no? but this works just fine… If I do: | imageStream | imageStream := (ZnEasy get:

Re: [Pharo-dev] weird tales about cursors and rectangle invalidations

2016-05-22 Thread Henrik Nergaard
awing is being called for the full window) btw, this is not just a rubric problem, it happens if I put a PluggableTextMorph as well. cheers! Esteban > On 22 May 2016, at 21:28, Henrik Nergaard <henrik.nerga...@uia.no> wrote: > > Hi Esteban, > > To see the damage live

Re: [Pharo-dev] weird tales about cursors and rectangle invalidations

2016-05-22 Thread Henrik Nergaard
Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of stepharo Sent: Sunday, May 22, 2016 9:49 PM To: Pharo Development List <pharo-dev@lists.pharo.org> Subject: Re: [Pharo-dev] weird tales about cursors and rectangle invalidations Le 22/5/16 à 21:28, Henrik Nergaard a écrit : > Hi E

Re: [Pharo-dev] weird tales about cursors and rectangle invalidations

2016-05-22 Thread Henrik Nergaard
Hi Esteban, To see the damage live: SystemSettings->Tools->Debugging->Flash damaged morphic region. Redrawing: Only morphs whose area is within the visible draw region of the canvas (the damaged area) needs to be redrawn, so if a morph fullbounds is not intersecting with this area it will

Re: [Pharo-dev] From a mooc user: method source with it' take so long in Pharo 5

2016-05-22 Thread Henrik Nergaard
There is a method in SourceFileArray #localProcessReadStreamAtFileIndex:atPosition:ifPresent:ifAbsent: which uses a ProccessLocalVariable called ProccessAndSessionLocalSourcesFileArray (see #localProcessReadOnlyCopy). Changing the last line in #readStreamAt:ifPresent:ifAbsent: to use this

Re: [Pharo-dev] how to swallow a syntax error?

2016-05-21 Thread Henrik Nergaard
Catching the Notification stops it from popping up the syntaxErrorDebugger. 'AAA.st' asFileReference readStreamDo: [ :s | importer := CodeImporter fileStream: s. [ importer evaluateDeclarations ] on: SyntaxErrorNotification do: [ :e | …] ]. From: Pharo-dev

Re: [Pharo-dev] new collaborators in Pharo 5

2016-04-29 Thread Henrik Nergaard
hn, Latsabben, and HenrikNergrd is me... (I will create a slice to fix those in Pharo 6) Best regards, Henrik -Original Message- From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Esteban Lorenzano Sent: Friday, April 29, 2016 10:26 AM To: Pharo Board

Re: [Pharo-dev] TxText model

2016-04-06 Thread Henrik Nergaard
The only thing required for styling is to specify the attributes for the runs associated with the text. A simple example: | text attributes oldRuns clr| text := (String loremIpsum: 1234) asText. attributes := Array new: text size. clr := TextColor color: Color random. 1 to: text size do: [

Re: [Pharo-dev] [Pharo-users] STON materialization corrupts a dictionary if the keys are references

2016-04-06 Thread Henrik Nergaard
Hi Sven, Instead of: stonProcessSubObjects: block | didContainStonReferenceAsKey | didContainStonReferenceAsKey := self stonProcessSubObjects: block super stonProcessSubObjects: block. self isHealthy ifFalse: [ self rehash ].. super

Re: [Pharo-dev] [bloc] shape size?

2016-04-03 Thread Henrik Nergaard
-Original Message- From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Thierry Goubier Sent: Sunday, April 3, 2016 9:52 PM To: pharo-dev@lists.pharo.org Subject: Re: [Pharo-dev] [bloc] shape size? Hi Henrik, Le 03/04/2016 21:32, Henrik Nergaard a écrit : >

Re: [Pharo-dev] [bloc] shape size?

2016-04-03 Thread Henrik Nergaard
>A FTTableContainerMorph recreates all its submorphs on every drawOn:. Not correct. Submorphs are only recreated when the view of the list has changed #canRefreshValues, ie if the variable "needsRefreshExposedRows" is set to true. If this is false nothing will happen in #drawOn: If changes

Re: [Pharo-dev] [bloc] shape size?

2016-04-03 Thread Henrik Nergaard
>Let me return you the question then: do you do a composition of submorphs if >you're trying to get a different drawOn:? >Oh, ok, that's true FastTable does it for the selection... changing background >color by encapsulating a row in another Morph with the right background color. Did, not

Re: [Pharo-dev] How to set styler for RubEditingArea?

2016-03-21 Thread Henrik Nergaard
at 7:24 AM > From: "Nicolai Hess" <nicolaih...@gmail.com> > To: "Pharo Development List" <pharo-dev@lists.pharo.org> > Subject: Re: [Pharo-dev] How to set styler for RubEditingArea? > Isn't there a xml.-Styler in Moose? How is that implemented? > > Am 1

Re: [Pharo-dev] Receiving notification of theme changes or changes to syntax highlighting properties

2016-03-20 Thread Henrik Nergaard
themeChanged is the hook method which is called from World and then by default recursively traverses the tree. If you have anything in a morph which is theming dependent, then this method should be implemented. Currently it is the morphs job to update its other parts when the theme changed

Re: [Pharo-dev] How to set styler for RubEditingArea?

2016-03-19 Thread Henrik Nergaard
Isn't there a xml.-Styler in Moose? How is that implemented? Am 19.03.2016 11:28 vorm. schrieb "Stephan Eggermont" <step...@stack.nl<mailto:step...@stack.nl>>: On 19-03-16 10:59, Henrik Nergaard wrote: There is no way of doing that, RubParagraphDecorator lacks a method to set

Re: [Pharo-dev] How to set styler for RubEditingArea?

2016-03-19 Thread Henrik Nergaard
styler := aTextStyler. styler view: self. Best regards, Henrik -Original Message- From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Henrik Nergaard Sent: Saturday, March 19, 2016 11:00 AM To: Pharo Development List <pharo-dev@lists.pharo.org> Subject: Re:

Re: [Pharo-dev] How to set styler for RubEditingArea?

2016-03-19 Thread Henrik Nergaard
There is no way of doing that, RubParagraphDecorator lacks a method to set its style variable. If you add that, then you can do something like: Self is a RubEditingArea (self decoratorNamed: #shoutStyler) style: yourStyleclass new. Best regards, Henrik -Original Message- From:

Re: [Pharo-dev] Comparison of actual and expected Delay length on small durations

2016-03-12 Thread Henrik Nergaard
The numbers in that csv from is in float, but with the fraction part is 0. This is most likely caused by the fact that the precision for timing is in milliseconds, not microseconds. Even the #primUTCMicrosecondsClock only updates per millisecond for me. (Windows). ((1 to: 10) collect: [:n

Re: [Pharo-dev] feedback from yet another student presentation

2016-03-10 Thread Henrik Nergaard
And changed back again because it is two different cases ;). Case 7241 is about removing the instance side method #name , which gives you a generic name of the receiver (by default #printString) where any if its uses is such that it is really hard to use it for anything like defining a variable

Re: [Pharo-dev] For future version of Spotter

2016-03-07 Thread Henrik Nergaard
The ShortcutReminder tool includes a button which resets parts of its state from the settings. The methods used for this can be found under the "settings" protocol on the instance side. Best regards, Henrik -Original Message- From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org]

Re: [Pharo-dev] 50603 highlighting broken

2016-02-23 Thread Henrik Nergaard
Caused by: Build 50601 16020 Syntax Highlighting Rubric: First shows non-highlighted text, then color. Looks slow https://pharo.fogbugz.com/f/cases/16020 From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Nicolai Hess Sent: Tuesday, February 23, 2016 2:41

Re: [Pharo-dev] MetaclassTest>>testMetaclassAndTraitClassRespectsPolymorphismRules

2016-02-20 Thread Henrik Nergaard
#traitComposition. #traitComposition:. #veryDeepCopyWith:} asSet. I don't know about the other failures. > On 20 Feb 2016, at 11:37, Henrik Nergaard <henrik.nerga...@uia.no> wrote: > > The

Re: [Pharo-dev] MetaclassTest>>testMetaclassAndTraitClassRespectsPolymorphismRules

2016-02-20 Thread Henrik Nergaard
The issue should be unrelated: https://pharo.fogbugz.com/f/cases/17616/CI-Server-Failing-tests-related-to-Traits-Polymorphism Best regards, Henrik -Original Message- From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Sven Van Caekenberghe Sent: Saturday, February

Re: [Pharo-dev] GTSUnitDebugger MNU receiver of "paneNamed:" is nil

2016-02-19 Thread Henrik Nergaard
https://pharo.fogbugz.com/f/cases/17653/GTSpecPreDebugWindow-initializeStackPane-GTSUnitDebugger-MNU-reciever-of-paneNamed-is-nil -Original Message- From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Ben Coman Sent: Friday, February 19, 2016 6:52 PM To: Pharo

Re: [Pharo-dev] why spotter shows up when I type enter in the inputfield of the finder?

2016-02-15 Thread Henrik Nergaard
>Except shift-enter in Finder input field still brings up Spotter. Spotter is a global key-bind meaning that any user of km-dispatcher will by default bring up spotter on shift-enter... Perhaps it would be better to move this to those that actually uses it; in the WorldMorph

Re: [Pharo-dev] Epicea tests failure under Windows (WAS: RE: [ANN] We are in "code freeze" for Pharo 5)

2016-02-05 Thread Henrik Nergaard
Removing #(IRPrinterV2 #(visitStoreTemp: visitStoreRemoteTemp: visitPopIntoLiteralVariable: visitPushTemp: visitReturnLiteral: visitStoreInstVar: visitStoreLiteralVariable: visitPushLiteralVariable: visitPushInstVar: visitJump: visitPushLiteral: label: visitPushArray: visitPopIntoTemp:

Re: [Pharo-dev] System Browser class pane strange behaviour

2016-02-03 Thread Henrik Nergaard
:20 PM, Henrik Nergaard <henrik.nerga...@uia.no> wrote: > That looks like the search field in FastTable; Clicking on another > class/pressing escape should remove it. (I guess after discarding the changed > code the keyboard focus went to the code pane, and therefore pressing >

Re: [Pharo-dev] System Browser class pane strange behaviour

2016-02-03 Thread Henrik Nergaard
That looks like the search field in FastTable; Clicking on another class/pressing escape should remove it. (I guess after discarding the changed code the keyboard focus went to the code pane, and therefore pressing opens the search field instead of typing in the code area) Best regards,

Re: [Pharo-dev] Morphic magician requested. What is referencePosition?

2016-01-27 Thread Henrik Nergaard
#referencePostion returns the specified center for the morph in global coordinates. By default this will be the same as “self bounds origin + (self bounds extent/2.0)” but can have other depending on what #rotationCenter returns. #referencePositon: on the other hand do not set a new centre, but

Re: [Pharo-dev] Morphic magician requested. What is referencePosition?

2016-01-27 Thread Henrik Nergaard
From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Henrik Nergaard Sent: Wednesday, January 27, 2016 4:47 PM To: Pharo Development List <pharo-dev@lists.pharo.org> Subject: Re: [Pharo-dev] Morphic magician requested. What is referencePosition? #referencePostion r

Re: [Pharo-dev] Bad layoutFrame>>#hash

2016-01-21 Thread Henrik Nergaard
What about something like this? ^self species hash hashComposer add: leftFraction; add: leftOffset; add: topFraction; add: topOffset; add: rightOffset; add: bottomFraction; add: bottomOffset HashComposer>>#add: anObject ^hash :=

Re: [Pharo-dev] Growl setting name

2016-01-15 Thread Henrik Nergaard
NotificationMorph | NotifierMorph | InformationMorph ? Best regards, Henrik -Original Message- From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Tudor Girba Sent: Friday, January 15, 2016 10:21 PM To: Pharo Development List Subject: Re:

Re: [Pharo-dev] Growl setting name

2016-01-15 Thread Henrik Nergaard
- From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Ferlicot D. Cyril Sent: Friday, January 15, 2016 10:32 PM To: pharo-dev@lists.pharo.org Subject: Re: [Pharo-dev] Growl setting name Le 15/01/2016 22:25, Henrik Nergaard a écrit : > NotificationMorph | NotifierMo

Re: [Pharo-dev] Bug in protocol and method selection

2016-01-14 Thread Henrik Nergaard
Hi Stef, Do the error still happen if you merge: Name: Morphic-Widgets-FastTable-HenrikNergaard.148 Author: HenrikNergaard Time: 13 January 2016, 3:40:48.807358 pm UUID: b807ebde-ad62-ce41-977a-e6cdce230e93 Ancestors: Morphic-Widgets-FastTable-CyrilFerlicot.147 ? Best regards, Henrik

Re: [Pharo-dev] I will rename FFI-NB to UnifiedFFI

2016-01-13 Thread Henrik Nergaard
If the prefix is renamed would it be possible to include a delimiter symbol between whatever prefix name and the object name? (for example underscore). Then one could change the how a class is viewed in a simple manner (see attached example). Best regards, Henrik From: Pharo-dev

Re: [Pharo-dev] 17348 Enhance shortcut learnability

2016-01-11 Thread Henrik Nergaard
Somehow it integrated __ Name: SLICE-Issue-17348-Enhance-shortcut-learnability-tr.2 Author: tr Time: 8 January 2016, 4:18:55.135106 pm UUID: 0aa30f76-84f3-0449-acde-172e56ea3615 Ancestors: SLICE-Issue-17348-Enhance-shortcut-learnability-tr.1 Dependencies: Morphic-Base-tr.526 better

Re: [Pharo-dev] gtdebugger in pharo 5.0

2016-01-09 Thread Henrik Nergaard
http://ws.stfx.eu/3KXXDAJ4EUF6 -Original Message- From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Stephan Eggermont Sent: Saturday, January 9, 2016 3:36 PM To: pharo-dev@lists.pharo.org Subject: Re: [Pharo-dev] gtdebugger in pharo 5.0 On 09-01-16 12:39, Dimitris

Re: [Pharo-dev] #sum:, #detectSum:, #sumNumbers:

2015-12-25 Thread Henrik Nergaard
Like this? http://smalltalkhub.com/#!/~Latsabben/NumIt Best regards, Henrik -Original Message- From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of stepharo Sent: Thursday, December 24, 2015 9:58 AM To: Pharo Development List Subject: Re:

Re: [Pharo-dev] displayingProgress on demand

2015-12-07 Thread Henrik Nergaard
Here is my take on it. http://smalltalkhub.com/#!/~Latsabben/GafletFremgangFremviser Best regards, Henrik From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Hernán Morales Durand Sent: Tuesday, December 8, 2015 12:28 AM To: Pharo Development List

Re: [Pharo-dev] GTDebugger not draggable with latest VM

2015-12-04 Thread Henrik Nergaard
Case 17178 added an extra check to the handling of mouse movement to use the result from asking the event handler by default (if the morph has an event handler) in the same way as other “handles” methods behaves. The default behaviour for Morph event handling is that if an event handler is

Re: [Pharo-dev] Nautilus class definition pane and browseAllAccessesTo

2015-11-29 Thread Henrik Nergaard
For the Rubric keybinding; changing the calls using “self model” in RubSmalltalkEditor>>#modelCurrentSelectedClass to call “self model interactionModel” instead should make the keybinding work again (at least changing the one to #selectedBehaviour). Best regards, Henrik From: Pharo-dev

Re: [Pharo-dev] learning from errors....

2015-11-24 Thread Henrik Nergaard
You could use one of those images and rotate it when drawing, changing the angle by #step. I attached an example. Best regards, Henrik From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of Yuriy Tymchuk Sent: Tuesday, November 24, 2015 7:58 PM To: Pharo Development List

Re: [Pharo-dev] last opened window does not go away

2015-11-16 Thread Henrik Nergaard
The RubFindReplaceDialogWindow is made and held by RubFindReplaceService ivar dialog. There is also the ivar textAreaHolder which holds the active text area. When setting this variable from #textArea: an announcement is created for the textArea to the RubFindReplaceService, this should probably

Re: [Pharo-dev] Question about implementation of a delay

2015-10-13 Thread Henrik Nergaard
delay := [ :msToWait | | t | t := Time millisecondClockValue. [ (Time millisecondClockValue - t) < msToWait ] whileTrue: [ World doOneCycle ]. ]. delay value: 200. Best regards, Henrik -Original Message- From: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] On Behalf Of

[Pharo-dev] taskbarThumbnail leaks memory?

2015-10-11 Thread Henrik Nergaard
It looks like the taskbarThumbnails might be leaking memory. When moving the mouse across the taskbar viewing the different thumbnails the memory usage increases by quite a lot (viewed in the taskmanager (Windows) ). I made an example script to illustrate the resource usage. Test scenario: 20

Re: [Pharo-dev] hash and Collections

2015-10-09 Thread Henrik Nergaard
The identityHash should stay the same for any number of changes to the array.. | c1 c2 | c1 := { #a . #b } asOrderedCollection. c2 := { #a . #b } asOrderedCollection. { c1 hash. c1 identityHash. c2 hash. c2 identityHash . (c2 add: #c; yourself)

Re: [Pharo-dev] Problems with a large block

2015-10-07 Thread Henrik Nergaard
Hi Marco, Had some fun with the code you posted :D. This *should* be the equivalent, but with less variables so that you can access the RBBlockNode. [ :h :s :v | | chroma rgb | chroma := s*v. rgb := { 0 . 0 . 0 }. rgb at: h + 60) // 120) \\ 3) + 1) put:

[Pharo-dev] Querying the accessors of a variable

2015-10-01 Thread Henrik Nergaard
Hi, Is there a simple way to query a variable to check how many methods that access it? (just want to know the size) This works, but it is quite slow. (Morph whichSelectorsAccess: #owner) size Morph withAllSubclasses inject: 0 into: [ :sum :class | sum + (class whichSelectorsAccess: #owner)

  1   2   >