Visual Studio not reloading correctly files while switching branches

Discussion in 'Windows Virtual Machine' started by MichalC1, Jan 19, 2016.

  1. MichalC1

    MichalC1 Bit poster

    Messages:
    5
    Hi,

    I have installed few days ago parallels and I am testing it for use in .NET development. Unfortunately I have a serious problem with Visual Studio.
    I have git repository which I keep on host MacBook pro machine. This repository contains Visual Studio solution. When I use git in host machine terminal, Visual Studio detects that some files have changed, but won't update solution inside Solution Explorer. This is serious problem as this creates inconsistency between what Visual Studio sees and what is actually on Hard Drive.

    I have almost identical software configuration on Lenovo machine, on which the issue doesn't exist. I have therefore excluded Git repository/Visual Studio bug. It is certainly Parallels problem. It might be related to keeping Visual Studio solution on Network Share on Host machine. I have, however, in this GIT Repository other projects that I need to work on simultaneously while on OS X.

    EDIT: Tried to checking out branches from Powershell on Guest machine. Problem still persists. Visual Studio detects some changes but only partially reloads Solution which leads to braking in consistency of branch.
     
    Last edited: Jan 19, 2016
  2. AlekseyM

    AlekseyM Product Expert

    Messages:
    207
    Are you sharing the folders / documents between host OS X and the win 7 guest? Can you try copying all the files to a win 7 guest folder only (say c:\temp or something) and see if the problem persists. GIT / VS is not good at handling file changes when they are on network drives (shared folders in parallels are technically seen as network drives)
     
  3. TobiasB1

    TobiasB1 Bit poster

    Messages:
    2
    Hi Michal
    Did you find a solution for the problem? I'm having a similar problem.
     
  4. MichalC1

    MichalC1 Bit poster

    Messages:
    5
    No, I have decided to keep copies of repository on Host and Guest machine as Shared Folder don't work in both Parallels and VMWare Fusion. Then I push the changes in Windows machine and pull changes from Macbook host.
     
    Last edited: Feb 6, 2016
  5. Maria@Parallels

    Maria@Parallels Problem solver

    Messages:
    8,121
    Hi, could you please provide us with the detailed info about this issue:
    1. Problem report (you can use this KB to generate it) and report ID
    2. Step-by-step instructions in order to reproduce this issue

    Also please try this KB in order to resolve this issue.
    Let us know the results please.
     
  6. MichalC1

    MichalC1 Bit poster

    Messages:
    5
    I am very sorry but I don't have time to create a ticket and reproduce the issue. Basically if you open Android studio on Mac and try to access Windows drive you will get notification that project is on network share and therefore there might be some problems with change tracking on hard drive.

    This is basically very simple issue and I believe it can be only solved by implementing folder sharing between Windows and Mac in a different way so that the Windows drive is treated like a local file system.
     
  7. Maria@Parallels

    Maria@Parallels Problem solver

    Messages:
    8,121
    Hi @MichalC1, I've tried to reproduce the issue on my test environment and didn't see any issue.
    In this case the root cause of the issue could be different and that's why we ask you for some additional info..
    Once you have any time please provide us with the requested info.
    Thanks in advance for your cooperation.
     
  8. MichalC1

    MichalC1 Bit poster

    Messages:
    5
    Thank you for information. If the implementation of shared folders/drives based on network file system is not the case I will try to provide you with reproduction steps as soon as possible.
     
  9. Maria@Parallels

    Maria@Parallels Problem solver

    Messages:
    8,121
    Thank you, looking forward for your reply.
     
  10. MichalC1

    MichalC1 Bit poster

    Messages:
    5
    Thank you for help.

    As for now I cannot reproduce the problem anymore. Seems like everything works now except:

    The only thing I have discovered is: when you open for eg. notepad++ in guest system and try to edit the same file on host system notepad++ won't detect changes unless you lose focus on notepad++ (for eg. switch the application or show desktop) and then put notepad++ again to the foreground. I cannot check with Visual Studio right now but probably the same happens there.

    Android Studio on host system seems to be working fine now when trying to switch branches from the guest system.

    What I could advice to the development team of Parallels is: If it is possible to simulate by parallels window switch when you change view from host to guest system so that application that track changes in the filesystem as Notepad++ can refresh their view. I am talking here about switching between host and guest desktops in full-screen mode. This should fire to the foreground application the same event as is fired when you switch foreground applications inside the guest system.

    Thank you again for involvement.
     
    Last edited: Apr 23, 2016
  11. JohannesS2

    JohannesS2 Bit poster

    Messages:
    3
    I have the same issue.
    Host: OSX 10.11.6, Guest: Windows 10 Pro.

    When I change files on my host, the changes are not picked up by Visual Studio. If I open a local file in Visual Studio and make changes in another editor, the changes are picked up, so it only affects network files.
     

Share This Page