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

Crash when clicking on "Help translate" in appearance settings #5960

Closed
Kryptos-FR opened this issue Dec 20, 2018 · 4 comments
Closed

Crash when clicking on "Help translate" in appearance settings #5960

Kryptos-FR opened this issue Dec 20, 2018 · 4 comments
Assignees
Labels
type: bug 🐛 type: regression regression, normally to latest official release
Milestone

Comments

@Kryptos-FR
Copy link

Do you want to request a feature or report a bug?
A bug.

What is the current behavior?
Clicking on "help translate" link in the Appearance section of the settings window crash the application.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  1. Open the settings window
  2. Go to Git Extensions -> Appearance section
    image
  3. Click on "Help translate"
  4. GitExtensions crashes
    image

What is the expected behavior?

  • When developing GitExtensions it could open the TranslationApp (crashes because application doesn't exists)
  • In official releases, it should go to the wiki page (same as Menu -> Help -> Translate)
  • Should be surrounded by a try...catch in any case.

Environment you encounter the issue:

  • Git Extensions 3.00.00.4433
  • Build fca7cf2
  • Git 2.19.1.windows.1
  • Microsoft Windows NT 6.1.7601 Service Pack 1
  • .NET Framework 4.7.3133.0
  • DPI 96dpi (no scaling)

Did this work in previous version of GitExtensions (which)?
Dunno. Never tried before.

@drewnoakes drewnoakes added type: bug 🐛 type: regression regression, normally to latest official release labels Dec 20, 2018
@drewnoakes
Copy link
Member

@Kryptos-FR thank you for the report!

I can reproduce this.

(We really need to replace that useless NBug dialog with something that makes it easy for people to include meaningful information in issues...)

@drewnoakes
Copy link
Member

The code in question is here:

private void helpTranslate_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start(Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "TranslationApp.exe"));
}

Is this an omission of the installer? Are we supposed to be bundling TranslationApp.exe?

@gerhardol
Copy link
Member

TranslationApp should not be included, only used by maintainers now. The link should be to the wiki page.

@RussKie
Copy link
Member

RussKie commented Dec 20, 2018

(We really need to replace that useless NBug dialog with something that makes it easy for people to include meaningful information in issues...)

Yes, related discussion in #5064

Is this an omission of the installer? Are we supposed to be bundling TranslationApp.exe?

I suppose no one ever clicked the link until now... 🤦‍♂️

Instead of using the TranslationApp (which is only used for updating translations when prep'ing releases), this link should behave consistently with other "translate" links and navigate to https://github.com/gitextensions/gitextensions/wiki/Translations

drewnoakes added a commit to drewnoakes/gitextensions that referenced this issue Dec 20, 2018
@ghost ghost assigned drewnoakes Dec 20, 2018
@ghost ghost added the status: ready label Dec 20, 2018
@ghost ghost removed the status: ready label Dec 20, 2018
@RussKie RussKie added this to the 3.0.1 milestone Dec 20, 2018
RussKie pushed a commit that referenced this issue Dec 21, 2018
Fixes #5960

(cherry picked from commit e040a1a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 type: regression regression, normally to latest official release
Projects
None yet
Development

No branches or pull requests

4 participants