« first day (177 days earlier)      last day (3003 days later) » 

12:13 AM
Ugh. Bad build. Take 2
 
1:42 AM
Woot-woot!! :)
 
2:13 AM
=)
 
@RubberDuck there's something I'm not getting... my Team Explorer is saying I'm working in my CodeInspections branch... but I make a commit & push, and it goes to Master...
 
2:34 AM
Do you have a gitshell open?
Or github for windows maybe?
 
GitExtensions
 
You're not using the built in integration? Git is built into community.
 
I am
but I sometimes resorted to doing things with Git Extensions when I couldn't figure it out in VS
 
2:52 AM
Ahh. Yeah. I do a good bit in the shell. Something's are just easier.
 
3:10 AM
ugh. found a nasty bug here:
        public static bool HasComment(this string line, out int index)
        {
            index = -1;
            var instruction = line.StripStringLiterals();

            var firstIndex = instruction.TakeWhile(c => c == ' ').Count();
            for (var cursor = firstIndex; cursor < instruction.Length - 1; cursor++)
            {
                if (!string.IsNullOrWhiteSpace(instruction.Trim()) && cursor < instruction.Length - ReservedKeywords.Rem.Length
                    &&(instruction[cursor] == CommentMarker
that if condition is screaming EXTRACT ME
it's not correctly picking up comment in Option Explicit: Rem test
oh damn
6
A: The stripping extensions

janosIn HasComment, I find it odd that you have to iterate over the characters. Isn't there something like indexOf that returns the index or -1 otherwise? So that the loop could be replaced with this: index = instruction.IndexOf(CommentMarker); return index > -1; A test for StripTrailingComment w...

        public static bool HasComment(this string line, out int index)
        {
            var instruction = line.StripStringLiterals();

            index = instruction.IndexOf(CommentMarker);
            if (index >= 0)
            {
                return true;
            }

            index = instruction.IndexOf(ReservedKeywords.Rem, StringComparison.InvariantCulture);
            return index >= 0;
        }
lol
 
@Mat'sMug To be fair, when is that ever going to happen?
I get it. It's a corner case that needs to be reported if it does..... but..... ugh.
 
IKR
 
Yeah. People are dumb. You're right.
 
> Really dumb place to put a comment and a terrible use of a instruction separator.
=)
 
3:24 AM
lol
having issues with Instruction.Selection...
 
 
1 hour later…
4:50 AM
@RubberDuck
0
Q: Inspector Rubberduck

Mat's MugOur Rubberduck open-source VBE add-in project is coming along nicely. One of the main features we're going to be implementing in the next release, is code inspections. I started by defining an abstraction: namespace Rubberduck.Inspections { /// <summary> /// An interface that abstracts ...

 
5:08 AM
> Our Rubberduck open-source VBE add-in project is coming along nicely. One of the main features we're going to be implementing in the next release, is code inspections.
Damn that felt good to read.
 
:)
there's quite a few that we can implement like, right away
we can already tell if parameters are passed ByRef implicitly
and when an identifier is an implicit Variant
and whether a module has OptionNodes
 
 
2 hours later…
7:19 AM
 
 
7 hours later…
2:26 PM
@RubberDuck most code inspections are going to be corner cases that pick up all the weird shitz VBA programmers can do! ;)
I think we can parallelize the inspections; we could analyze code on one or more background threads... ...we could actually poll the code and almost-continuously parse it on a background thread, ... ...@RubberDuck can we programmatically add/remove "bookmarks" in code? We could have a bookmark pop up whenever background inspections find something...
 
Ohhh that's a really good idea @Mat'sMug. I'm not sure. Let me see what I can find.
Is there a keyboard shortcut for bookmark? We could set the cursor and simulate a key press. It's hacky, but otherwise there's no programmatic access to them.
 
2:48 PM
Aw
 
Yeah. That sucks. It'll have to be like the other explorers. Double click to go to.
Well... Maybe if we can activate the built in commandbar button.
maybe
 
3:08 PM
@Mat'sMug this works. Just need a robust way of finding the commandbarbutton
Sub setbookmark()
    Dim editMenu As CommandBarPopup
    Set editMenu = Application.vbe.CommandBars("Menu Bar").Controls(2)

    Dim bookmarkMenu As CommandBarPopup
    Set bookmarkMenu = editMenu.Controls(editMenu.Controls.Count)

    bookmarkMenu.Controls(1).Execute
End Sub
 
3:50 PM
Nice!
 
 
1 hour later…
5:06 PM
> I'm currently working on making Rubberduck easier to customize and configure, but Mat keeps babbling about being ReSharper for VBA.
=;)-
 
 
2 hours later…
7:08 PM
lol
 
7:52 PM
@RubberDuck where's that?
 
8:20 PM
One of my favorite R# features, Ctrl+T / "goto anything", is going to be possible to implement... just not with the keyboard shortcut. Basically it's an autocomplete dropdown/combobox that searches for all identifiers in the tree, and tells you where it's at, and lets you navigate to it.
Another one is Go to implementation - navigate to all types that implement such or such method from a base class or interface. That should be feasible too :)
 
8:39 PM
Nowhere quite yet @Mat'sMug.
And I'm pretty sure I can intercept keystrokes. So it is possible. I think.
 
that's like our final frontier...
 
Not sure about that either. I think I want to tackle snippets next. I'll need to intercept keystrokes for that. Or a right click menu.
Gotta finish the Settings dialog first. I got sidetracked.
 
a right-click menu is going to be a must for a bunch of things :)
 
Speaking of, I think I'll eventually rename the different menus to ...UI.
They're going to need to be responsible for wiring up buttons too.
 
yeah
 
 
1 hour later…
10:08 PM
@Mat'sMug here is the rest of that snippet I posted earlier. Back to writing code now. christopherjmcclellan.wordpress.com/2014/11/30/…
 
10:21 PM
A-MAZE-ING!
 
Yeah?
That's not sarcasm is it?? hard to tell over the interwebz....
 
lol! I liked and reblogged...
 
Cool.
I get a few hundred views a month. Not a lot of people wander beyond the status bar I wrote, but some people might get their eyes on it.
bbiab
 
I'd have waited till we packed a little bit more features before a first release, but it's fine. The worst that could happen is a lawsuit from JetBrains :)
 
10:39 PM
Eh, they'd have a hard time making a case. =;)-
And don't underestimate the features we already have. I've been really digging the unit tests and task list.
 
I think there's a bug with the test explorer / TestEngine, it doesn't run tests unless you re-discover them with "run all tests" - in other words, only "run all tests" seems to work properly, the other ones seem to work when they feel like.
in The 2nd Monitor, 10 mins ago, by mjolka
impressive! :)
 
11:06 PM
Hello @Yoh!
 
11:19 PM
@Yoh create an account on Code Review, post some working VBA code, get some upvotes, and then you can come chat here any time - this place is the cradle of a little revolution in the VBA world :)
(I believe you need 20 rep on CR to chat here)
 
Nope. It's 20 rep on any SE site. Chat is SE wide.
Right?
 
not sure
 

« first day (177 days earlier)      last day (3003 days later) »