Author Topic: cppcheck/vera wrong links  (Read 644 times)

Offline gd_on

  • Lives here!
  • ****
  • Posts: 854
cppcheck/vera wrong links
« on: Yesterday at 02:28:40 pm »
Links indicated in cppcheck/vera plugin config are not correct. They do not work when I click on them.
For cppcheck, a good link could be https://cppcheck.sourceforge.io/ (with .io, not .net)
For vera, it looks it's no more available on bitbucket, but can be found on https://github.com/verateam/vera
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
Re: cppcheck/vera wrong links
« Reply #1 on: Yesterday at 05:30:20 pm »
Fixed in r13877, thanks for reporting.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 854
Re: cppcheck/vera wrong links
« Reply #2 on: Today at 04:02:22 pm »
Strangely, though both new links seems correct, a click on them opens my default browser (firefox), but the web page is not opened and title bar and page looks empty. But if I copy the link manually in my browser, it's OK.
More, same behaviour for the link in the configuration of cscope plugin.
Nevertheless, the link at the bottom of configuration of spellchecker plugin works, to help how to configure spellchecker.

Remark: It looks that the text which appears on the windows for cscope ans cppcheck is the text field in the wxs file, but the url field is empty, so it's why the link does not work. More, in that case, the displayed text should not be marked as translatable (with macro _())
« Last Edit: Today at 05:51:54 pm by gd_on »
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline gd_on

  • Lives here!
  • ****
  • Posts: 854
Re: cppcheck/vera wrong links
« Reply #3 on: Today at 07:12:25 pm »
Here is a possible patch.
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
Re: cppcheck/vera wrong links
« Reply #4 on: Today at 07:21:13 pm »
I have commited already, filling the Url with the Label value (dialog design forces using Label = Url to keep coherency).

Regarding the translation, here is not needed or desired, but wxSmith generates the _() automatically. In other cases translation of the Url may be helpful, for example if you want to use "google.com" in english and "google.fr" in french, or "microsoft.com" and "microsoft.com/fr".