Bug 1983599 - cppcheck-gui: error dialog during installation: Failed to load translation for language English
Summary: cppcheck-gui: error dialog during installation: Failed to load translation fo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cppcheck
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: c72578
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-19 07:54 UTC by Jochen
Modified: 2021-08-02 01:06 UTC (History)
4 users (show)

Fixed In Version: cppcheck-2.5-2.fc34 cppcheck-2.5-2.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-02 01:04:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot of the error dialog that pops up during installation. (29.01 KB, image/png)
2021-07-19 07:54 UTC, Jochen
no flags Details

Description Jochen 2021-07-19 07:54:47 UTC
Created attachment 1803268 [details]
Screenshot of the error dialog that pops up during installation.

Description of problem:
When installing the package `cppcheck-gui` with dnf an error dialog is opened:
```
Failed to change the user interface language:

Failed to load translation for language English from file /usr/share/Cppcheck/lang/cppcheck_en.qm

The user interface language has been reset to English. Open the Preferences-dialog to select any of the available languages
```
The file `/usr/share/Cppcheck/lang/cppcheck_en.qm` is indeed missing on my system.


Version-Release number of selected component (if applicable):
# dnf list cppcheck cppcheck-gui
[...]
cppcheck.x86_64               2.5-1.fc34                 @updates
cppcheck-gui.x86_64           2.5-1.fc34                 @updates


How reproducible:
# cppcheck-gui
bash: cppcheck-gui: command not found...
Install package 'cppcheck-gui' to provide command 'cppcheck-gui'? [N/y] y

 * Waiting in queue... 
The following packages have to be installed:
 cppcheck-gui-2.5-1.fc34.x86_64	Graphical user interface for cppcheck
Proceed with changes? [N/y] y

 * Waiting in queue... 
 * Waiting for authentication... 
 * Waiting in queue... 
 * Downloading packages... 
 * Requesting data... 
 * Testing changes... 
 * Installing packages... 
QSocketNotifier: Can only be used with threads started with QThread
--> GUI dialog (see screenshot)


Steps to Reproduce:
1. install the package cppcheck (sudo dnf install cppcheck)
2. install the package cppcheck-gui (sudo dnf install cppcheck-gui)


Actual results:
Error dialog pops up

Expected results:
No error dialog. I actually don't know if there *is* an English translation of the cppcheck GUI available or not. It may also be an error caused by the first-time start of the tool, or a default configuration is missing in the package. Anyway, the error message is disturbing and should not be presented.


Additional info:
- My system is Fedora 34 with all available updates installed:
# uname -a
Linux inspiron14l 5.12.15-300.fc34.x86_64 #1 SMP Wed Jul 7 19:46:50 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Comment 1 c72578 2021-07-19 08:34:42 UTC
Thanks for your report.
Remark:
This message is only shown, when cppcheck-gui is started the first time.
It does not show up anymore upon subsequent starts of cppcheck-gui.

Comment 2 Jochen 2021-07-19 14:26:34 UTC
Confirmed. After the first run of cppcheck-gui I find this configuration file in my $HOME directory:
`~/.config/Cppcheck/Cppcheck-GUI.conf`.

So, probably, the issue is not related to Fedora or to the cppcheck-gui package, but to the tool itself.

Comment 3 c72578 2021-07-22 22:13:17 UTC
In the meantime I could do some debugging and a fix has been proposed upstream:
https://github.com/danmar/cppcheck/pull/3351

Copr builds are available for testing here:
https://copr.fedorainfracloud.org/coprs/c72578/cppcheck/

Comment 4 Fedora Update System 2021-07-23 21:09:17 UTC
FEDORA-2021-ad8d7727fb has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-ad8d7727fb

Comment 5 Fedora Update System 2021-07-24 01:18:58 UTC
FEDORA-2021-ad8d7727fb has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-ad8d7727fb`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-ad8d7727fb

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-07-24 07:09:14 UTC
FEDORA-2021-7f85b14f8f has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-7f85b14f8f

Comment 7 Fedora Update System 2021-07-25 01:23:24 UTC
FEDORA-2021-7f85b14f8f has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-7f85b14f8f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-7f85b14f8f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2021-08-02 01:04:06 UTC
FEDORA-2021-ad8d7727fb has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2021-08-02 01:06:24 UTC
FEDORA-2021-7f85b14f8f has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.