« first day (394 days earlier)      last day (2786 days later) » 
00:00 - 07:0011:00 - 00:00

12:01 AM
RELOAD!
[Cardshifter/Cardshifter] 2 commits. 41 additions. 41 deletions.
[Cardshifter/cardshifter.github.io] 3 commits. 5 additions. 5928 deletions.
[rubberduck-vba/Rubberduck] 8 commits. 2 issue comments. 880 additions. 865 deletions.
[Zomis/BrainDuck] 16 commits. 5 opened issues. 996 additions. 358 deletions.
[Zomis/CodeReview-Shield] 5 commits. 2 opened issues. 3 closed issues. 1 issue comment. 130 additions. 34 deletions.
[Zomis/Minesweeper-Analyze] 1 commit. 2 additions. 2 deletions.
[Zomis/SudokuSharp] 1 commit. 2 additions.
 
Quack
 
12:49 AM
@nhgrif yes! Unfortunately, I don't have the score to suggest a synonym.
Hey @Phrancis. Happy freedom day.
 
Likewise!
 
 
1 hour later…
1:57 AM
@Duga @SimonAndréForsberg You have a Duck too?
 
2:30 AM
Hmm, apparently Tomcat plug-in for IntelliJ is called "Maven Runner" good to know
 
2:40 AM
Now and then I really hate Moq.
 
3:08 AM
@RubberDuck Is he Moqing you?
 
Yes....
 
<canned-laughs />
 
For some ungodly reason, it's not picking up the params it should be and I'm losing my mind.
All the examples look exactly like what I wrote, but it won't compile.
 
Someone tell me how the **** I deleted Eclipse by accident...
 
@Phrancis you pressed the self-destruct button?
 
3:18 AM
Oh wait, I'm on a Mac... Drag & Drop delete FTW
 
lol
 
FML
Better learn to run Tomcat from the command line eh
 
One more reason to stick with Windows...
 
Looks like it may not be that hard, at least Apache included a RUNNING.TXT file with detailed instructions. Damn me for deleting shit accidentally, disk was getting full and I must have obviously missed that one -_-
Hey all my projects are still there at least
 
Okay. Got it at last.
 
3:32 AM
Good
 
[rubberduck-vba/Rubberduck] ckuhn203 pushed commit e75e9b0e to next: Added test to ensure references to removed params are removed
 
@RubberDuck Good!
I was working on that the other day, but I ran into a problem and was going to ask you, but forgot.
 
[rubberduck-vba/Rubberduck] build for commit e75e9b0e on next: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit e75e9b0e on next: AppVeyor build succeeded
 
Got about 60% of the RemoveParams refactoring covered.
 
I'm going to make a PR into some class, but I need @Mat'sMug to see it before you merge it.
 
3:42 AM
Okay.
 
what's that about?
 
I'll let Mug pull it. I'm out for tonight.
 
'night @RubberDuck!
 
Night, Duck.
 
FINALLY THANK YOU APACHE DOCUMENTATION
Using CATALINA_BASE:   /Users/francisveilleux-gaboury/Tomcat/apache-tomcat-8.0.18
Using CATALINA_HOME:   /Users/francisveilleux-gaboury/Tomcat/apache-tomcat-8.0.18
Using CATALINA_TMPDIR: /Users/francisveilleux-gaboury/Tomcat/apache-tomcat-8.0.18/temp
Using JRE_HOME:        /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home
Using CLASSPATH:       /Users/francisveilleux-gaboury/Tomcat/apache-tomcat-8.0.18/bin/bootstrap.jar:/Users/francisveilleux-gaboury/Tomcat/apache-tomcat-8.0.18/bin/tomcat-juli.jar
 
3:43 AM
clap-clap-clap
:)
 
It was suggested a while back.
Hi, @RachaelDavies.
 
not a crazy idea, but at one point we'll have to extract them out of Declarations, too. I like it.
 
Actually, you suggested it, I just never got around to it.
 
lol
 
I have the blooming thing in a few places, and will definitely need it again with later refactorings (if I ever do them...).
Feeling I-don't-know-what-now.
Bored, wanting to do something, but not wanting to do anything....
 
3:49 AM
did you PR the cancel rename bug fix?
 
Yes, it was merged.
 
ok good
(just saw that)
I lost control of my gmail inbox
 
Yikes, what happened?
Hit the 30GB, or something?
 
no, just way too many unread GitHub and AppVeyor notifications
 
LOL, if you have Outlook (the Office application, not sure about the webapp), you can set up rules to auto-delete them.
 
3:50 AM
there's Stack Overflow, Programmers and Code Review newsletters burried somewhere in there
 
LOL.
You can sweep everything from a certain sender, can't you?
 
starting Outlook for the first time since I installed Office...
 
LOL, I love Outlook.
 
...*cannot start outlook*
 
You can also have certain senders to into custom folders.
 
3:52 AM
> MAPI was unable to load the information service msncon.dll. Be sure the service is correctly installed and configured.
yeah, well, another day.
@Hosch250 I know, I use Outlook extensively at work!
 
LOL, your laptop needs to be reset.
 
my laptop needs a dive out the fucking window if you ask me
 
LOL.
I was giggling to myself over here about a cartoon with a laptop diving out of a window, and my dad came and saw your swear word.
He wasn't so amused.
He can't ban me though (fortunately).
 
...well, sorry about that
 
Don't worry, I'm an adult.
Fireworks going off like a gun battle over here, but can't see a single one 'cause of trees and houses.
So, one question before I can move that FindTargets method - what should I do with IsSelectedReference() and IsSelectedDeclaration()?
 
4:01 AM
@Hosch250 I might need to watch that: chat.stackexchange.com/…
 
@Mat'sMug 17 isn't bad.
You usually use the initials.
 
but 17/35 is half of them :)
 
I have 4/107 in The 2nd
@Hosch250 yikes
 
You have 106 of 200 of the other version.
@Mat'sMug Quick question here.
You have this in Rename:
 
4:11 AM
sup
 
private bool IsSelectedReference(QualifiedSelection selection, Declaration declaration)
{
    return declaration.References.Any(r =>
        r.QualifiedModuleName.Project == selection.QualifiedName.Project
        && r.QualifiedModuleName.ComponentName == selection.QualifiedName.ComponentName
        && r.Selection.ContainsFirstCharacter(selection.Selection));
}
And I have this in Reorder:
private bool IsSelectedReference(QualifiedSelection selection, Declaration declaration)
{
    return declaration.References.Any(r =>
        r.QualifiedModuleName == selection.QualifiedName &&
        r.Selection.ContainsFirstCharacter(selection.Selection));
}
 
they're technically the same
 
I know I originally copied from Rename, but I'm not sure which is the most recent version.
OK, then I'll keep the shorter.
Now, FindTarget() relies on that.
 
just verify that QualifiedModuleName.Equals does the long version
 
What should I do there? Put that in Declarations() too?
 
4:13 AM
it could be turned into some bool IsSelected(QualifiedSelection selection) method in Declaration
 
var result = other.Project == Project
    && other.ProjectName == ProjectName
    && other.ComponentName == ComponentName
    && other._contentHashCode == _contentHashCode;
return result;
But there is also IsSelectedDeclaration().
 
oh
 
It relies on both these.
 
I wonder if the _contentHashCode check is really needed here
it's not hurting though
 
I don't know, probably half the code base is neither helping nor hurting.
Well, not that much yet.
Shoot, I should have gotten in the bath after the dishes.
 
4:16 AM
it ensures you can't compare a stale parse result against a revised version of the same module
 
GTG quick, BBL.
 
later
 
4:36 AM
Back.
 
I've found where in the resolver I'm resolving to the function/getter declaration and returning early.
 
That's a start.
 
        if (localScope.IdentifierName == identifierName
            && _returningMemberTypes.Contains(localScope.DeclarationType))
        {
            return FindFunctionOrPropertyGetter(identifierName, localScope);
        }
yeah
 
Any idea of what I should do about IsSelected*()?
 
25 mins ago, by Mat's Mug
it could be turned into some bool IsSelected(QualifiedSelection selection) method in Declaration
 
4:39 AM
The can probably be static/one-time-things somewhere.
Oh, combine them?
 
one in Declaration, the other in IdentifierReference
NO!
they're absolutely not doing the same thing
 
Oh, OK.
OK, I'll do that.
public, right?
 
IsSelectedDeclaration takes caret position and returns true if it corresponds to any declaration's QualifiedSelection. IsSelectedReference takes the same caret position, but returns true if it corresponds to any reference
 
Of course.
 
yes
so it makes sense to refactor them into Declaration.IsSelected and IdentifierReference.IsSelected
that would centralize that concern where it belongs
 
4:43 AM
OK, that's done.
 
cool
 
Should they be static?
 
no need
 
OK, so how do I even use them then?
var target = Declarations.Items
    .Where(item => !item.IsBuiltIn)
    .FirstOrDefault(item => IsSelectedDeclaration(selection, item)
                         || IsSelectedReference(selection, item));
 
where and how is IsSelectedReference used?
^^ there
 
4:44 AM
They are all used in situations like that.
 
item.IsSelected(selection)
 
Oh, OK.
Duh.
 
oh wait a minute
return declaration.References.Any(r =>
    r.QualifiedModuleName == selection.QualifiedName &&
    r.Selection.ContainsFirstCharacter(selection.Selection));
IsSelectedReference works off a Declaration, too
my bad
so both belong in Declaration then
or no
no
.FirstOrDefault(item => item.IsSelected(selection)
                     || item.Rerefences.Any(r => r.IsSelected(selection, item);
IsSelectedReference would have to be modified a bit to work off a single IdentifierReference
and then bingo
following?
hi @KK_!
 
Yes.
 
KK_
Hello
 
4:48 AM
Sort of...
Hi, @KK_.
 
KK_
Hi
 
welcome to the rubberduck lab :)
 
KK_
Happy Independence Week
 
Same to you.
 
KK_
I was wondering if I could impose a little upon your time and ask an opinion on a question I asked on SO. Someone has kindly responded with a comment, but I am not sure they follow - and somewhat more worringly, I am concerned that I don't follow.
 
4:51 AM
sure, go ahead
link?
 
KK_
0
Q: Edit Value In Excel Range

KK_I have an excel sheet with values in a range which I want to perform some calculations on in vb.net. I pass that range to vb.net using COM. When I try editing the values of the range, nothing happens. My question seems to be very similar to these questions, but I can't quite figure out what ste...

basically i wrote a vb.net function that takes in a range and produces a result. I wanted to pass in a range, then bump the values in that range and use my original function many times.
i could rewrite the original function to work with an array, but this seemed so elegant, that I have spent more time on trying to get it work than it woudl have taken to rewrite the code from scratch to use arrays
 
why do you need newrng at all?
 
KK_
i dont think i do, i got rid of it as i think it complicates with pointers/references
 
I think your exception is thrown right here:
newrng.Value2(i, 1) = myrng.Value2(i, 1) + 1
 
KK_
i can bump the original range, then unbump it if that is easier
 
4:56 AM
what's (i, 1) for?
AFAIK Range.Value2 isn't an indexed property
 
KK_
yes, i think it returns the value, like a slice
but doesnt allow overwrite
i think the way it is done in c # is to create the array you want the values to look like
 
it should
 
KK_
then myrng.value = newarray
 
or did you intend to do newrng(i,1).Value2 = ?
(not sure if that's legal either)
hold on
myrng.Cells(i,1).Value = myrng.Cells(i,1).Value + 1
does VB.NET support the += operator? you could do myrng.Cells(i,1).Value += 1
 
KK_
i tried
myrng.Value2(i, 1) = myrng.Value2(i, 1) + 1, but let me try +=
 
5:02 AM
@KK_ I think the problem is that your (i,1) is on Value2 - put it on myrng instead
myrng.Value2(i,1) vs. myrng(i,1).Value2
Property Value2 isn't indexed, you can't legally give it parameters
it's just an object
Range however..
 
KK_
I just tried this , but same error :
myrng(1, 1).Value2 += 1
+ myrng(1, 1).Value2 1.0 {Double} Object
 
how about
newrng.Cells(i, 1).Value2 = myrng.Cells(i, 1).Value2 + 1
 
KK_
it does evaluate though
 
if it evaluates, you're there
looks like VB.NET doesn't have a += operator.
 
KK_
vb.net does have += operator
i have used it
 
5:06 AM
meh
sorry
could it be an index out of range? what's the value of i?
nevermind, you got it starting at 1
I'm sure you could get more a meaningful error message if you wrapped the function in a try..catch block
 
Now if anybody touches that FindSelection() method, I'll be furious.
I spent days working the bugs out of that.
 
@KK_ if you go to your VB.NET project properties in VS, in the debug tab there should be a place to launch another application - enter the path to EXCEL.EXE there, then you can have Excel launched on F5-debug in VS
 
KK_
yes i am doing that
 
then you can break and inspect whatever exception you're getting before it gets back to Excel
hmm
 
KK_
that is what i am doing to get this exception
i am debugging in vs2013
i think try catch is a good idea, i havent used that much
 
5:11 AM
 
KK_
i am happy that it wasnt somethign silly
but now, my interest is piqued into trying to get it to work!
 
I'm pretty sure myrng.Value2(i,1) can't work
 
KK_
yes agree
 
try passing the range by value instead of by reference
 
KK_
i have tried myrng.item(), myrng.cells, myrng.value
yes i tried that also
just now
i think it maybe that it only works if the range is "hardcoded" in
ie specify the worksheet and address
 
5:13 AM
that'd be dumb. I'm sure there's a way
 
KK_
so i will try that and see if the range created that way, differs to the ramge passed as an argument in a function
i know...the range passed as a function argument, also passes the address as an attribute
 
wrap it with a try..catch, and then break (F9) on the first executable line, and just step through and inspect your range and the objects you have there.
 
KK_
i think i will try and get it working in a pure vba environment
 
^^ good idea
then just "translate" it to VB.NET
 
KK_
5:16 AM
so vba user defined function pulls in a range etc, edit, then spit the range back out again
yes
cool
 
[rubberduck-vba/Rubberduck] build for commit d086f297 on ???: AppVeyor build succeeded
 
KK_
ok let me have a stab at that - thanks for taking a look at this - it was nice to discuss!
 
[rubberduck-vba/Rubberduck] build for commit d086f297 on ???: AppVeyor build succeeded
 
avoid using default properties, too. be explicit about the object types you're using
 
KK_
yes def
 
5:16 AM
[rubberduck-vba/Rubberduck] build for commit 0e8c5461 on ???: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit 0e8c5461 on ???: AppVeyor build succeeded
 
like, instead of myrng(i,1) use myrng.Cells(i,1) for example
 
KK_
yes good idea
 
good luck!
 
I'm going to bed - past midnight here.
Have fun, all!
 
KK_
ditto, gnite all
 
5:18 AM
'night @Hosch250! I'll take a look at your PR
@KK_ take a look at rubberduck :)
 
KK_
i will do - i was v impressed with the idea of a good vba ide
 
we're really at the polishing stage now, 1.4 is pretty stable (except the source control stuff, which is really a beta feature)
still, GitHub source control integrated in the VBE is... like woah :)
 
KK_
wow, i didnt think git and vba mixed - ever
 
eh, a year ago I didn't think unit tests and VBA could mix either
and I was told refactor/rename is impossible
Mar 8 at 17:15, by Duga
> @retailcoder: I don't think current ANTLR parser is ready for rename a la VS.Net style. There is no symbol tables implementation and you can't move beyond parse trees (to AST) so you cannot tell if an identifier is a method or a local variable. Current parser cannot tell if A(i) is call method A with arg i or access array A with index i.
 
KK_
what unit tests in vba???
 
5:22 AM
Mar 8 at 17:28, by Mat's Mug
@Duga oh yeah? watch me then. I promise you we're ready for this.
@KK_ uh-huh
and rename, extract method, reorder & delete parameters refactorings
and find all references
and code inspections
and todo markers
and in Rubberduck 2.0 we're embedding the SmartIndenter add-in
 
KK_
damn, that sounds awesome. agree smart indenter is a nice feature on vs
 
you know SmartIndenter right?
 
KK_
is that was vs studio does to .net code
formats it nicely
 
nope. it's an add-in for the VBE
 
KK_
as you write it, assuming it compiles
 
5:25 AM
> The original author and current maintainer of the popular Smart Indenter add-in have graciously offered the latest version of their source code to the Rubberduck project. Thanks to Rob Bovey and Stephen Bullen, Rubberduck 2.0 will have the smartest automagic indentation built-in.
 
KK_
2003?
i have never heard of this!
 
a lot of serious VBA devs use only 2 add-ins: MZ-Tools, and SmartIndenter.
we're embedding SmartIndenter, and our features make a lot of MZ-Tools features look like toys
 
KK_
ok i will be installign smart indenter first thign tmrwe
 
and rubberduck ;)
 
KK_
but of course!
 
5:29 AM
yay!
make sure you follow us on twitter (@rubberduckvba) too, or on WordPress (rubberduckvba), the project is pretty active, so we're releasing pretty often. 1.4 was exceptionally long to deliver (2 months), but you can expect hotfixes and new features pretty much every month
 
KK_
will do definitely
 
can you believe this code compiles?
Sub Foo()
    Dim Foo As New Foo
    With Foo
        With .Foo
            .Foo = 42
        End With
        Bar .Foo.Foo
    End With
End Sub
gotta love VBA
 
KK_
you need to create Foo class no?
 
yeah
 
KK_
what does Bar .Foo.Foo do?
Bar is anothr class?
you init it with 42?
 
5:35 AM
nah, just a procedure in the same scope
 
KK_
ok
 
that's the code I've been testing the latest resolver with
Find all references correctly resolves every single Foo in there
now I'm working on a bug where if I take that code and make the Sub a Function instead, ..well, nothing works anymore - every single Foo resolves to a reference to the function itself
except the local variable, Dim Foo
 
KK_
damn
that is quite complicated - how will you make it realise Foo isnt Foo
 
I know right? if only VBA had a return statement, instead of assigning a function's return value like Foo = result
but.. the VBA interpreter was written with code. If VBA can deal with it, Rubberduck should be able to deal with it.
 
KK_
ok old chap, i am heading to bed. many thanks for the ideas and mentioning smartindenter. i look forward to trying our rubberduck!
 
5:44 AM
'night! come back anytime!
 
KK_
will do
 
5:59 AM
oh wow. VBA won't compile a function Foo with a local Foo. that pretty much solves half of my problem
Function Foo()
    With New Foo
        With .Foo
            .Foo = 42
        End With
        Set Foo = .Foo
    End With
End Function
works
Function Foo() As Integer
    With New Foo
        With .Foo
            .Foo = 42
        End With
        Foo = .Foo.Foo
    End With
End Function
works
I call that a fixed bug
and it's 2AM and I'm outta here
 
[rubberduck-vba/Rubberduck] retailcoder pushed commit 4c1a6e31 to GrammarIsFun‌​: fixed resolver bug with resolving ambiguous names in returning members (functions and property getters)
[rubberduck-vba/Rubberduck] build for commit 4c1a6e31 on GrammarIsFun: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit 4c1a6e31 on GrammarIsFun: AppVeyor build succeeded
> remove, don't comment-out. it's GitHub's job to do version control, not the code's :wink:
> could be renamed to just IsSelected.
> Same here, could be renamed to just IsSelected.
[rubberduck-vba/Rubberduck] build for commit 4c1a6e31 on GrammarIsFun: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit 4c1a6e31 on GrammarIsFun: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit 4c1a6e31 on next: AppVeyor build cancelled
BUILD FAILURE!
 
6:16 AM
wtf
 
Merge pull request #687 from rubberduck-vba/GrammarIsFun

resolver fix
[rubberduck-vba/Rubberduck] build for commit 4c1a6e31 on next: AppVeyor build failed
BUILD FAILURE!
[rubberduck-vba/Rubberduck] Hosch250 pushed commit d086f297 to master: Refactor FindTarget out of refactorings
Merge pull request #2 from rubberduck-vba/next

Pull from main repo
Merge pull request #686 from Hosch250/next

Refactor certain refactorings
[rubberduck-vba/Rubberduck] build for commit 38d0361a on next: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit 38d0361a on next: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit 45bbda83 on master: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit 45bbda83 on master: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit 38d0361a on next: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit 38d0361a on next: AppVeyor build succeeded
 
works great!
wo
crap
@Hosch250 dude, that went straight to master!!
grrr
NEVER commit to master.
 
> You're all set—the master branch can be safely deleted.
yeah, right
 
Merge pull request #688 from rubberduck-vba/master

Syncing master with next
[rubberduck-vba/Rubberduck] build for commit 45bbda83 on next: AppVeyor build cancelled
BUILD FAILURE!
[rubberduck-vba/Rubberduck] build for commit 45bbda83 on next: AppVeyor build cancelled
BUILD FAILURE!
[rubberduck-vba/Rubberduck] build for commit db4637dc on next: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit db4637dc on next: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit db4637dc on next: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit db4637dc on next: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit db4637dc on next: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit db4637dc on next: AppVeyor build succeeded
 
6:32 AM
ok. everything seems to work
building 1.4.2 release
 
[rubberduck-vba/Rubberduck] build for commit db4637dc on next: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit db4637dc on next: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit db4637dc on next: AppVeyor build cancelled
BUILD FAILURE!
[rubberduck-vba/Rubberduck] build for commit db4637dc on next: AppVeyor build cancelled
BUILD FAILURE!
Merge pull request #689 from rubberduck-vba/next

1.4.2 release
[rubberduck-vba/Rubberduck] build for commit 90788f88 on master: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit 90788f88 on master: AppVeyor build succeeded
 
ok. now [master] is up-to-date with the latest release. next one to commit to [master] owes everyone a beer.
 
6:51 AM
1.4.2 hotfix released! If you have VBA code that Rubberduck doesn't correctly resolve, please let us know!
Ok. now [master] is up-to-date with the latest release. Next one to commit to [master] owes everyone a beer. #GitHub #Teamwork #ShitHappens
 
00:00 - 07:0011:00 - 00:00

« first day (394 days earlier)      last day (2786 days later) »