« first day (1446 days earlier)      last day (1734 days later) » 
00:00 - 19:0019:00 - 00:00

12:01 AM
RELOAD!
[bruglesco/memory-card] 1 commit. 67 additions. 73 deletions.
[Cardshifter/Cardshifter] 1 commit. 2 issue comments. 6 additions. 1 deletion.
[FreezePhoenix/XtraUtils] 5 commits. 59 additions. 18 deletions.
[rubberduck-vba/Rubberduck] 2 opened issues. 1 closed issue. 4 issue comments.
 
 
2 hours later…
1:51 AM
[rubberduck-vba/Rubberduck] tommy9 pushed commit 15b45146 to next: Stop removing new line when removing an expression with a line number
[rubberduck-vba/Rubberduck] tommy9 pushed commit 21c42998 to next: Tidy up code and comments
Merge pull request #4022 from tommy9/MoveCloserWithLineNumbers

Stop removing new line when removing an expression with a line number
 
 
1 hour later…
3:33 AM
> Possible that I missed a few here & there, but this feels pretty thorough.
 
3:45 AM
[rubberduck-vba/Rubberduck] build for commit af691f45 on unknown branch: AppVeyor build succeeded
> # [Codecov](https://codecov.io/gh/rubberduck-vba/Rubberduck/pull/4025?src=pr&el=h1) Report
> Merging [#4025](https://codecov.io/gh/rubberduck-vba/Rubberduck/pull/4025?src=pr&el=desc) into [next](https://codecov.io/gh/rubberduck-vba/Rubberduck/commit/864bc3c426016edab66b24b4095de24c484167de?src=pr&el=desc) will **decrease** coverage by `0.08%`.
> The diff coverage is `7.54%`.


```diff
@@ Coverage Diff @@
## next #4025 +/- ##
========================
[rubberduck-vba/Rubberduck] build for commit af691f45 on unknown branch: 53.73% (target 0%)
> # [Codecov](https://codecov.io/gh/rubberduck-vba/Rubberduck/pull/4025?src=pr&el=h1) Report
> Merging [#4025](https://codecov.io/gh/rubberduck-vba/Rubberduck/pull/4025?src=pr&el=desc) into [next](https://codecov.io/gh/rubberduck-vba/Rubberduck/commit/864bc3c426016edab66b24b4095de24c484167de?src=pr&el=desc) will **decrease** coverage by `0.08%`.
> The diff coverage is `7.54%`.


```diff
@@ Coverage Diff @@
## next #4025 +/- ##
========================
 
4:05 AM
[rubberduck-vba/Rubberduck] build for commit 23be6e5c on unknown branch: AppVeyor build succeeded
> # [Codecov](https://codecov.io/gh/rubberduck-vba/Rubberduck/pull/4025?src=pr&el=h1) Report
> Merging [#4025](https://codecov.io/gh/rubberduck-vba/Rubberduck/pull/4025?src=pr&el=desc) into [next](https://codecov.io/gh/rubberduck-vba/Rubberduck/commit/864bc3c426016edab66b24b4095de24c484167de?src=pr&el=desc) will **decrease** coverage by `0.08%`.
> The diff coverage is `7.39%`.


```diff
@@ Coverage Diff @@
## next #4025 +/- ##
========================
[rubberduck-vba/Rubberduck] build for commit 23be6e5c on unknown branch: 53.73% (target 0%)
 
 
1 hour later…
5:23 AM
Icons cleaned up on test explorer. :+1: Thanks Mug.
 
6:02 AM
@MathieuGuindon It worth it to pick up Crystal Reports? I'm not averse to learning how to do it with SSMS/Reporting but I don't know how long it'd take. It's not like I'm still trying to learn C# or anything...
9
Q: Some of them would say I'm half a duck

Nank Some of them would say I'm half a duck I may be used if you want to try your luck I inspired your sweetest dreams, will say the most accurate But for only 15 of them, it was worth a rate Some of them tend to collect me Even if I'm usually just worth a few penny Ilia L found ...

Bed time
 
 
1 hour later…
7:41 AM
Good morning folks. (well except it's like 3 AM in your country :-D)
Question! Who is using/used Linux before?
 
7:55 AM
0
Q: VBA mid way dynamic range concatenate

jacobSheets("sht1").range("$B$"&Last_Used_Row&":$B$1047658").ClearContents Kept getting "expect list seperator" error. Anyone know whats wrong? Been at it for hours

 
Asking about your opinion on the ability to move/resize app windows with ALT + Mouse.
 
 
5 hours later…
1:15 PM
PSA: It's Stack Overflow. Thank you for your time.
One of the best books I've read. A delightful masterpiece. https://twitter.com/Dhabolt/status/998869221852483584
Resource cleanup mishap fixed: test explorer menus are back on track! https://github.com/rubberduck-vba/Rubberduck/releases/tag/Rubberduck-v2.2.0.3280
 
1:27 PM
0
Q: Creating JIRA task from Email in MS Outlook

khashashinevery day I get 5 to 30 Appointment emails with almost the same content from which I need to create the Tasks in Atlassian Jira. I wrote a macro to automate this process. I've never written anything in vba before and would be grateful for correcting my code. This macro works. There is a function...

 
> In a class module:

```vba
Private Type TFoo
theBar as Long
End Type

Private this As TFoo

Public Property Get Bar() as Long
Bar = this.theBar
End Property
Public Property Let Bar(ByVal RHS as Long)
this.theBar = RHS
End Property
```

Attempting to rename `Bar()` to `thisBar()` generates a warning. Ignoring the warning and continuing does produce a correctly renamed Getter/Letter and compilable code

![rd false name clash](https://user-images.githubusercontent.com/118
 
@Duga Nice of me to disappear for a month then return with a complaint, eh?
 
@FreeMan I'd complain back about the iffy MCVE though ;-)
 
Welcome back :-) Don't be sad :) I complain all the time :-D
Just like now with "fixed but not completely?" :)
 
oh crap
 
> You want to rename to theBar not thisBar, right? The screenshot would suggest that.
> Yes, renaming `Get Bar()` to `Get theBar()`.

I see my typo now.
 
2:04 PM
@MathieuGuindon Yeah... it's been one of those mornings months...
You're still RetailCoder on GitHub? I thought you'd switched everything to the more professional sounding Real Name...
 
2:30 PM
meh, gotta remember the origins :)
real name's in the profile anyway
 
 
1 hour later…
4:03 PM
@MathieuGuindon @this thanks for the feedback. I will be able to incorporate it thursday night earliest :)
just to keep you in the loop
 
thanks
 
Yesterday I learned about vbDefaultButton1 and it's brethren. I miss the forest when it's right in front of me...
 
@MathieuGuindon I'm learning about fancy tools a lot today.
 
I like the bool approach, but @this has a point too, about null/Cancel being somewhat ambiguous. mainly the problem with the enum is that it's making Yes and Ok annoyingly inconsistent - simplifying the enum makes a fair compromise IMO
@Vogel612 like what?
 
Yeah, the DialogResult enumeration totally sucks. They really should have took the opportunity to break away from the overburdened win32 design there.
 
4:08 PM
well bool did that rather nicely :)
 
and one thing I really really dislike about the default msgbox is the inability to use custom captions.
 
for the buttons?
 
Yes, I'm totally down with it for simple Yes/No prompt.
Yeah.
 
well, it's an interface
...
 
It's a UI rule on Mac OS and one I very much like.
 
4:09 PM
nothing forbids implementing our own WpfMessageBox dialog :)
 
never will have just "Yes", "No", "Cancel" but rather "Save", "Don't save", "Continue editing"
yeah
 
@this while I agree it's nice, one golden rule is also to "blend in" with the OS; non-standard button labels on Windows wouldn't feel right IMO
 
that's pretty much why I usually shadow VBA.Msgbox with my custom msgbox to get all those extra niceties that makes it much more easier to interact with.
 
@MathieuGuindon fancy plots and how the VBA tag is one big voting ring
 
Actually I think Windows is start to adapting this rule.
 
4:12 PM
@Vogel612 lol... yeah. side-effect of a marginalized sub-community I guess.
 
feel like I'm missing something here. What plots? What community?
 
he's looking at some moderator tools
 
blue toys
 
oh ok, i'll just wander over to this corner then.
 
no worries that's about all I can talk about anyways
On that Note: I didn't want to bake the YesNoCancel into the method name...
and the bool? was just the quickest solution to rip out the Forms references
 
4:18 PM
Yeah I can understand that totally.
an option to avoid baking in the results to the name, would to be to have a parameter type that defaults to just YesNo
 
Makes the method into a state-machine though, which should generally be avoided in public API
 
hmm. that's a new concept for me. Simply by introducing a parameter type to signal a type of messagebox, it makes it stateful?
I totally follow the need to avoid having a state w/ the public API, but a parameter to indicate what it should be?
 
IOW it makes the function do X given parameter value A and Y given parameter value B
i.e. wraps MsgBox.Show one-to-one
 
which doesn't really provide a net benefit
 
4:34 PM
right. other than abstracting winforms for the sake of abstracting winforms
 
which admittedly is a bit of a benefit, but when you're already wrapping winforms, you might as well add some semantics
anyways: off for a trainride :)
 
I follow the wish to not wrap for sake of abstraction. That makes sense to me.
Need to read/reflect the linked CR to grok the state-machine connection.
 
@this it's simple: if you have MessageBox.Show(SomeEnum, AnotherEnum, SomeString), then the .Show method needs to switch and determine what to do; by exposing methods like Confirm we eliminate the enums and essentially bake the vbYesNo knowledge into the Confirm method, which by contract will be asking the user something and we need to know if they're ok with that - we only care for some boolean value in that case.
 
hmm, just to rephrase to see if I got the general form --
whenever a function has to have a switch or a similar construct within the body which changes its behavior, it's now a "state machine" ?
 
I guess. I'd just call it a "code smell" :)
 
4:46 PM
but yes, it makes sense - because function now no long does just one thing
 
It has state because a decision needs to be done?
 
Maybe state machine is the wrong term for it, since there is no state between method calls.
 
But a decision needs to be performed based on the result. That's the "state" you're referring to?
 
@IvenBach based on the parameter
 
And the parameter is what causes it to have state?
 
5:00 PM
"State" doesn't strike me as ideal wording, but it does cause a funny smell
 
IOW, MSFT done screwed it up when they implemented the Messagebox in their win32 API. ;)
 
and it's not just that. the enums used are downright barbarous.
 
Fwiw it was pretty standard API at the time to do it that way. OpenGL basically is one huge "pass magical enums in, get graphics out"
 
hmm. come to think of it... i wonder if git is implemented like that....
 
5:07 PM
The idea of vbYesNoCancel + vbDefaultButton3 + vbInformation isn't the best implementation?
 
Linus wrote it in C. Did he avoid the mistakes made in that decade?
@IvenBach Hell, no.
and please don't add. They're technically bitmasks, so treat it like so.
 
Yeah, use &.
 
in VBA that's Or
 
Right |.
 
@this Yes, at least the raw innards of it are implememted like that
 
5:09 PM
e.g. vbYesNoCancel Or vbDefaultButton3 Or vbInformation
 
& would be the version of it that chooses the intersect, not the union.
 
Sooo..... flaws/limitation of C then?
 
My bitmasking is non-existant. I'll have to practice with that.
 
@this FWIW, C didn't have boolean until recently.
 
VBA's equivalent of & would be And
Yeah but they've always used the convention of FALSE = 0 and evaluated against that.
 
5:11 PM
What basically happens is that you move a jumptable into a parameter
@this to some extent, yes.
 
even so, they never should have overloaded the enums for messageboxes like so - the flags for icons, for the default buttons and the prompts should have been 3 separate enums, at least.
 
@this I still have to get used to that
perhaps a RD inspection could help me with that
@this they kinda fixed that in the WinForms port though
 
@IvenBach and here's a good reason why it's horrid -- they use both non-bitmask and bitmask flags in the same enum, so if you did something silly like vbYesNo Or vbYesNoCancel, it won't work and give out undefined behavior.
Yeah, I noticed that.
In VBA-landia, when I shadow the Msgbox, I'm stuck with the nonsense enums they use, though. (this is done primarily so that we can get prettier msgbox without updating the code)
@MathieuGuindon I won't argue, however that it does feel weird to read "vbOkOnly Or vbExclamation" --- I still remember the first time I encountered that.... "WTH? Computers can't make arbitrary choices like that! How the hell is it choosing?!?"
 
I'm confused not for the first time...
Why does that identify only 1 of those calls? the other 3 refer to 1 of many in other procedures in the module...
 
why is buggy behavior buggy?
it's a false positive in any case
 
5:19 PM
OK, that was going to be the 2nd question... :)
whew!
@duga - Incoming!
 
the first one is legit though
but .ColumnWidths should be recognized as a member call on Range... is it not?
 
@IvenBach behavior is entirely dependent on what's likely a Case Else in the implementation
 
Why does it identify only one? because buggy... I guess.
 
@this At least I'm not alone in admitting that.
 
5:22 PM
@FreeMan huh what do you mean only one? I see 4 results, are they all pointing to the same location?
 
@MathieuGuindon Hence undefined behavior. If you don't know what's in that black box it's anyone's guess. Now I better understand that term. Thank for that explicit note.
 
@IvenBach which is why when you're dealing with win32 API (rather any API but more particularly the low level ones), you must read the specifications and adhere to it.
 
Holy Carp!!! Never cut code to paste it into a GitHub issue. Only copy it. Things freak out when code is missing... :/
 
because as you saw, they didn't throw an error in your face
 
> I kneejerk use `MsgBox "This will show the third button selected", vbYesNoCancel + vbDefaultButton3 + vbInformation` without thinking about it. Was corrected to use `MsgBox "This will show the third button selected", vbYesNoCancel Or vbDefaultButton3 Or vbInformation`.

Let's bring this to other users attention.
 
5:25 PM
but what they may do.... ???????
that is kind of why 90s was the era of buffer overflows and virus-by-mail...
 
that should totally have been an "invalid argument" error
 
what and waste a instruction cycle on yet another if statement?!? HERETIC!
Thinking of that - that is most likely why they abused enums like that. Less stuff to push to the stack.
 
@this and VBA-virus by PowerPoint presentations about baby angels and how rich & forever lucky you're going to be if you forward this attachment to 7 people in the next 7 hours
 
@MathieuGuindon Wow... OK, scratch that whole thing. The inspections were somehow out of sync. I swear I double-clicked the inspection in the screen shot and that it highlighted that row. After a compile, parse, it's now showing legit ones where I forgot to include the .Value2 on the LHS of the assignment.
 
TBH, I've never actually seen an actual VBA virus. (lucky?)
 
5:28 PM
@FreeMan yay!
 
indeed
@MathieuGuindon & @this
 
@DainIronfootIII Hi there. Been waiting :-)
 
I've installed VS in my work (IT wasn't too glad :-D) and the ResX plugin.
 
5:30 PM
Can't figure out how to open those ResX files in the VS Integrated ResX Manager though.
 
Right-click a .resx file.
 
You told me to right click on .ResX file and select ResX manager.
 
Can you post a screenshot of your right-click menu (showing the file you clicked on).
 
5:31 PM
Oh, no, in the solution explorer in VS.
 
@Duga That's my best guess. Correct me if it is an 01 difficulty.
 
So, double-click the .sln file to open it in VS.
 
Oh. a .sln file. :-) That's new.
 
Stands for Solution.
 
Wow. A tree on the right.
 
5:33 PM
There'll also be .csproj files (C# Project) you could open.
Yep, that's the solution explorer.
Find and right-click the .resx file there.
 
FInally!
 
@SonGokussj4 I think that might be the thing - you were supposed to always open the .sln file, never any .cs, .csproj files directly
 
The old/new ResX Resource Manager. Oh I've issed you. :-D
 
@this You can open a .csproj file directly.
 
you can do the latter but it won't be in the same mode.
yes but it's not as useful because it then knows nothing about its relationship to others
 
5:35 PM
.csproj files open the project just fine. It's .cs files that are funky.
 
it's usually best to always open .sln
 
:-) Got that.
Thanks for the help over the past few days with this thing..
And here I can "build" my version of RD with my translation?
 
Have there been any issues with the GetDocumentation method of the typelib functionality?
 
it depends on the implementation... can u be more precise?
 
5:40 PM
VB6 - so it's collecting the reference 'C:\Windows\SysWow64\COMDLG32.oca'. there are 13 types reported by GetTypeInfoCount, but when it tries to call GetDocumentation for index 4, COM throws DISP_E_BADINDEX.
Just one example, its a regular occurrence, and always on the same indexes. It's like some are 'missing' for documentation.
 
@this got one. Kinda funny to see a VBA virus attempting to hijack libre office
I could probably find a few by digging through the trash on my customers' emails
 
Only visible with "break on all" exceptions, so its being caught somewhere but I suspect the catch is high enough up that other meta is being missed.
 
@SonGokussj4 yes
 
clarify - are we referring to ITypeLib::GetDocumentation, right?
 
yes
Called in ComDocumentation.cs line 31
 
5:44 PM
@mansellan I'd log the error along with enough information to know what library is involved and what index we're skipping, and do everything possible to keep processing the library and collect as much as possible
 
@MathieuGuindon Are there really simple, small and quick instructions how to? I've got VS newly installed and RD project on my disk.
 
@MathieuGuindon ok cool. tempted to put try/catch on this method, looks like its not caught till the overall member loop in LoadModule. So its likely missing all the other meta atm.
 
@SonGokussj4 Ctrl+Shit+B
 
I agree w/ Mat --- FWIW - you might wanna to see if same thing happens in olewoo
 
good idea
 
5:46 PM
or if it's handling it somehow
thar be c++ dragons, tho. ;)
 
lol I need to learn C++ and some more low-level stuff..
atm I only see the top of the iceberg
 
probably because it was wrote a decade ago, before .NET 4 beefed up its COM interop, the author used C++ interop w/ C# to get to the low level stuff
 
@SonGokussj4 In VS Build>Build Solution is where it can be found.
 
@MathieuGuindon So the build failed
 
What's the output window say?
 
5:48 PM
1 Error
Severity Code Description Project File Line Suppression State
Error The command "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command "C:\Users\jverner\OneDrive\GIT\Rubberduck\Rubberduck.Deployment\PreInnoSetupConfiguration.ps1 -WorkingDir C:\Users\jverner\OneDrive\GIT\Rubberduck\Rubberduck.Deployment\" exited with code 1. Rubberduck.Deployment
And 43 warnings. Do you want it all?
 
@SonGokussj4 don't worry about warnings
 
warnings don't matter for the build
 
for the error -- you need exectuion policy fixed
 
^
bring up nuget package manager console
set-executionpolicy remotesigned
then build again
 
5:51 PM
Shit. So I need an Admin once again...
```
PM> set-executionpolicy remotesigned
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help topic at https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"):y
set-executionpolicy : Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell' is denied. To change
 
To be honest, I don't thin it's really possible to use VS without being not admin
there are lot of operations that VS does that requires admin privs.
 
I've been local admin on every dev machine I've used in the past decade
so.. hard to tell whether it's required or not, or whether VS does this or that without admin privs...
 
I wonder if there's actually a software company out there where developers have VS and not have local admin privs....
that would be hell.
 
@this Us.
 
5:55 PM
erm...
 
Except I, and some others, know how to give ourselves local admin.
 
I used to have to apply for each privilege... now I have a "basic" admin.
 
I was to. But we had some "security controls" in our firm and... Because I'm technically not "IT", they stripped me from Admin privilegies on Windows Virtual Machine... Funny though, on host (Linux) I've got full access.... :-D
 
@DainIronfootIII ok and what if you have to install a plugin? Run a debug session? Those stuff usually need the escalated privileges.
 
hi @excelguy
welcome to the pond
 
5:56 PM
We have a separate account for that.
Because we aren't truly SOC2 compliant...
 
@DainIronfootIII I'm thinking for the past few months if I should "hack" my way through into adding local admin. :-D Maybe it's finally a time. It's time consuming. I'm calling them sometimes 3-times a day....
 
@excelguy Welcome to the pond.
 
@SonGokussj4 It's easy.
 
Thanks guys.. sips water from the pond
 
Windows 10, right?
 
5:58 PM
@this ResX Manager - didn't need, to my surprise, admin priv. when I was installing it.
yeah
win 10
 
OK, type Users on the start. Choose the Edit Users/Groups thing.
Open that and double-click the Groups folder.
There will be an "Administrators" group. Right-click that and choose Add To Group.
Click the "Add..." button.
Enter your full user account name (including domain, if applicable), and click OK.
You can find it by clicking Advanced, then Find Now and scrolling through the results.
When you get in trouble, please refer them to me.
 
:D
w8 a minute. I've got problem with the first instruction. I've got different language and can't seem to find what U're refering to.
 
@excelguy hello neighbor!
 
is there cmd command for that setting?
 
@SonGokussj4 OK, here's another way.
Win+R (Run command). Enter lusrmgr.msc and press Enter.
Or type lusrmgr in the cmd.
 
6:03 PM
nice.
I'll try next steps.
 
Get in?
 
@DainIronfootIII a bit too on the dot.... luser manager :p
 
@DainIronfootIII If @SonGokussj4 isn't local admin, then he should be given the privs, not take them #my2cents
 
@MathieuGuindon Easier to ask forgiveness than permission :P
Until you are unemployed :P
 
#depends
 
6:05 PM
As far as it goes, I'm not getting in that debate. If he wants to, I'll help him.
I'm not the one making the decision to do it.
 
Well, till the last OK... :-)
Then - Permission error.
 
LOL.
I thought that might happen.
I had to use my local admin account to get my non-local-admin account in there.
 
Well I wouldn't be really surprised by that :-D :-D
Okay. I'll try my way now.
 
6:30 PM
Would it be reasonable to request a right-click menu on each inspection in the Code Inspections window that lists all the options? I keep right-clicking out of conditioning, and having some options under the Fix menu and other options in the descriptive text below is... unconventional.
 
@FreeMan why would it not be?
 
#StatusByDesign...
Possibly not-doable...
I dunno, that's why I'm asking
 
it is. The bigger problem is whether we will be able to get rid of the toolwindow sooner than later.
If later, then it makes sense to support right-click menu
Hm. Come to think of it, the right-cilck menu probably is needed anyway even if we got rid of the toolwindow
 
Hmm.... Not so easy..... Shit I would really need, as Mat said, to have a talk with our main IT reasonable guy...
 
> Windows has managed to condition most of us to right-click things for our current options.
Having some of the Code Inspection fixes available under the `Fix` menu button and other fixes available in the descriptive text of the CI dialog is just... unconventional.

Adding a right-click, context sensitive menu to each inspection result that lists all legal options for that result seems to be much more consistent with current (from, oh, 2000ish) Windows design.
 
6:39 PM
Issue submitted, complete with Snarkā„¢. It's been one of those days months...
If I need a hand slapping and an edit, please just let me know.
 
@this exactly what I was thinking =)
 
@FreeMan Can't be too serious with life. If so you become one of those stiffs.
 
thx
 
6:52 PM
Dim foo As String
foo = Class.Property
DoSomething(foo, other, params)
DoSomethingElse(foo, other, params)
Does that make sense, or would it make more sense just to reference Class.Property in each DoSomething* call?
other than the fact that foo is shorter than Class.Property and, therefore, less typing
 
I think that's a good habit to use local variable whenever you need multiple references to a property.
 
^ I personally use Dim foo As String
 
Especially when reading from property (or possibly function) has side effects
(mind, a property w/ side-effect is likely a code smell but that can't be always helped)
 
It saves on typing, but copy/pasta / auto-complete fixes that, too, but it just seemed kinda... overkill...
 
If something needs to be updated at a later date you update that single local variable. #Maintenance
 
6:56 PM
I guess I'll leave it. At least it's more-or-less smiled at instead of frowned upon
@IvenBach #Valid
 
@FreeMan I can't help but cringe at the superfluous parentheses
 
sorry... sleepy typing... plus, I was MCVE from a function call and wasn't really thinking about it.
 
it would have never compiled anyway
 
@this me too. plus member access incurs a v-table lookup :)
 
one thing I'd love to see in VBA IDE is ability to specify that code stepping should skip certain modules.
(yes, there's the shift+f8 and ctrl+shift+f8 but ....)
 
6:59 PM
Add that to RD IDE!
 
00:00 - 19:0019:00 - 00:00

« first day (1446 days earlier)      last day (1734 days later) »