GithubHelp home page GithubHelp logo

Comments (16)

jeffyoung avatar jeffyoung commented on August 19, 2024 1

Ideally, the tf.exe (and its dependencies) would be a tool that you could get on its own. That is, separate from Visual Studio. If we had that, we could just install the English version of TF.exe and point the extension there (problem solved). I don't know if there are plans for that but what appears to be happening is the Microsoft.TeamFoundation.VersionControl.Common.dll is being loaded from another folder even after you rename the one under Common7\IDE.

I have a French version of Windows running (in a VM) and TF.exe loads that assembly from C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\WDExpressExtensions\gn4drvgq.y0a\fr\Microsoft.TeamFoundation.VersionControl.Common.resources.dll. I know this because I ran procmon.exe from https://live.sysinternals.com/ and filtered on the process with Process Name of TF.exe (and with .resources. in the filter for Path). If you do the same, you'd discover from where that resource assembly is being loaded. It certainly doesn't look predictable based on that folder named gn4drvgq.y0a. Once I went into that folder and renamed fr to something else, TF.exe failed to load the French resources and fell back to the English ones inside of TF.exe. (This is basically what @MindGirl was helping you to do.)

Renaming that folder could have some unknown side-effects (and certainly isn't a long-term workaround). I'd either have to start parsing localized strings or we'd have to get an English version of TF.exe on the box (even through another downloaded version of Visual Studio). But it may suffice in the short-term (although you'd need to determine from where the assembly is being loaded using procmon).

from azure-repos-vscode.

alelapeyre avatar alelapeyre commented on August 19, 2024

See this #177

from azure-repos-vscode.

jeffyoung avatar jeffyoung commented on August 19, 2024

Hi @alexmtnezf and thanks @alelapeyre.

I'd be interested in seeing the output (as much as you can show) from this command: tf.exe workfold {path-to-the-folder-you-opened}. If I'm correct, the output from that command won't contain the English version of Workspace :. @alelapeyre points to the thread with a bit more explanation.

from azure-repos-vscode.

scaillerie avatar scaillerie commented on August 19, 2024

@jeffyoung I have the same issue and running the tf command, I obtain the following output :

Espace de travail : MY_WORKSPACE
Collection        : https://tfs-server/tfs/MY_COLLECTION_NAME
$/MY_PROJECT/Dev/MY_WORKING_FOLDER: <PATH_TO_MY_LOCAL_FOLDER>

(as you can see, I work in France...).

from azure-repos-vscode.

scaillerie avatar scaillerie commented on August 19, 2024

I have tested the tip provided by @MindGirl on issue #177 but it doesn't work for me (I have renamed the directory "fr" by another name, and executing again the command always gives me the result in french)...

from azure-repos-vscode.

MindGirl avatar MindGirl commented on August 19, 2024

Have you restarted your shell (cmd.exe or powershell)?

from azure-repos-vscode.

scaillerie avatar scaillerie commented on August 19, 2024

Of course : I have even launch a new shell after the renaming...

from azure-repos-vscode.

MindGirl avatar MindGirl commented on August 19, 2024

Just wanted to make sure :-)
Do you execute tf.exe using the full path?

from azure-repos-vscode.

scaillerie avatar scaillerie commented on August 19, 2024

I use the following command :
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\tf.exe" workfold "FULL_PATH_TO_MY_FOLDER"

image

from azure-repos-vscode.

MindGirl avatar MindGirl commented on August 19, 2024

Can you try to prefix the folder name (I renamed mine from "de" to "xde")? Or remove the underscore?

from azure-repos-vscode.

scaillerie avatar scaillerie commented on August 19, 2024

I have try with "xfr" and opening a brand new shell and re-executing the command, same result : in french...

I don't understand: it looks like the locale is cached or not taken in this folder (I have double checked that it is really the same folder than the tf.exe executable).

from azure-repos-vscode.

jeffyoung avatar jeffyoung commented on August 19, 2024

Can you also ensure that there are no running instances of tf.exe? This issue only affects tf.exe (as the TEE CLC can be set to return ENU only results) and, for some reason, the French resources are being loaded (even though they shouldn't be found since the folder has been renamed). You may want to ensure that VS Code is closed when you do it. (To improve performance in the editor, we try and keep an instance of tf.exe running and ready to run commands when a user takes an action in VS Code. If you close VS Code, those should be closed as well.)

from azure-repos-vscode.

scaillerie avatar scaillerie commented on August 19, 2024

I have checked : there is no more tf.exe process running.
To be sure, I have even closed Visual Studio which I use for another project, but no way, always in french.

The only remaining point is that I have the TFS Power tools installed and I don't succeed to kill it (TfsComProviderSvr.exe is automatically relaunched after I kill it and I don't find any associated service I can suspend or other...).

from azure-repos-vscode.

scaillerie avatar scaillerie commented on August 19, 2024

Oh ok : good method! I have procmon on my PC but don't think to use it for this problem...
On my PC, it was in C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\crfdgovc.tzv\fr.
And after renaming, the output was finally in english and most important, it now works!

Nevertheless, as my team uses large projects, we mainly work with server workspaces (I have created a sample local workspace in order to test) : I am now watching issue #176 as I have a workaround for language issue :-)

Thanks for your help and this great extension!

from azure-repos-vscode.

alexmtnezf avatar alexmtnezf commented on August 19, 2024

The solution offered by @MindGirl worked for me. Thanks to @jeffyoung too. I renamed the es folder to es-xx and voilá, there's not error anymore.

from azure-repos-vscode.

jeffyoung avatar jeffyoung commented on August 19, 2024

Great to hear! Thanks for following up.

from azure-repos-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.