12:01 AM
[rubberduck-vba/Rubberduck] 6 commits. 5 opened issues. 17 issue comments. 82 additions. 2026 deletions.
12:38 AM
> Argument 2: cannot convert from 'System.Collections.Generic.IDictionary<System.Tuple<string, Rubberduck.Parsing.Symbols.DeclarationType>, Rubberduck.Parsing.VBA.Attributes>' to 'System.Collections.Generic.IDictionary<System.Tuple<string, Rubberduck.Parsing.Symbols.Declaration>, Rubberduck.Parsing.VBA.Attributes>' Rubberduck.Parsing
> Argument 2: cannot convert from 'System.Collections.Generic.IDictionary<System.Tuple<string, Rubberduck.Parsing.Symbols.Declaration**Type**>, Rubberduck.Parsing.VBA.Attributes>' to 'System.Collections.Generic.IDictionary<System.Tuple<string, Rubberduck.Parsing.Symbols.Declaration>, Rubberduck.Parsing.VBA.Attributes>' Rubberduck.Parsing
1:21 AM
so we launch the initial parse task and ask the parser to process all modules; user starts modifying Module1 right away; parser cancels the parse task for Module1, user finishes modifications, parser processes Module1 and starts resolver task; user modifies Module1 again; parser cancels resolver task and starts re-parsing Module1, then restarts resolver task, then reports "ready" state
1:33 AM
the "oh" part was the linking of tokens. never realized you could do that until I read that SO answer yesterday
[rubberduck-vba/Rubberduck] dimitrimitropulos pushed commit 5a62ea0d to next: Adds DefLngLng and DefLngPtr from VB7
[rubberduck-vba/Rubberduck] retailcoder added label user-interface to issue #1257: Hotkey settings tune-up
> Hotkey configuration is currently storing strings like `CTRL-P` instead of `^P` - while it's nice for display, the `HotKey` class isn't expecting a `string key` in the form of `CTRL-P`, and that's causing issues.
Hotkey settings UI needs a checkbox for each modifier key, and should store settings in a format that `HotKey` can read.
private static readonly IDictionary<char,uint> Modifiers = new Dictionary<char, uint>
{
{ '+', (uint)KeyModifier.SHIFT },
Hotkey settings UI needs a checkbox for each modifier key, and should store settings in a format that `HotKey` can read.
private static readonly IDictionary<char,uint> Modifiers = new Dictionary<char, uint>
{
{ '+', (uint)KeyModifier.SHIFT },
[rubberduck-vba/Rubberduck] retailcoder assigned retailcoder to issue #1257: Hotkey settings tune-up
[rubberduck-vba/Rubberduck] retailcoder added label settings-config to issue #1257: Hotkey settings tune-up
[rubberduck-vba/Rubberduck] retailcoder added label critical to issue #1257: Hotkey settings tune-up
2 hours later…
3:24 AM
[retailcoder/Rubberduck] retailcoder pushed commit adc902c0 to next: closes #1257. Hotkeys are working ready to activate their corresponding action
3:42 AM
2 hours later…
5:55 AM
[retailcoder/Rubberduck] retailcoder pushed commit ccc82a41 to next: need to move hotkey/action mapping to composition root
[rubberduck-vba/Rubberduck] retailcoder added label technical-debt to issue #1258: App.cs does too many things
[rubberduck-vba/Rubberduck] retailcoder added label up-for-grabs to issue #1258: App.cs does too many things
> The constructor speaks for itself:
public App(VBE vbe, IMessageBox messageBox,
IRubberduckParser parser,
IGeneralConfigService configService,
IAppMenu appMenus,
RubberduckCommandBar stateBar,
IIndenter indenter,
IRubberduckHooks hooks,
IEnumerable<ICommand> appCommands)
Dependencies and functionality needs to be factored/regrouped into new classes.
public App(VBE vbe, IMessageBox messageBox,
IRubberduckParser parser,
IGeneralConfigService configService,
IAppMenu appMenus,
RubberduckCommandBar stateBar,
IIndenter indenter,
IRubberduckHooks hooks,
IEnumerable<ICommand> appCommands)
Dependencies and functionality needs to be factored/regrouped into new classes.
6:36 AM
[retailcoder/Rubberduck] INOPIAE pushed commit a34c647e to next: translation: removed the '&' from all menue entries for the test explorer
[retailcoder/Rubberduck] INOPIAE pushed commit 5596f780 to next: translation: removed obsolete entries "About_"*
[retailcoder/Rubberduck] INOPIAE pushed commit e29bb70a to next: translation: removed obsolete "Inspections_"*
[retailcoder/Rubberduck] INOPIAE pushed commit 3c61cc6b to next: translation: removed obsolete entries for "Quickfix_", SourceControl_" and "Todo_"
[retailcoder/Rubberduck] INOPIAE pushed commit b6c351cc to next: translation: removed some obsolete entries
[retailcoder/Rubberduck] dimitrimitropulos pushed commit 5a62ea0d to next: Adds DefLngLng and DefLngPtr from VB7
[rubberduck-vba/Rubberduck] retailcoder created pull request #1259: Hotkeys work to merge retailcoder/Rubberduck/next into rubberduck-vba/Rubberduck/next
[retailcoder/Rubberduck] retailcoder pushed commit d1d3e704 to next: ignored SettingsControlTests.cs - these tests actually physically modify the contents of the settings file on disk.
[rubberduck-vba/Rubberduck] retailcoder merged pull request #1259: Hotkeys work from retailcoder/Rubberduck/next into rubberduck-vba/Rubberduck/next
[rubberduck-vba/Rubberduck] retailcoder closed issue #1244: Resolver Error: ReDim Array with Constant
[rubberduck-vba/Rubberduck] retailcoder assigned retailcoder to issue #1231: Code Inspector - Cancelation of "Fix" is triggering reparsing
[retailcoder/Rubberduck] retailcoder pushed commit 6eac8f74 to next: #1231 encapsulate field is cancellable
[retailcoder/Rubberduck] retailcoder pushed commit aa5e422f to next: #1231 - rename project quickfix is cancellable
[retailcoder/Rubberduck] retailcoder pushed commit 16603abe to next: #1231 rename declaration quickfix is cancellable
[retailcoder/Rubberduck] retailcoder pushed commit 86435611 to next: #1231 fixed groupbox label (closes #1231)
[rubberduck-vba/Rubberduck] retailcoder created pull request #1260: #1231 cancellable quick-fixes shouldn't reparse when cancelled to merge retailcoder/Rubberduck/next into rubberduck-vba/Rubberduck/next
[rubberduck-vba/Rubberduck] retailcoder merged pull request #1260: #1231 cancellable quick-fixes shouldn't reparse when cancelled from retailcoder/Rubberduck/next into rubberduck-vba/Rubberduck/next
[rubberduck-vba/Rubberduck] retailcoder closed issue #1231: Code Inspector - Cancelation of "Fix" is triggering reparsing
[rubberduck-vba/Rubberduck] retailcoder pushed commit 6eac8f74 to next: #1231 encapsulate field is cancellable
[rubberduck-vba/Rubberduck] retailcoder pushed commit aa5e422f to next: #1231 - rename project quickfix is cancellable
[rubberduck-vba/Rubberduck] retailcoder pushed commit 16603abe to next: #1231 rename declaration quickfix is cancellable
[rubberduck-vba/Rubberduck] retailcoder pushed commit 86435611 to next: #1231 fixed groupbox label (closes #1231)
7:49 AM
[retailcoder/Rubberduck] retailcoder pushed commit 06c2bb86 to next: Fixes #1231 (fixed broken logic)
[rubberduck-vba/Rubberduck] retailcoder created pull request #1261: Fixes #1231 (fixed broken logic) to merge retailcoder/Rubberduck/next into rubberduck-vba/Rubberduck/next
[rubberduck-vba/Rubberduck] retailcoder merged pull request #1261: Fixes #1231 (fixed broken logic) from retailcoder/Rubberduck/next into rubberduck-vba/Rubberduck/next
[rubberduck-vba/Rubberduck] retailcoder closed issue #1231: Code Inspector - Cancelation of "Fix" is triggering reparsing
[rubberduck-vba/Rubberduck] retailcoder pushed commit 06c2bb86 to next: Fixes #1231 (fixed broken logic)
[rubberduck-vba/Rubberduck] retailcoder added label bug to issue #1262: Hotkey settings modifications are only effective after a restart
[rubberduck-vba/Rubberduck] retailcoder opened issue #1262: Hotkey settings modifications are only effective after a restart
> Changing hotkey mappings will save correctly, but the hook needs to be updated; old keys should automatically deregister and the new settings applied immediately.
[rubberduck-vba/Rubberduck] retailcoder added label settings-config to issue #1262: Hotkey settings modifications are only effective after a restart
8 hours later…
3:41 PM
3:58 PM
4:22 PM
[rubberduck-vba/Rubberduck] retailcoder added label discussion to issue #1263: "Inconsistent accessibility" inspection
[rubberduck-vba/Rubberduck] retailcoder added label code-inspections to issue #1263: "Inconsistent accessibility" inspection
> This code is perfectly legal:
Private Type TSomething
Foo As Integer
Bar As Integer
End Type
Public Something As TSomething
Yet `TSomething` is a *private type*. I would expect `Enum` types to behave the same way. Should we have an inspection for this? What reason is there to make a type `Private` if it needs to be exposed anyway? Would it break anything to make it `Public`?
Private Type TSomething
Foo As Integer
Bar As Integer
End Type
Public Something As TSomething
Yet `TSomething` is a *private type*. I would expect `Enum` types to behave the same way. Should we have an inspection for this? What reason is there to make a type `Private` if it needs to be exposed anyway? Would it break anything to make it `Public`?
[rubberduck-vba/Rubberduck] retailcoder commented on issue #1263: "Inconsistent accessibility" inspection
[rubberduck-vba/Rubberduck] retailcoder added label bug to issue #1264: COM reflection broke the Excel-specific inspections
[rubberduck-vba/Rubberduck] retailcoder added label code-inspections to issue #1264: COM reflection broke the Excel-specific inspections
4:41 PM
[rubberduck-vba/Rubberduck] autoboosh synchronized pull request #1255: Split combined parser into parser and lexer and fix a few reported grammar issues
[rubberduck-vba/Rubberduck] build for commit edc1202e on unknown branch: AppVeyor was unable to build non-mergeable pull request
[rubberduck-vba/Rubberduck] autoboosh synchronized pull request #1255: Split combined parser into parser and lexer and fix a few reported grammar issues
[rubberduck-vba/Rubberduck] autoboosh commented on issue #1056: parsing issues of conditional compilations
4:58 PM
5:38 PM
private class CombinedListener : IParseTreeListener { private List<IParseTreeListener> _listeners; public CombinedListener(IParseTreeListener[] listeners) { _listeners = listeners.ToList(); } public void EnterEveryRule(ParserRuleContext ctx) { _listeners.ForEach(l => l.EnterEveryRule(ctx)); } public void ExitEveryRule(ParserRuleContext ctx) {
1 hour later…
7:52 PM
[rubberduck-vba/Rubberduck] autoboosh commented on pull request #1255: Split combined parser into parser and lexer and fix a few reported grammar issues
[rubberduck-vba/Rubberduck] retailcoder merged pull request #1255: Split combined parser into parser and lexer and fix a few reported grammar issues from autoboosh/Rubberduck/splitparserlexer into...
split combined grammar into parser and lexer grammar for easier maintenance (#1250)
Also, LINE_CONTINUATIONs are now not skipped anymore + are a fragment since they are never used as a standalone token but rather embedded inside other tokens (such as WS)
Also, LINE_CONTINUATIONs are now not skipped anymore + are a fragment since they are never used as a standalone token but rather embedded inside other tokens (such as WS)
[rubberduck-vba/Rubberduck] autoboosh pushed commit 13836e97 to next: move preprocessor grammar to shared vbalexer (#1250)
[rubberduck-vba/Rubberduck] autoboosh pushed commit e189f5d9 to next: replace attributes grammar with vba grammar (#1250)
[rubberduck-vba/Rubberduck] autoboosh pushed commit 1c033478 to next: fix eraseStmt + add missing defs / remove not needed def (#1240)
[rubberduck-vba/Rubberduck] autoboosh pushed commit 578da6d3 to next: fix letstmt/subexpression line continuations (#1242)
[rubberduck-vba/Rubberduck] autoboosh pushed commit cd87d1d7 to next: fix fixed length strings (#1245)
[rubberduck-vba/Rubberduck] autoboosh pushed commit edc1202e to next: fix memberprocedurecall line continuations (#1056)
[rubberduck-vba/Rubberduck] autoboosh pushed commit 02f8f5b8 to next: Merge branch 'next' of github.com/rubberduck-vba/Rubberduck
[rubberduck-vba/Rubberduck] autoboosh pushed commit 42c92d1f to next: add declare line continuation regression test (#1056)
Merge pull request #1255 from autoboosh/splitparserlexer
Split combined parser into parser and lexer and fix a few reported grammar issues
Split combined parser into parser and lexer and fix a few reported grammar issues
[rubberduck-vba/Rubberduck] autoboosh commented on issue #1242: Parser Error: Line Continuation with Parens
[rubberduck-vba/Rubberduck] autoboosh closed issue #1242: Parser Error: Line Continuation with Parens
[rubberduck-vba/Rubberduck] autoboosh closed issue #1240: Parser Error: comma when Erasing two Arrays
[rubberduck-vba/Rubberduck] autoboosh commented on issue #1240: Parser Error: comma when Erasing two Arrays
[rubberduck-vba/Rubberduck] autoboosh commented on issue #1056: parsing issues of conditional compilations
8:10 PM
[rubberduck-vba/Rubberduck] Vogel612 created pull request #1265: WIP Parser cleanup and Multithreading to merge Vogel612/Rubberduck/ParserStateCleanup into rubberduck-vba/Rubberduck/next
> This is the current WIP state for the Parser changes I promised to retailcoder. This should enable Multithreaded parsing to happen, as well as achieve the following goals: - Clarify what the Parser does and what it doesn't do - Cancel Parsing on a Per-Component basis or Cancel all currently running Parser processes (even with an external
CancellationTokenSource
- Keep RubberduckParserState interface unchanged (or at least prevent breaking changes) - Parse Synchronously and Asynchronously...
Things TBD (because it's a WIP): - [ ] Invalidation of ParserState when beginning Parse - [ ] Resolver Cancellation when Starting to Parse a component - [ ] (Optional) Getting ObsoleteLet, ObsoleteCall, EmptyStringLiteral and ByRef inspection listeners out of the RubberduckParserState and have them report
InspectionResult
s instead - [ ] Verification this works correctly - [ ] Actually Replacing the Parser After those things are done, the whole PR will get a rebase to clean up the commits...
[rubberduck-vba/Rubberduck] build for commit 04c56609 on unknown branch: AppVeyor was unable to build non-mergeable pull request
1 hour later…
10:12 PM
10:39 PM
[rubberduck-vba/Rubberduck] Vannevelj commented on Rubberduck.Parsing/VBA/ComponentParseTask.cs of pull request #1265: WIP Parser cleanup and Multithreading
11:32 PM
« first day (659 days earlier) ← previous day next day → last day (2521 days later) »
Transcript for
Mar25
Mar '1626
Mar27
VBA Rubberducking
This chat has moved to Discord: discord.gg/MYX9RECenJ