question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

References are counted multiple times for similar named functions

See original GitHub issue

Issue Description

I am experiencing a problem with…references being counted multiple times. It seems like “like” is used for comparison and it doesn’t look for exact match but with a wildcard.

function Invoke-GPOTest {

}

function Invoke-GPOTestOld {

}

Invoke-GPOTestOld

image

Find References

image

Find References for Invoke-GPOTranslation

image

Attached Logs

Follow the instructions in the README about capturing and sending logs.

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.19041
VSCode 1.47.1
PowerShell Extension Version 2020.6.1

PowerShell Information

Name Value
PSVersion 5.1.19041.1
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.19041.1
BuildVersion 10.0.19041.1
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
bracket-pair-colorizer-2 CoenraadS 0.2.0
code-settings-sync Shan 3.4.3
github-linker gimenete 0.2.3
gitlens eamodio 10.2.2
markdown-all-in-one yzhang 3.1.0
material-icon-theme PKief 4.2.0
powershell-preview ms-vscode 2020.6.1
project-manager alefragnani 11.1.0
run-in-powershell tobysmith568 1.0.1
vscode-markdownlint DavidAnson 0.36.1
vscode-pull-request-github GitHub 0.18.0
vscode-toggle-quotes BriteSnow 0.3.3
vscode-wakatime WakaTime 4.0.0
vscode-yaml redhat 0.9.1
xml DotJoshJohnson 2.5.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
TylerLeonhardtcommented, Aug 10, 2020

I’ve got a fix out for this.

1reaction
PrzemyslawKlyscommented, Jul 21, 2020

I can probably provide more logs, it looks really weird.

image

Above shows a very weird thing:

  • There is a function defined
  • This function is used somewhere
  • It shows 1 reference (correctly)
  • Then I add in the same file as a function another reference
  • And now it shows 3, even tho when I click it shows just 2
Read more comments on GitHub >

github_iconTop Results From Across the Web

COUNTIFS function - Microsoft Support
The COUNTIFS function applies criteria to cells across multiple ranges and counts the number of times all criteria are met.
Read more >
When is the reference count for a local variable in a python ...
The reference count for that instance may increase or decrease multiple times, depending on the implementation details of that creation ...
Read more >
How to Use Multiple Criteria in Excel COUNTIF and COUNTIFS
In this tutorial, learn how to use multiple criteria in Excel COUNTIF and COUNTIFS functions. Explained with practical examples.
Read more >
Reference counting - Wikipedia
In computer science, reference counting is a programming technique of storing the number of references, pointers, or handles to a resource, ...
Read more >
Excel COUNTIF function examples - not blank, greater than ...
COUNTIF function in Excel - count if not blank, greater than, duplicate or ... counts how many times Roger Federer's name is on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found