After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770660 - Code snippet always shows line numbers from 1
Code snippet always shows line numbers from 1
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.11
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2016-08-31 17:04 UTC by Dominic Amann
Modified: 2016-09-05 13:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dominic Amann 2016-08-31 17:04:43 UTC
The following Doxygen comment fragment (taken from python code)


#   To demonstrate the API, take a look at the transducer_setup method of
#   the app class (in pyscope_any.py) below:
#
#   \snippet this transducer_setup
#
#   multiMode must be set to 4 to support multiple transducers (0 for legacy mode).

produces (via html output)

======
To demonstrate the API, take a look at the transducer_setup method of the app class (in pyscope_any.py) below:

    1     def transducer_setup(self):
    2         tc1 = TraceCollector()
    3         tc1.on_init()
    4         settings = TraceCollectorPy.SGprSettings()
    5         settings.points_per_trace = PPT
    6         # This may need shifting for different frequencies
    7         settings.window_timeshift_ps = -42000
    8         settings.multiMode = 4
    9         # edit tuples in following call for different transducer arrangements
   10         tc1.prepare_transducers(0, 1, settings, [(1, 1, 1), (2, 2, 1)])
   11         # put RX scopes in right slots
   12         tc1.add_scope(2)
   13         # add our new trace-collector to list
   14         self._trace_collectors.append(tc1)    

multiMode must be set to 4 to support multiple transducers (0 for legacy mode).
======

I would like to see line numbers reflecting the actual line numbers from the code file.
Comment 1 albert 2016-09-02 13:16:11 UTC
I've just pushed a proposed patch to github (pull request 514)
Comment 2 albert 2016-09-03 11:12:51 UTC
Code has been integrated in master branch on github
Comment 3 Dimitri van Heesch 2016-09-05 13:45:29 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.12. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information 
that you think can be relevant (preferably in the form of a self-contained example).