« first day (1325 days earlier)      last day (1855 days later) » 
00:00 - 22:0022:00 - 00:00

12:00 AM
RELOAD!
[rubberduck-vba/Rubberduck] 10 issue comments.
 
12:35 AM
Hey Mat's Mug!
@Mat'sMug I downloaded Rubberduck and it didn't show up in the VBE. How do I get it to show?
 
@Brian did you install as administrator?
Also, do you have side-by-side Office installs of different bitness?
See this page for all the details: github.com/rubberduck-vba/Rubberduck/wiki/Installing
Don't hesitate to ask if you have any questions!
And if you do any C# (or even if you don't), don't hesitate to ask how you can contribute! =)
 
Ping me anytime, I get a notification on my phone (albeit with some delay)
 
[rubberduck-vba/Rubberduck] build for commit d1228f17 on unknown branch: AppVeyor build succeeded
 
1:18 AM
@Mat'sMug Thanks! I may not have done it as administrator. I will try that.
 
:+1:
 
1:31 AM
@Mat'sMug It worked! However, can I only use it when logged in as admin? It still does not show when I change users and open Excel.
 
no, admin was only required to register some COM components
hmm
ah, yes.. that's because the VBE loads its addins from the HKCU hive
i.e. an "all users" install is.. complicated
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
New-Item -Path 'HKCU:\Software\Microsoft\VBA\VBE\6.0\AddIns\Rubberduck.Extension' -Force
New-ItemProperty -Path 'HKCU:\Software\Microsoft\VBA\VBE\6.0\AddIns\Rubberduck.Extension' -Name Description -PropertyType String -Value 'Rubberduck'
New-ItemProperty -Path 'HKCU:\Software\Microsoft\VBA\VBE\6.0\AddIns\Rubberduck.Extension' -Name FriendlyName -PropertyType String -Value 'Rubberduck'
New-ItemProperty -Path 'HKCU:\Software\Microsoft\VBA\VBE\6.0\AddIns\Rubberduck.Extension' -Name LoadBehavior -PropertyType DWord -Value 3
^^ you run a powershell script that creates the registry keys where the VBE will look for addins
the \addins key registers Rubberduck for 32-bit hosts, and the \addins64 key registers it for 64-bit hosts
all VBE hosts look there for add-ins, not just Microsoft Office
 
@Mat'sMug Everything seems to have worked.
 
awesome!
 
When I executed the first line it gave me a warning saying the execution policy protects me from scripts I don't trust, etc.
 
yeah powershell is like that :)
 
1:45 AM
It recommended I say no.
So I did.
Is that a problem?
 
nope
powershell is essentially disabled by default
so you need to explicitly allow it to execute scripts
it's a powerful scripting engine, quite fun to learn :)
you can tap into the whole .net framework
 
I'm sure. :) I just wasn't sure if saying no to the first line was the right.
* right thing.
I executed all the other lines and got Rubberduck. So all seems to be working. Thanks very much for helping me. I look forward to learning it and using it.
 
there are a number of "hidden" features... the annotation system isn't very easily discoverable
 
How would I find that?
 
by following the wordpress blog lol
hold on
 
1:53 AM
Cool! Added it to my favorites. With this and MZ-Tools I think I've got a good IDE setup. Thanks again!
 
@Brian make sure you check out vbwatchdog too!
MZ-3 or MZ-8?
 
Got it! MZ-8.
 
Wayne (the vbWatchDog guy) is currently helping us work around some serious problems, his add-in is the single add-in I'd openly recommend to anyone; nothing else does what it does, and what it does requires ...black magic.
Dec 19 '17 at 20:38, by WaynePhillipsEA
well I'm honored to hear that :) And FWIW Rubberduck is probably the only addin I would openly recommend to all VBA developers
:)
 
I'll definitely look into it! :)
 
I see you're learning C#?
 
2:05 AM
I'm trying! But my job is mainly working with VBA. I also write SQL and work with Access and Tableau.
 
barring Access and Tableau, that sounds like me
I do a bit of C# too though
 
I really want to learn .NET.
I have Visual Studio at work but use it rarely.
The only thing I could use it for, really, is writing a VSTO addin.
 
get VS 2017 Community at home, it's licensed exactly for working on OSS projects (it's free)
one of the two "founders" of the project wrote their very first lines of C# for it
we welcome people that love and use VBA all the time, and would like to help make the VBE ...suck less
 
Interesting. Yeah, when I was really trying to learn it I asked one question on SO for something so basic.
 
@IvenBach is learning .net & C# in this chatroom :)
 
2:10 AM
I've gotten about halfway through The C# Player's Guide by RB Whitaker.
It's REALLY easy to read and understand.
How long have you been writing VBA code?
 
hmm, 14 or 15 years
depends... I was writing VB6 code in 2000
or VB5..
 
You're really advanced. I've read many of your answers. I usually have to read them several times over again to digest. I've only been doing this for about 3 years.
 
I... hmm, is that good or bad?
 
Haha! Good, I think. It just means you're way ahead of me.
 
oh, ok lol
I hope I don't ramble to much.. sometimes I re-read myself and finish a 12-line paragraph realizing there's only a single dot in there.
 
2:16 AM
Places that have helped me out most have been Stackoverflow, Chip Pearson, and Profession Excel Development by Green, Bullen, and Bovey.
Oh, and VBA Developer's Handbook.
 
Bullen, and Bovey?
 
Yep!
 
these two gave us their VB6 source code for the Smart Indenter add-in
:)
 
Nice! How did you manage that?
 
2:17 AM
Ah!
 
obviously we had to rewrite it
but it started with a C# port of Smart Indenter, to revive the add-in in 64-bit hosts
(VB6 builds 32-bit dlls)
oh, an early follower of the project simply contacted Mr.Bullen by email
 
Okay. I see. I've reached out to one of them a time or two.
 
we agreed to license the original VB6 source code under GPLv3, so ..there it is :)
 
They're always helpful and reply fast.
Cool!
 
(we fixed a few bugs in the process btw)
 
2:21 AM
:-D
 
hmm, turns out that same old follower once contributed a piece of code that's going to be central in what I'm currently working on
 
What are you currently working on, if you can say?
 
I'm making Rubberduck's twist on the Add/Remove References dialog
(WIP)
 
Ah yes - Tools > References.
Nice!
 
I think I've got the plumbing down
I have a service that fetches the available type libraries from the registry
 
2:26 AM
You could do your own version of Declaration comment headers.
e.g. a template for constants, UDT, etc.
 
'@Description("This shows up in RD's toolbar - and eventually in our hijacked intellisense")
Public Sub DoSomething()
End Sub
by v3.x Rubberduck will take complete control over the VBE
 
Complete control?
 
people - programmers - will walk by your workstation and ask "huh what IDE is that?" and "wait is that VBA?"
@Brian our next big challenge will be to make our own editor window - "code pane"
 
I look forward to seeing that!
 
we want custom syntax highlighting, red squiggles, blue squiggles, dim-gray dead/redundant code, ...
 
2:31 AM
Similar to VS IDE, sounds like.
 
yup
 
That's really cool!
I hope you make some good progress on that.
 
I dream of killing the inspection results toolwindow
what I want is for inspection results to only show up in the code pane you're editing - in the code pane
and you get a little popup button/menu to apply a quick-fix
hi @PeterMTaylor!
 
Yo Matt! what's news with gossping? :)
 
I got a UPS for my server today
plugged it in, the server booted straight up
 
2:35 AM
cool. a personal server for testing?
 
I'll be setting up virtual machines and domains and whatnot... #havingfun
perhaps I could eventually host the project's website right in my garage
can't wait to get my hard drives this coming week
 
so you bypass stackoverflow or that's too much?!?!?!?!
 
huh lol
 
:)
got a moment Matt?
 
sure what's up?
 
2:49 AM
Just asking a SQL Server question for the WIP CodeAudit project
I may have the wrong approach but like to bounce an idea if I on the right track.
 
go on
 
Where I am at this stage is wanting to work out how common C# keywords are
So I have a zip file of previous releases on my hard disk for research purposes. I got powershell to make a list of files
I need to make C:\RD\Rubberduck-1.0\RetailCoder.VBE\App.cs load into a table and split each back slash into a field
so C:, Rubberduck1-.0, RetailCoder.VBE, App.cs are in seprate fields
 
that doesn't feel right
 
oh ok.
 
if I think in SQL I'd want the subfolders to each have an ID
then each file has a FolderId or something
that way more folders means more records, not more columns
 
2:54 AM
yes I had considered that as a next step assuming SQL Server can autogenerate the id
 
yup
or autonumber in Access
Id int identity(1,1)
 
sorry no access with my Student version installation of Office 2010. So I had installed the latest version of SQL Service recently upgrade last night to 17.4
 
nice
 
there is an import/export feature with SQL Server and I couldn't ask that to recognise backslash as a delimited. so I playing around a way to express it as seprate fields
it would work within excel. I may end up doing this in VBA as a last resort
 
create table dbo.Folder (
     Id int identity(1,1)
    ,ParentId int identity(1,1)
    ,Name nvarchar(255)
);
I think I'd do something like that
and use VBA code to normalize the data
normalized data will be much easier to analyze
 
3:00 AM
yeah and power pivot (to build on my soft skills. )
 
probably (I need to get/try that)
 
:) which bitness Matt? there is 32bit or 64 bit. If you have Excel 2016 it has that feature included.
 
ha nice
 
Here is the link for Excel 2010. msdn.microsoft.com/en-us/library/…
 
thanks!
 
3:05 AM
No problem. Cool, thanks for the technical advice, so I'll expand where I going Matt, I'll make sure I recognise sub folders in my equation and save into a spreadsheet table. SQL Server eats spreadsheets tables for breakfast as per red-gate.com/simple-talk/sql/ssis/…
 
yeah just read this, are we figurately speaking doing better for not using comments since mentioning we are "This lack of comments puts Rubberduck VBA among the lowest one-third of all C# projects on Open Hub"?
 
I personally disagree with the assessment/significance of comments
Few comments can also be an indicator of a well-written, self-documenting code base
 
fair enough.
 
We do need more summary xml-doc though
 
3:18 AM
agreed, some signposts are better to navigate a well built codebase
 
39
A: Guessing a number, but comments concerning

Mat's MugSo you want to write good comments. Good comments... ...say why, not what. ...don't state the obvious or rephrase what the code is already saying. ...don't turn into lies if the code changes. Let's see... import java.util.*; //so I can use scanner The problem is that you're importing an...

 
so the documentation literally becomes like the Object Browser form?
 
Oops meant to copy this one
135
A: Guessing a number, but comments concerning

rolflWelcome to the hell of comments, and personal taste. There are multiple answers to your core question that may be right: you have not commented enough you have commented all the wrong things you have commented too much. your comments are in the wrong format you are missing the formal comments. ...

@PeterMTaylor with enough xml doc we could build a msdn-like site out of it
 
How much is enough xml? we currently have I guess about 8 main features, most code changes each have a number of getters/setters or class/methods something like 8^?? something?
 
inspections in particular need thorough xml-doc :)
 
3:22 AM
yeah definitely so we can attach some counter-examples confidently from either Github Issues or Stackoverflow examples with their URLs?
 
I was thinking of building the "inspections" part of the website with it
 
so it's growing in some order of magnitude but agreed got to start somewhere and its helpful to make our own "Duckybot" to keep our documentation current.
 
3:39 AM
cool. Have a good evening / early morning Matt, take care. catch ya soon.
 
later!
 
 
4 hours later…
7:11 AM
@Mat'sMug Not only @IvenBach :D
 
 
4 hours later…
11:17 AM
0
Q: Excel VBA Filtering: AODB vs Autofilter vs SQLite

asim1701I have an Excel sheet with data in about 100,000 rows, 16 columns. I have to extract data (one value from the 1 row I find) from this table a few thousand times. I have been using Autofilter to extract this value, but have also tried AODB/SQL statements to see if I can improve the speed of the qu...

 
 
2 hours later…
1:25 PM
> most of what discussed yesterday now implemented. comments/XML doc still to do, plus the member enumerators still to do, plus a few FIXMEs.
> most of what was discussed yesterday now implemented. comments/XML doc still to do, plus the member enumerators still to do, plus a few FIXMEs.
[rubberduck-vba/Rubberduck] build for commit 3633b10a on unknown branch: AppVeyor build succeeded
 
 
3 hours later…
4:11 PM
 
@Mat'sMug, I think you'll like this one; RD gets to see everything about a locked project. :)
 
4:44 PM
@this hmm, that'll be critical for RD-IntelliSense
 
and don't we have inspections that would benefit from it?
 
The resolver altogether yeah
 
(i'm thinking about false positives for undeclared variables or something like that? where it comes from a locked project?)
 
 
1 hour later…
6:08 PM
“If you can get today’s work done today, but you do it in such a way that you can’t possibly get tomorrow’s work done tomorrow, then you lose.” - Martin Fowler, Refactoring: Improving the Design of Existing Code
 
 
2 hours later…
7:50 PM
[rubberduck-vba/Rubberduck] build for commit e25d5369 on unknown branch: AppVeyor build failed
BUILD FAILURE!
> Nice! Seems there was a problem with merging upstream though.
> That's my obviously unsuccessful attempt to update my branch from the original branch. Git and I don't get along so well.
 
hey @AnnaVel!
 
Hi
 
I am sorry if I messed something up with that pull request
 
I actually made the fix two months ago, but I've been putting off making the pull request because git is so mean to me
 
@AnnaVel not at all.
 
nothing messed up, PR looks good - but the InspectionBase class was modified a little while back - we managed to kill the need for that annoying Type member
 
Yes, I guess I should have actually built it before trying to push something that is two-months-old
 
urk... see I was sure there was something about those ...
 
8:02 PM
:)
@AnnaVel it's a good sign - means we're still pretty active =)
 
git is pretty approachable once you get through it's thorny eldritch rune-littered shell
you should be able to rebase to upstream/next without too much blowing up.
 
It is indeed thorny :)
 
I was going to say I wasn't sure adding a stepStmt rule was needed, but I see why you did it - I approve. Makes it much easier to get the step expression.
 
I am glad
 
is one of the two inspections defaulting to DoNotShow? I'll have to check the default severities for some other "conflicting inspections" ...are we leaving it up to the user to decide which one they want to ignore?
 
ah, found it. RedundantByRefModifier inspection is defaulting to DoNotShow
while ImplicitByRefModifier inspection is defaulting to Hint
so let's have one of the two default to DoNotShow, and the other one to Hint
 
Goodness, I am sorry
I had actually set StepNotSpecified to DoNotSHow
 
lol, no problem at all
 
And I must have forgotten to put it back after testing
 
no worries there :)
unrelated: Wayne is a literal magician
and I have no clue what he and this are talking about.
 
8:13 PM
Should I make the change and commit it as well? Or you have some magic way to make the fixes you consider right before merging?
 
yes, please.
there is a way to "magically make fixes", but it's not pretty and it's requires dark magic incantations and GitHub won't automagically realize that the PR is merged, soo...
 
Do you have any idea how I fix this build error: Invalid option '7.2' for /langversion; must be ISO-1, ISO-2, Default, Latest or a valid version in range 1 to 7.1.
 
Which version of VS are you running?
 
I have a vague memory of fixing this before but I can't remember
 
8:16 PM
I shouldn't have read Questionable Content. ... my limit for acceptable sarcasm and banter is really whacky now
 
VS Professional 2017 version 15.3.5
 
that shouldn't make any problems.
 
Questionable Content is still updated? Damn, what year is it? :D
 
2018 ...
 
@Vogel612 Don't mistake my questions for actually knowing what I'm doing. I only know enough to be dangerous and blow things up. The rest, I get from MSDN documentation.
 
8:18 PM
I read all 3660 comics in one night.
 
FWIW, it's updated 5 days pretty darned consistently
which is lot more than I can say for most of webcomics out there
 
@Vogel612 saw that tweet, spilled my coffee lol
 
@Mat'sMug I must admit to making a small shower and coffee break ;)
 
I probably need to reinstall something compile-related.
 
@AnnaVel gonna to have VS 2017 for C# 7.2</tortoise>
 
8:20 PM
@this read up 😉 you're too late there
 
T, FTFY.
 
The funny thing is, last time it was lang 7.1 and it complained that it should be max 7 and now you've updated to 7.2 and it is complaining that it should be 7.1
I should really start working on not forgetting how I fix things
 
for all we know it might be disgruntled about that upstream merge that took all projects to 7.2 except Rubberduck.Inspections
 
It claims that Inspections is also 7.2?
 
well it was a shot in the dark
 
8:26 PM
FWIW I'm having a hard time compiling my branch too
let's stick with 7.2 for a while ok
 
hmm ... somebody shot my VS a sideways glance again ... I'm up to 76 test failures for now ...
 
:D
 
I was so sure it was only 18 last time I worked on the ANTLR upgrade :/
 
:/
 
huh apparently we don't resolve the AsTypeDeclaration for functions???
 
8:55 PM
> ^ still to do: comments/XML doc, plus the member enumerators, plus a few FIXMEs, plus DoesImplement() array support
 
Apparently updating Visual Studio solves that
So, we are using NUnit now too
 
who's we? Yes we moved to NUnit. Also gives us CodeCoverage to fawn over
grr ...
I think I somehow broke the Parser..
And I have no clue how ...
 
[rubberduck-vba/Rubberduck] build for commit 20c5b74e on unknown branch: AppVeyor build succeeded
 
System.IO.DirectoryNotFoundException : Could not find a part of the path 'C:\Users\Mathieu\AppData\Local\JetBrains\Installations\ReSharperPlatformVs15_ff‌​b976d7\Testfiles\Resolver\Excel.1.8.xml'.
wtf
how did any of these tests ever passed...
 
well VS is cranky for all of us '^.^
 
9:11 PM
ugh.. every single test that's loading .xml serialized declarations is failing with the same stupid exception
 
> mismatched input 'B' expecting {RESTRICTED_LETTER, A}
that's a real nice pair you got there ANTLR .... RESTRICTED_LETTER is A-Z
 
@Mat'sMug, whiskey is easy to do. Tango is doable, provided you can get a dance partner. However to see a fox trotting, might take some effort given their endangered status. A trip to zoo may be in order.
 
I'll just stick to whiskey :)
 
actually foxtrot is also rather doable, given a suitable dance partner and knowledge of the steps
 
9:17 PM
Oh there's a dance by that name? #TIL
 
lol
 
so really a trip to a dancing joint'd suffice then.
 
@Vogel612 offer VS some green tea and it might work next time around
 
<insert-faye-like-comment-here />
bla bloo violence beep boop
 
9:21 PM
okay so I think we're down to 8 failing tests
apparently one of these two suggestions worked
 
It's great how DeploymentItem gives you no notice when it is unable to copy the single file you've provided it. — user74754 Feb 28 '13 at 0:27
and we don't have a Local.TestSettings file in solution items
so wtf
 
if it's any consolation: it doesn't need to be
solution items is an imperfect mirror of the actual folder structure
which is one of the things that pisses me off about csproj ... but eh
 
> System.IO.DirectoryNotFoundException : Could not find a part of the path 'C:\Users\Mathieu\AppData\Local\JetBrains\Installations\ReSharperPlatformVs15_ff‌​b976d7\Testfiles\Resolver\Excel.1.8.xml'
why the hell is it looking under JetBrains installations then
 
you're having Resharper run the tests?
might be setting an inappropriate working directory
 
at least the R# runner is telling me about an IO exception
VS runner just says expected 1 / actual 0
 
9:32 PM
for what it's worth, an assertion failure is probably closer to a green test than an exception
 
except the assert fail is caused by the missing declarations that the test is supposed to load from xml
at least I think so
 
hmm ... that would make sense ...
 
oh wow
 
then again I do get VS Runner telling me about IOExceptions too, if they occur
 
breakpoint to AddTestLibrary isn't getting hit at all
ffs...
 
9:34 PM
hmm ... expecting the MockParser to do things for you?
 
it's parsing and resolving before it adds the library
lol
yeah
ah, the setup code is calling CreateAndParse
which isn't appropriate for tests that need to resolve types defined in .xml files
 
okay... two fingers of cognac and 8 failing unit-tests ...
~cracks knuckles
 
hmm test is suddenly taking much longer to complete
 
I'm almost sure that this is a good sign
 
yup
okay, I can't wait to get my hard drives and setup my server
pretty sure running VS on a VM with 4 times the processing power and RAM is going to help
 
9:50 PM
[21.01.2018 22:47:53 Warning] line 1:8 mismatched input 'B-C' expecting RESTRICTED_LETTER
[21.01.2018 22:47:53 Warning] line 1:8 mismatched input 'B-C' expecting RESTRICTED_LETTER
[21.01.2018 22:47:53 Warning] line 1:8 mismatched input 'B' expecting RESTRICTED_LETTER
[21.01.2018 22:47:53 Warning] line 1:8 mismatched input 'B' expecting RESTRICTED_LETTER
 
needs more alcohol
 
actually I'm making pretty good progress, all things considered
 
maybe there's a typo?
somehow I can't seem to be able to bring up the exception settings window anymore
 
00:00 - 22:0022:00 - 00:00

« first day (1325 days earlier)      last day (1855 days later) »