Windows 10: visual studio: find references not working for one variable but works on others

Discus and support visual studio: find references not working for one variable but works on others in Windows 10 Software and Apps to solve the problem; This is VS2013, sorry, but I am working on a project that requires compatibility with Linux This were going along very good. I used GitHub to clone... Discussion in 'Windows 10 Software and Apps' started by Joseph Stateson, Oct 28, 2019.

  1. visual studio: find references not working for one variable but works on others


    This is VS2013, sorry, but I am working on a project that requires compatibility with Linux


    This were going along very good. I used GitHub to clone some copies and built under Linux and also built under win10 using SP5 of vs2013;


    Something went wrong. I lost the changes I had made to file "X" so I got a copy from the NFS server. I got a message from VS2013 that I had to normalize line <cr><lf> endings in file "X.cpp" and I allowed it. Maybe that was the problem? I also brought up some sources outside of VS2013 using notepad but I don't recall making changes. I reconstructed all the changes I lost from memory and then discovered a strange problem

    In the file "X.cpp" the following two lines of code:``` must_check_work_fetch = false; //line1
    last_work_fetch_time = now;`` //line2


    I cannot find any reference to the first variable but the second one lists all references just fine. The first line is defined in a include "Y.h" but the second one is defined in "X.h"


    the "go to definition" for the first line gets the wrong location as it about 5 lines above where the definition really is .

    The second line works fine, "go to definition" gets the exact line.


    I tried clean, rebuild, closing and opening solution. Unless there is something I can fix it looks like I will have to re-clone from GitHub.


    hmm.. I just went through the "category" and possibly I am posting it the wrong place as I didn't see "programming" let alone Visual Studio. Lemme know if there is a better place

    :)
     
    Joseph Stateson, Oct 28, 2019
    #1
  2. Amol S. Win User

    Visual Studio (.NET Framework)

    Do you still have the Visual Studio Installer or Visual Studio Manager still installed?

    If you have it still installed and it opens up correctly, you could try removing all additional packages that are installed, and try reinstalling them again. It could have been a corruption issue relating to package extensions that you may have installed
    into Visual Studio 2017 Community Edition. If that does not work, go to apps in settings, and select Visual Studio 2017 Community Edition and select repair. If that does not work, you could try going to TechNet, and asking there for help. It could be a
    bug with the current version of the .NET Framework 48 or with the recent version of Visual Studio 2017 Community Edition.

    If you can not find Visual Studio Installer or Visual Studio Manager, unfortunately in this situation the only thing I can think of is if you still have the installation file that you downloaded from the Visual Studio website. If you can't find that, then
    I suggest that you download Visual Studio 2019 Community Edition, since the 2017 Community edition is not given for free anymore unless you have some sort of subscription. However, I suggest that you still check with TechNet before taking this step.
     
    Amol S., Oct 28, 2019
    #2
  3. aamarlin Win User
    Visual Studio 2017 C# File Handling

    Compiling a C# program using StreamReader and StreamWriter variables on the command line works fine. On Visual Studio 2017 C# when I try to close() a file, I get an error on the file.close() code. The intelliscense for the StreamReader or StreamWriter
    has no listing for CLOSE. The closest I can get is disposing the file.
     
    aamarlin, Oct 28, 2019
    #3
  4. Brink Win User

    visual studio: find references not working for one variable but works on others

    Visual Studio Roadmap Updates and Visual Studio 2019 Information


    Source: Visual Studio Roadmap Updates and Visual Studio 2019 Information | The Visual Studio Blog
     
    Brink, Oct 28, 2019
    #4
Thema:

visual studio: find references not working for one variable but works on others

Loading...
  1. visual studio: find references not working for one variable but works on others - Similar Threads - visual studio find

  2. VISUAL STUDIO CODE not working

    in Windows 10 Gaming
    VISUAL STUDIO CODE not working: I use VISUAL STUDIO CODE as my Python IDE. Now, when I click on the TERMINAL button on the top toolbar to request a NEW terminal screen, VSC freezes, perhaps it cannot find the TERMINAL program? After 10 seconds, an error message is issued requesting that I restart VSC or...
  3. VISUAL STUDIO CODE not working

    in Windows 10 Software and Apps
    VISUAL STUDIO CODE not working: I use VISUAL STUDIO CODE as my Python IDE. Now, when I click on the TERMINAL button on the top toolbar to request a NEW terminal screen, VSC freezes, perhaps it cannot find the TERMINAL program? After 10 seconds, an error message is issued requesting that I restart VSC or...
  4. VISUAL STUDIO CODE not working

    in Windows 10 Customization
    VISUAL STUDIO CODE not working: I use VISUAL STUDIO CODE as my Python IDE. Now, when I click on the TERMINAL button on the top toolbar to request a NEW terminal screen, VSC freezes, perhaps it cannot find the TERMINAL program? After 10 seconds, an error message is issued requesting that I restart VSC or...
  5. Visual studio code c++ compiler not working

    in Windows 10 Gaming
    Visual studio code c++ compiler not working: Every time I click run build task this shows up, "The terminal process terminated with exit code: -1. * Terminal will be reused by tasks, press any key to close it. " I have removed and downloaded visual studio code and gcc-TDM multiple times with no results. I am using a...
  6. Narrator not working with visual studio

    in Windows 10 Gaming
    Narrator not working with visual studio: I recently updated to win11 and downloaded visual studio 2022, so i could get some coding done, however narrator no longer reads either what i've typed in the text editor or any previous code from a file i already wrote. Not sure what the issue is, but i never had this issue...
  7. Narrator not working with visual studio

    in Windows 10 Software and Apps
    Narrator not working with visual studio: I recently updated to win11 and downloaded visual studio 2022, so i could get some coding done, however narrator no longer reads either what i've typed in the text editor or any previous code from a file i already wrote. Not sure what the issue is, but i never had this issue...
  8. Visual studio downloader not working

    in Windows 10 Installation and Upgrade
    Visual studio downloader not working: My pc was having a problem with battery, it would turn off if the charger was unplugged. I was installing visual studio 2019 the other day the downloader got installed. I opened it and just then the power went out and my pc shut downed... after power was up, I turned the on...
  9. Visual Studio Code/PowerShell not working

    in Windows 10 Software and Apps
    Visual Studio Code/PowerShell not working: So I have been programming on and off for past couple years, and have decided to work on learning C++ and C# using Microsoft Visual Studio Code not the one that is preinstalled on the computer. When I opened it up and wrote a basic program, I ran the terminal to see an output...
  10. Visual Studio 2019 works poorly

    in Windows 10 BSOD Crashes and Debugging
    Visual Studio 2019 works poorly: I've recently upgraded to VS2019, but it's giving me a lot of trouble. Here's a list of issues I'm experiencing: At random, parts of the document I'm editing become unclickable for a couple seconds to a minute This seems to happen the most with method names and things...