Skip to content
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

set "noImplicitAny" to true and fix the problems #419

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

oltolm
Copy link
Contributor

@oltolm oltolm commented Mar 29, 2024

I did some work on code-debug. This is a first PR in a series. I set noImplicitAny to true and fixed the problems. I also found a bug in gdb_expansion.ts line 226. Not sure if I fixed it correctly.

@codecov-commenter
Copy link

codecov-commenter commented Mar 29, 2024

Codecov Report

Attention: Patch coverage is 11.42857% with 31 lines in your changes are missing coverage. Please review.

Project coverage is 20.47%. Comparing base (86b6678) to head (d8c13a9).

Files Patch % Lines
src/backend/mi2/mi2.ts 0.00% 15 Missing ⚠️
src/mibase.ts 0.00% 9 Missing ⚠️
src/backend/mi2/mi2lldb.ts 0.00% 2 Missing ⚠️
src/backend/mi2/mi2mago.ts 0.00% 2 Missing ⚠️
src/backend/gdb_expansion.ts 75.00% 1 Missing ⚠️
src/backend/mi_parse.ts 50.00% 0 Missing and 1 partial ⚠️
src/frontend/extension.ts 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #419   +/-   ##
=======================================
  Coverage   20.47%   20.47%           
=======================================
  Files          14       14           
  Lines        1807     1807           
  Branches      391      392    +1     
=======================================
  Hits          370      370           
  Misses       1392     1392           
  Partials       45       45           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -223,7 +224,7 @@ export function expandValue(variableCreate: Function, value: string, root: strin
val = "Object@" + val;
}
} else if (typeof val == "string" && val.startsWith("@0x")) {
ref = variableCreate(getNamespace("*&" + name.substr));
ref = variableCreate(getNamespace("*&" + name.substring(1)));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah nice catch, do you know why you remove the first character here? It looks like maybe just passing name instead might be correct instead. Sadly there is no test for this to actually verify this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was just a guess. Feel free to change it.

Copy link
Owner

@WebFreak001 WebFreak001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome! Thank you very much for these much needed improvements

@WebFreak001 WebFreak001 merged commit 1b9f13e into WebFreak001:master Apr 5, 2024
4 checks passed
@GitMensch
Copy link
Collaborator

I'm eager to see the rest of the patch series 💪 .

@oltolm oltolm deleted the noImplicitAny branch April 6, 2024 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants