« first day (1460 days earlier)      last day (1720 days later) » 

12:00 AM
RELOAD!
[FreezePhoenix/Angels-And-Demons] 5 commits. 11118 additions. 109 deletions.
[rubberduck-vba/Rubberduck] 6 commits. 1 opened issue. 2 closed issues. 17 issue comments. 11234 additions. 3408 deletions.
 
@MathieuGuindon public sub foo( resulted in public sub foo()))
Also trying to use undo deleting the ) from public sub foo() causes it to be put right back.
 
hmm crap, gotta fix that one
thanks!
 
Should I list every issue?
I'm finding a couple or open them as issues under your branch?
 
you can post review comments on the PR itself
FWIW I'm not going to bother with detecting whether we're in a line-continuated comment. too bad. not going to be dealing with line numbers either.
@IvenBach odd. I repro'd on first attempt, and now it works fine.
 
> Testing it out.

`public sub foo(` resulted in `public sub foo()))`. Can't get a repro on it right now...

`With Activesheet.Range("` becomes `With Activesheet.Range("|") with cursor where vertical bar is. Trying to delete `)` results in `With ActiveSheet.Range("A1"|"` cursor in between "".
 
12:09 AM
@MathieuGuindon I got it the very first time i tried. Haven't shut down and reopen.
I'll keep noting the easter eggs I find.
It's awkward having the VBE auto complete stuff, but once I get used to it I'm sure it'll become second nature.
 
@IvenBach IKR!
 
[rubberduck-vba/Rubberduck] build for commit 24060091 on unknown branch: AppVeyor build succeeded
 
@Duga is that DEL or BKSPC?
 
My first reaction was 'WTF! VBA doesn't do that' then I remembered...
2
Backspace.
 
1
Q: Enhancing autocompletion for VBA code

Mathieu GuindonContext The Visual Basic Editor (VBE) does a good job at completing member scopes, for example when you type this and hit ENTER... Private Sub DoSomething You get this for free: Private Sub DoSomething() End Sub The problem is that VBA is a very, uhm, blocky language, and the VBE doesn't ...

 
12:12 AM
@IvenBach if it works reasonably well for you then I'll implement the settings and make it opt-out. Otherwise I'll implement the settings and make it opt-in.
 
Home time.
I'm just excited to not have to remember endif every time now. Same goes for Eti With and the rest.
 
@IvenBach best part is the auto-indent IMO =)
 
[rubberduck-vba/Rubberduck] build for commit c9922388 on unknown branch: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit 24060091 on unknown branch: 53.07% (target 0%)
 
 
2 hours later…
2:25 AM
Microsoft bought Minecraft, people thought Minecraft would go Xbox-exclusive. Not only did that not happen, Minecraft now supports multiplayer across all different platforms except PS4 (Switch coming soon). Microsoft. Are. Not. Evil. (Anymore.)
So I finally got around to toy with @Camtasia (try it out!!) and made a little video previewing the new/upcoming autocomplete feature =) #vba #autocomplete #autoindent https://www.youtube.com/watch?v=jGtEzpSoC3Y
 
2:58 AM
@MathieuGuindon does autoindent honour the user's IDE indent characters value?
 
as per the indenter settings, yeah
 
@MathieuGuindon I spy a little arrow coding.
 
3:28 AM
How do you do you do code blocks on wordpress?
I'm wording my way through a macro recorder example and would love line numbers like I've seen on your posts.
@MathieuGuindon All humor aside, that is impressive Mug.
 
@IvenBach [code language="vb"] ... [/code]
 
Does it require any special setup, CSS, or plugin to work?
 
nope
works better in HTML entry mode though
 
Hrm.. not working for me. That's a nicety I'll go back to do.
I have to preview it to actually see it. Think I have it working. Thanks again Mug.
 
3:43 AM
:+1:
yeah only renders in preview
 
^^ settings UI is up!
 
:drool:
 
with the settings working and the user's ability to selectively disable autocompletes, I'm rather tempted to merge the PR as-is now.. works well enough for a "phase I" to me
 
[rubberduck-vba/Rubberduck] build for commit e8e5cb82 on unknown branch: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit e8e5cb82 on unknown branch: 52.98% (target 0%)
 
4:31 AM
Wow, MS is paying $7.5bn... so much for reports of up to $2bn...
 
[rubberduck-vba/Rubberduck] build for commit 5c9db8a3 on unknown branch: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit 5c9db8a3 on unknown branch: 52.98% (target 0%)
 
4:43 AM
[rubberduck-vba/Rubberduck] build for commit aabbb848 on unknown branch: AppVeyor build succeeded
[rubberduck-vba/Rubberduck] build for commit aabbb848 on unknown branch: 52.98% (target 0%)
[rubberduck-vba/Rubberduck] retailcoder pushed 33 commits to next (only showing some of them below)
[rubberduck-vba/Rubberduck] retailcoder pushed commit 459d3224 to next: load & apply settings
[rubberduck-vba/Rubberduck] retailcoder pushed commit 07b15a54 to next: skip block-autocomplete for comments
[rubberduck-vba/Rubberduck] retailcoder pushed commit c5ac6003 to next: added autocompletion for #If...#EndIf blocks
[rubberduck-vba/Rubberduck] retailcoder pushed commit ddb29938 to next: removed unused fluff
[rubberduck-vba/Rubberduck] retailcoder pushed commit 24060091 to next: removed fluff
[rubberduck-vba/Rubberduck] retailcoder pushed commit c9922388 to next: honor enum indenter settings
[rubberduck-vba/Rubberduck] retailcoder pushed commit e8e5cb82 to next: implemented settings UI
[rubberduck-vba/Rubberduck] retailcoder pushed commit 5c9db8a3 to next: autosize list/grid
[rubberduck-vba/Rubberduck] retailcoder pushed commit aabbb848 to next: fixed broken resource ref
Merge pull request #4038 from retailcoder/hooker

AutoComplete, phase I
> @LukeHSC merged! let me know what you think! 😃
 
@MathieuGuindon Poll the ducklings on Twitter.
 
oh yeah
 
@bruglesco Welcome to the pond.
 
@IvenBach Thanks
 
5:33 AM
posted on June 05, 2018 by Rubberduck VBA

I got nerd-sniped. A Rubberduck user put up a feature request on the project’s repository, and I thought “we need this, yesterday”… so I did it, and the result crushed all the expectations I had – the prerelease build is here! There are a few quirks – but rule of thumb, it’s fairly stable and works pretty… Continue reading Autocomplete Enhancement

 
That was a silent poll.
‘Val’ I’ve heard has some issues and should be avoided. What’s the reason for it? I couldn’t find it.
 
5:50 AM
Autocomplete Enhancements https://rubberduckvba.wordpress.com/2018/06/05/autocomplete-enhancements/
 
Night pond.
 
 
2 hours later…
7:39 AM
@MathieuGuindon that's not the only reason. It just makes sense to think of declarations as the smallest referenceable unit in RD
@Hosch250 IIUC merging either of the PRS should automagicallly mark the other one as merged as well
not sure whether it works across forks though.
 
 
2 hours later…
9:32 AM
After the last build, I can't open "RD - Settings". Any tips on how could I find out why?

I click on Rubberduck - Settings - nothing happens.
 
logs are clean?
 
It does not happened first time. I had problem with that in the past but around 1 to 2 build in the past it worked well.
 
pokes @MathieuGuindon with a sharp stick
 
    2018-06-05 11:31:30.4982;TRACE-2.2.6730.19673;Rubberduck.Common.LogLevelHelper;
    	Rubberduck version 2.2.6730.19673 loading:
    	Operating System: Microsoft Windows NT 10.0.16299.0 x64
    	Host Product: Microsoft Office 2016 x86
    	Host Version: 16.0.4678.1000
    	Host Executable: EXCEL.EXE;
    2018-06-05 11:31:30.5201;TRACE-2.2.6730.19673;Rubberduck.App;Checking for legacy Smart Indenter settings.;
    2018-06-05 11:31:30.7573;TRACE-2.2.6730.19673;Rubberduck.Common.Hotkeys.Hotkey;Hotkey for the associated command Rubberduck.UI.Command.Refactorings.CodePaneRefactorRenameCommand
 
> could not instantiate Rubberduck.UI.Settings.SettingsForm
note that your stacktrace is leaking your username ...
Apparently the DI registration for the SettngsForm is borked
 
10:21 AM
you mean C:\Users\jverner? Is it bad? I don't mind.
 
just something to be aware of :)
 
Okay, thanks :-)
Is it not safe?
 
depends on what you define a safe.
I may be a little paranoid in that regard.
 
10:38 AM
ooh, an interesting FRM file, with 260 character Caption and Tag properties:
VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} UserForm1
   Caption         =   $"UserForm1.frx":0000
   ClientHeight    =   2863
   ClientLeft      =   91
   ClientTop       =   406
   ClientWidth     =   4298
   OleObjectBlob   =   "UserForm1.frx":0108
   StartUpPosition =   1  'CenterOwner
   Tag             =   $"UserForm1.frx":0B20
End
Attribute VB_Name = "UserForm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
OleObjectBlob doesn't start at 0x0000....
 
10:56 AM
@ThunderFrame I saw some of these in my VB6 testing - github.com/rubberduck-vba/Rubberduck/issues/3995
 
@Vogel612 huh wth
 
@ThunderFrame I wonder why the OleObjectBlob doesn't have a $ before the location specification
 
11:10 AM
@MathieuGuindon Should I create an issue?
 
@SonGokussj4 yeah, please
 
if I have text = "skldf""", how do I delete the last two "" :-D Delete, Backsspace Select those 2 and press delete/backspace, nothing works :-) And can't set it off because I can't get ot Settings :-)
New issue for this too?
Ah, figured it out. 3x backspace, 1x del. But can't put the cursor on the new line and then back on the first line :-) that will generate two more "" again :-D This will be fun.
 
11:28 AM
> Hi guys, in the last build (and few before but not the one that fixed the building through VS) I've noticed that when I click on RD - Settings, the Settings windows does not appear.

Excel opened
VBE opened (RD load just fine)
Click on RD - Settings
Copied Trace Log from user/appdata/...rd/log folder.

[RubberduckLog_Trace.txt](https://github.com/rubberduck-vba/Rubberduck/files/2072131/RubberduckLog_Trace.txt)
 
Now how does the registration work fine on my machine and not there..
I must have messed up an assumption there... based it on the inspections settings tab
 
11:44 AM
@SonGokussj4 wait it didn't break with the merging of my autocomplete stuff?
 
11:57 AM
well, when I tried git pull upstream next, it didn't want to merge because of these two files:
Rubberduck.Resources/Rubberduck.Resources.csproj
Rubberduck.Resources/Settings/SettingsUI.cz.resx
so I did something like Fetch , then reset --hard, then pull after I made backup from these two and everything merged? just fine.
Now trying to build it not at my Work computer but my Laptop.
 
@SonGokussj4 ooh, I think I know how to fix this! Yeah make another issue if you have the time =)
Hmm, but the resx isn't related to the exception
 
FWIW -- it might be that it's throwing because it is not finding the autosetting in pre-existing configuration
I ran into a similar problem when I implemented the compile before parse feature, which was a new leaf node in the existing general setting xml
 
12:20 PM
So I just tried the same process on my Laptop... (i'm building it in Laptop from the same OneDrive folder so I didn't even "pull upstream", because it was already pulled.

Settings menu appear just fine.
I'll try building it on my Work PC once again.
 
so I had a interesting observation. When I tried to run with no explicit registration, I found out that Castle Windsor will try to instantiate a QualifiedSelection.
That worries me as I think that is knowing too much - QualifiedSelection shouldn't be a part of the registration/resolution, at all, I'd think. It came up only because I was passing in a null for a model that used QualifiedSelection in its ctor, so CW went and tried to construct the model, but couldn't new up the QualifiedSelection being a value type, rather than a reference type.
I kind of expected CW to throw an exception about not being able to resolve the model because it's not supposed to be registered, rather than throwing an exception about unable to new up the QualfiiedSelection. Is that reasonable expectation?
 
Sooooo.... Everything is pulled from upstream/next without a problem. But when I open VS, this happens.
    [Failure] Could not find file 'C:\Users\SecretUser\OneDrive\GIT\Rubberduck\Rubberduck.Core\obj\Debug\UI\Settings\GeneralSettings.g.cs'.
    [Failure] Could not find file 'C:\Users\SecretUser\OneDrive\GIT\Rubberduck\Rubberduck.Core\obj\Debug\UI\Controls\GroupingGrid.g.cs'.
    [Failure] Could not find file 'C:\Users\SecretUser\OneDrive\GIT\Rubberduck\Rubberduck.Core\obj\Debug\UI\CodeExplorer\CodeExplorerControl.g.cs'.
    [Failure] Could not find file 'C:\Users\SecretUser\OneDrive\GIT\Rubberduck\Rubberduck.Core\obj\Debug\UI\Controls\LinkButton.g.cs'.
Build log ends well though...
1>------ Build started: Project: RubberduckCodeAnalysis, Configuration: Release Any CPU ------
2>------ Build started: Project: Rubberduck.Resources, Configuration: Debug Any CPU ------
3>------ Build started: Project: Rubberduck.Interaction, Configuration: Debug Any CPU ------
3>C:\Users\SecretUser\OneDrive\GIT\Rubberduck\Rubberduck.Interaction\Properties\AssemblyInfo.cs(39,32,39,39): warning CS7035: The specified version string does not conform to the recommended format - major.minor.build.revision
 
if it doesn't error out, it should be okay
 
Work PC - Settings problem
Personal Laptop - Settings OK
 
@SonGokussj4 did you happen to customize settings for anything else on the work pc but not on personal laptop?
(prior to the pull, i mean)
 
12:36 PM
@this Well, ... I think that the first time I tried to apply cs-CZ language and after some Pull the Settings didn't appear, I manually set that to en-EN in User/appdata/roaming/rubberduck/rubberduck.config
 
and I'm thinking that if you have a existing setting file, the setting UI don't work because it can't load it.
that'd be why it'd not work on that one PC but apparently work on other PC for where there are no customized setting file.
 
That would make sense
Nice!
It works.
I've backupted the old .config and removed it. It created a new one when I click "Save" in Settings.
 
:+1:
Obviously we need a bit more thought toward handling new settings in the setting stuff.
 
The reason why I manually changed it was because it didn't appear after I made a Pull when I had the language changed to Czech. Or something like that.
 
@Vogel612 The dollar indicates that the value is a string and the length of the string is at the offset with a length of 2 bytes (IIRC).
 
12:41 PM
Right I expected that it'll work when you add the czech again, you should see more nodes in the XML in the new setting file.
 
@mansellan I've cracked some hefty VB6 FRM files, with images and custom controls and property bags, so I'm pretty sure my parser can handle them all. This is the first time I've been able to engineer a FRM file with a blob that starts at a non zero location.
 
> Resolved by deleting config file:
`C/Users/SecretUser/AppData/Roaming/Rubberduck/rubberduck.config`

In the past I've **manually changed** language settings to:
```
<Language Code="en-EN" />
```

The **correct setting should have been**:
```
<Language Code="en-US" />
```

New `.config` was created and Settings window appear just fine.
 
Don't know if it's fine that I've closed the issue or you plan to do something with that in the future. I can reopen it if you want.
 
well ... let's see if I can still implement Dijkstra off the top of my head
 
1:40 PM
OK, @MathieuGuindon, so now my lazy fingers want to type Dim myColl as Collection and I want autocomplete to add a new line with Set myColl = New Collection and ditto for Scripting.FileSystemObject and Scripting.Dictionary, and maybe MSXML.XmlHttpRequest too. Heck, it might need to be a user-configurable list of instantiable types.
3
 
that is a great idea
 
Hell yesss!
 
Sure, some people will have factories/helper functions that return a constructed object, but most use cases would just New it up.
 
The hard part would be to know what the type is, without having the resolver backing it up
Dim c As VBA.Collection
Not impossible though
Assuming there's a parser state around with a populated declaration finder
 
1:46 PM
It can ignore the resolver, and naively copy the type you declare. If you're not explicit enough, you get the unexpected type, and it's your own fault.
 
That could work
 
Ponders which feature he wants most: turbo-charged-autocomplete, where 90% of code writes itself, or Avalon codepanes
 
mixed bag for me. I like the idea of autocompleting the Set statement but I also think about other half time they'll come from a function call or something like that so the autocompletion would just get in the way
 
What the heck, I'll just anticipate both.
 
1:50 PM
@this me too
 
FWIW, if it's going to autocomplete, it probably should only for Set
 
agreed, and IMO that would be better off as an IntelliSense enhancement
 
hmm. that's true.
so I think that answers ThunderFrame's question. He wanna avalon. ;)
 
you type Set TAB TAB and you've just Set the variable you just declared
 
do you dim then set, dim, then set, or dim, dim, then set, set?
I think most vBA code out there are the former variety
 
1:52 PM
dim then set
@this sadly
 
remembers favorite C64 color scheme: Black Border, Grey background and yellow text... Damn that was good
 
and to be honest, I struggle to see the benefit of keeping dim next to the set. Lot of time, I find that I need them in a block, and dim them in middle of block just feel wrong.
 
you need to write/maintain a few 1000-liner methods again.. then it'll hit you ;-)
 
Yuck. No.
But not all blocks can be made their own methods, either.
 
it reduces the cognitive load. foo doesn't enter the equation until it needs to.
 
1:55 PM
@MathieuGuindon Or, you type `Dim myColl As New Collection, and it autocorrected to the 2-line declare and instantiate. It does reinforce a bad approach, but it also magically fixes the inspection before it has even occurred.
 
@ThunderFrame those aren't technically equivalent.
Mind, I like the idea of slapping them on the head and show them the right way to do it.
 
@this The As New syntax is almost never useful
 
@MathieuGuindon Sure, but when it's meant to be used inside the block, putting it in the middle of the block does not convey that notion.
 
@ThunderFrame in a class module, at instance level, it can remove the need to handle Class_Initialize though
 
Other than a lazy Dim FSO As New FileSystemObject declared as a gkobal
 
1:57 PM
@this not sure I follow
@ThunderFrame pfft. As New ADODB.Connection FTW
 
@this IKR, it catches a lot of noobs on SO. They see the Dim as an executable statement...
 
@t3chb0t it was considered for a grand total of 3 pico-seconds, back in 2014. C# FTW! — Mathieu Guindon 8 secs ago
 
@MathieuGuindon here's an example....
 
@MathieuGuindon The connection has state. The FSO is effectively a static class
 
hmm then why didn't they give it a predeclared ID?
 
2:00 PM
Dim Item As Whatever
Dim Temp As String
For Each Item In Items
  If Item.SomeFlag Then
    Temp = Temp & Item.SomeString & vbNewLine
  End If
Next
 
~growl
 
@MathieuGuindon it was released with VB4 and they forgot?
 
If I put the Dim Temp As String Inside the If that looks soooo wrong
for that reason, I put them at the top of the block prior to first use
@ThunderFrame did they even have predeclared in vb4
 
I kinda want to agree, but then putting it at the top reinforces the wrong idea that Dim is an executable statement
 
If you go that path, you might as well have the Dim at the top of every procedure, as everybody does.
 
2:03 PM
@this IIRC, the variable can be declared closer to usage inspection doesn't agree with your aesthetic opinions.
 
TBH I sometimes put it inside, other times outside. #guilty
 
you either will have to just pretend that Dim is a way to mark the "scope" or put the fiction aside entirely.
@ThunderFrame Correct.
The Dim at the top of procedure at least does away with the wrong notion. And if the list is so long, it's one big code smell. But if you have Dim sprinkled all over, it's also a code smell (screaming for a extract method).
 
yet making it much easier to cut into a new method than if everything is at the top
if only we had a refactoring that took care of that...
 
yeah, in fact that's one of my roadblock ATM
handling both styles.
 
2:06 PM
I have to make sure I don't end up creating duplicate Dim statement, so....
(and remove it when it is not longer a local variable, too)
 
Dim foo As String, bar As Long is even more of a PITA if only foo needs to be pulled out
 
yeah, I didn't get there just yet, I think.
I think in my first iteration I was going to leave it alone, let the unused variable inspection pick it up
 
you need to locate the Declaration for every variable in your selection, and determine if it's within or without
 
yes, I did started on that logic before I got uh.... side-tracked.
 
@ThunderFrame "What do we want?" EVERYTHING! "When do we want it?" NOW!!!
 
2:12 PM
@FreeMan only now? I thought we wanted it yesterday....
 
[rubberduck-vba/Rubberduck] web-flow pushed commit f2bc9729 to fix-backspacing: better handling of backspacing/deleting
> trying something...
 
@Duga now gimme a build so I can test this
@this last year ;-)
 
@FreeMan IKR. But, TBH, I think that once the first working Avalon PR is merged, there'll be feverish development, as so many possibilities become realisable. The project will effectively morph from a project that tinkers at the edges of a 20yo IDE, to being a project that is an IDE, and one that can have any modern feature you can think of.
 
@this I was being kind. Mug's newly engaged, he has commitments...
 
@ThunderFrame exactly
well, just the "E" part of "VBE"
come on AppVeyor
 
2:19 PM
sanity check - do you think that VBA is more likely to end up with much more boilerplate code compared to other languages?
 
because of the lack of a framework (or decently-tooled std library), IME VBE code is more likely to end up needing imported modules, or every new project reinvents the wheel
 
Good that's what I thought - and the lack of namespace does not help the matter.
Anyway that's the other major hurdle besides the letter E of the IDE that is overdue for a good solution.
 
@this it's one of the reasons VBA developers resort to incorporating Python, as they can easily tap into lots of libraries.
 
Yeah. COM ecosystem is stagnant. I think VBA wouldn't have been so successful if not for VB6/COM where we used to be able to ride on their coattails. Now that's gone....
and frankly MS has difficult time understanding it's not the language, it's the framework that makes or break the productivity.
 
not MS, just the folks begging for VBA's death
 
2:25 PM
"Let's rewrite it in C#! It's much better!" Easier said than done.
 
deals with VSTO memory leaks, changes mind
 
oh, let's not forget the installation issue.
so you gonna bundle this big runtime, and you gonna build a installer project and ... and... and ...
and MS is all "why aren't you loving VSTO? It's .NET!!!"
 
to be fair you don't bundle the runtime, it's already on every windows box
 
VSTO runtime?
 
the CLR?
 
2:27 PM
IDK if it changed but last time it had to be shipped
no no
there was/(is?) VSTO runtime that you must ship
 
@this and now they want JavaScript UDFs, but again, no framework
 
@this oh, look at that, that's right
 
Remember COM shims? VSTO runtime is supposed to provide that.
but then it ties you to a particular version of Office.
wait, VBA doesn't? Hmmm....
 
[rubberduck-vba/Rubberduck] build for commit f2bc9729 on fix-backspacing: AppVeyor build succeeded
> # [Codecov](https://codecov.io/gh/rubberduck-vba/Rubberduck/pull/4058?src=pr&el=h1) Report
> Merging [#4058](https://codecov.io/gh/rubberduck-vba/Rubberduck/pull/4058?src=pr&el=desc) into [next](https://codecov.io/gh/rubberduck-vba/Rubberduck/commit/06bf68b741885945080a957226080de4837d3199?src=pr&el=desc) will **increase** coverage by `<.01%`.
> The diff coverage is `0%`.


```diff
@@ Coverage Diff @@
## next #4058 +/- ##
===========================
[rubberduck-vba/Rubberduck] build for commit f2bc9729 on fix-backspacing: 52.98% (target 0%)
 
@Duga installing...
YES SYMANTEC I WANT TO RUN THIS FILE
 
2:29 PM
aw, Symantec cares about li'l you!
 
woopsie
 
I'm such a cowboy
2
I should probably leave this alone until tonight
 
2:49 PM
[rubberduck-vba/Rubberduck] build for commit 1729e689 on fix-backspacing: AppVeyor build succeeded
> # [Codecov](https://codecov.io/gh/rubberduck-vba/Rubberduck/pull/4058?src=pr&el=h1) Report
> Merging [#4058](https://codecov.io/gh/rubberduck-vba/Rubberduck/pull/4058?src=pr&el=desc) into [next](https://codecov.io/gh/rubberduck-vba/Rubberduck/commit/06bf68b741885945080a957226080de4837d3199?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `0%`.


```diff
@@ Coverage Diff @@
## next #4058 +/- ##
=======================================
[rubberduck-vba/Rubberduck] build for commit 1729e689 on fix-backspacing: 52.98% (target 0%)
 
okay, that's not working
 
@MathieuGuindon and proud of it? ~pew pew into the air
 
not really :)
 
I'm kinda proud of myself...
implemented that dijkstra without looking it up
 
2:58 PM
lol I'd be proud to just spell it right without looking it up
 
Edsger W. Dijkstra
nothing against Immerman and.. Szelepscenyi (????)
 
Googles "Dijkstra", turns on "Safe Search", just to be sure...
 
lol
Szelepcsényi
... damn
 
[rubberduck-vba/Rubberduck] retailcoder deleted branch revert-3976-resources
[rubberduck-vba/Rubberduck] retailcoder deleted branch fix-backspacing
 
#FunFact: Edgar's the one who said that quote about BASIC: I think of the company advertising "Thought Processors" or the college pretending that learning BASIC suffices or at least helps, whereas the teaching of BASIC should be rated as a criminal offence: it mutilates the mind beyond recovery.
 
3:03 PM
lol
 
so sorry, folks, you all aren't programmers!
 
@Vogel612 Why should the smallest referencable entity in RD be a declaration? Wouldn't a reference be more natural?
 
@this yikes!
 
there is a difference beyond the semantics?
 
@this *real programmers
 
3:04 PM
ugh.
 
@this We have a registration convention that registers everything not fitting the other conventions to itself.
 
though I learned Apple Basic because that was the only option I was aware of at the time. Forgot everything I knew about it until I had to pick up VBA about 10 years ago because people couldn't understand how to put a grey highlight in a cell in a spreadsheet...
 
oh crap
I'm leaking COM wrappers
using (var module = e.CodePane.CodeModule)
 
@Vogel612 Was that question a reply to my question?
What is e?
 
an EventArgs class instance, that's in the handler for VBENativeServices.CaretHidden
 
3:10 PM
@M.Doerner uh, kinda.
 
I could not identify what exactly it was referring to.
 
@M.Doerner should we be, though? Does CW really need to know about them all?
 
Three is a large difference between declarations and references.
 
that's Declaration and IdentifierReference, right?
 
Each user declaration has at least one reference, but there can be references to the same declaration all over the place.
Yep
 
3:13 PM
as far as code metrics go, I think declarations are a fine granularity level
 
For code metrics, it kind of makes sense, but in general it should not be the smallest usable unit in RD.
 
@MathieuGuindon Skittles? Kit Kat? Snickers? oh, he said COM, not Candy...
 
3:44 PM
@ThunderFrame :+1: for laziness
 
4:03 PM
sup
 
hey @Jelly! Have you tried autocomplete yet?
 
Nope. I will though
 
yup
11 hours ago, by Blogging Duck
posted on June 05, 2018 by Rubberduck VBA

I got nerd-sniped. A Rubberduck user put up a feature request on the project’s repository, and I thought “we need this, yesterday”… so I did it, and the result crushed all the expectations I had – the prerelease build is here! There are a few quirks – but rule of thumb, it’s fairly stable and works pretty… Continue reading Autocomplete Enhancement

 
Can you take a look a this Matt. stackoverflow.com/questions/50686095/…
@MathieuGuindon: Just saw the vid in the wordpress blogpost, that will be helpful
 
4:08 PM
@Jelly never toyed with that, but seems this would be a starting point
or this
 
4:24 PM
thanks
it's very frustrating
 
4:35 PM
hrm... If I'm naming my procedure GetSomething one might presume it's a function that returns a "Something" that it claims to be getting. Might need to refactor some code...
 
@FreeMan YES!
 
Amazing the things you see in your own code when you're looking for something else...
 
#NamingIsHard
in fact, Rename refactoring is probably the one I use the most.
 
#NamingIsHard #RenamingIsEasy #ThanksRubberduck
4
 
^
 
4:50 PM
But, will RD convert from Sub to Function with the appropriate reworking of each call point? #featurerequest
 
no, but RD will tell you where the Function's return value isn't used (...right?)
hmm
I think we only flag functions where the return value is never used
 
the call site shouldn't change
it is legal to call function like sub
 
(whether it's good idea, OTOH....)
 
4:52 PM
removing whatever parameter was being used ByRef to return the Something will also generate compiler errors that identify what call points need to be updated...
#codereviewthecheaterway
 
oh, so you're doing something like Foo(ByRef Bar) to Bar = Foo()?
 
yeah, that's prolly what's going to have to happen.
 
doesn't the "convert sub to function" quickfix already do that?
 
that's a entirely different kind of refactoring and prolly pretty rare?
 
(possibly makes call sites TODO = TheFunction)
 
4:54 PM
@MathieuGuindon dunno. Haven't looked at the inspection results. Just noticed a series of Get... that are all Subs instead of Functions.
Need to make an enhancement before fixing things that already work (even if not written in the best of all possible ways...)
 
look for "procedure can be converted to function" results
 
will do!
nope, not a single one.
 
#GivingUp
But you don't KNOW where the file is located, unless I'm missing something completely obvious. Therefore, you can't. This looks like an X-Y problem: trying to find a solution for X when the problem is Y. If you bring up the reference.pdf from the "front end", then you can easily know where the file is located and don't need to prompt or assume anything. Is the "front end" an Excel worksheet? Some VBA project? A .NET application? — Mathieu Guindon 1 min ago
 
hrm... icon fail:
 
@FreeMan weird
 
4:58 PM
 
they're public??
 
Private Sub GetConfig()
Private Function GetInstructionParameters(
Private Function GetNonStdQuarterPath(
Private Sub GetObjectHandles()
 
some asshole downvoted my question ugh
 
It's about to hit the fan and go everywhere, take cover!
 
@FreeMan then the icons are all correct....
 
4:59 PM
they're all private, but no differentiation between Sub and Function
 

« first day (1460 days earlier)      last day (1720 days later) »