texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.72k stars 344 forks source link

Show environment data for reports in `About TeXstudio` #582

Open jonasstein opened 5 years ago

jonasstein commented 5 years ago

Environment

Expected behavior

A bug report expects image

This information could be provided in the ideal formatting by About TeXstudio Do you want to add compiler and compiler flags?

How do you set the git version there? Is it an environment variable during compilation, or do I have to write a specific file? At the moment we have an empty string here in the TeXstudio which is compiled via gentoo packages.

Actual behavior

image

timhoffm commented 5 years ago

The git revision is read from git_revision.cpp which is generated via git_revision.sh (or git_revision.bat) as part of the qmake process (see texstudio.pro).

This works only if building from a working copy of the repository.