-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolver Error while refreshing #4323
Comments
This is a bug in the resolver. For some reason, a |
I don't know C# nor the internal mechanics of Rubberduck. But is there any additional data I can provide to help the bug being squashed? |
From the Log it seems that the resolver chokes on the procedure |
The code:
sheetOut is a global String variable declared (and initialized when the code is running) in another Module. |
@bertrandfalguiere - OT for the bug report, but mightn't it be easier for you, coding wise, to 'add appropriate error trapping around the .Delete
Workbook.Worksheets(sheetOut).Delete
newSheet = Workbook.Worksheets.Add
newSheet.name = sheetOut I'm not sure where that stands in terms of code execution efficiency, but I believe that your code will end up giving you a As an added bonus, it will get rid of any other formatting, like borders, that may have happened to work their way into the worksheet. Just a thought. We now return you to your regularly scheduled bug report. |
@daFreeMan This is part of a code I inherited. There is a loooot of junk in it! I will do some heavy refactoring. Do you happen to know a tool for VBA refactoring? (JK :P) |
Hmm... the code you posted doesn't look valid - does it compile? Looks like there should have been a
|
Rubberduck always parses and resolves all components. Whether the VBE compiles on the fly depends on the compile settings in the bottom right of the Editor tab of the Tools->Options menu. We actually try to compile the project and warn the user that the project does not compile. However, the forementioned VBE settings can interfere with that. Moreover, compilation before refresh might be deactivated in Rubberduck's own settings. |
Hi. I'm using Rubberduck Version 2.2.0.3723
OS: Microsoft Windows NT 10.0.16299.0, x64
Host Product: Microsoft Office 2016 x64
Host Version: 16.0.8730.2175
Host Executable: EXCEL.EXE
I got a Resolver Error. Here is the Trace-level logs:
RubberduckLog.txt
The text was updated successfully, but these errors were encountered: