BlueBrain / nmodl

Code Generation Framework For NEURON MODeling Language
https://bluebrain.github.io/nmodl/
Apache License 2.0
52 stars 15 forks source link

Blame NMODL for lines it's generating. #1170

Closed 1uc closed 6 months ago

1uc commented 6 months ago

Adds

nmodl MOD_FILE blame --line LINE

which will cause NMODL to print a backtrace every time it writes to line LINE.

This is very helpful when trying to find the NMODL code responsible for printing a (faulty) line of code.

bbpbuildbot commented 6 months ago

Logfiles from GitLab pipeline #195890 (:no_entry:) have been uploaded here!

Status and direct links:

codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 72.72727% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 88.36%. Comparing base (9df433b) to head (5c01cb4). Report is 2 commits behind head on master.

:exclamation: Current head 5c01cb4 differs from pull request most recent head 5299bb5. Consider uploading reports for the commit 5299bb5 to get more accurate results

Files Patch % Lines
src/printer/code_printer.cpp 50.00% 6 Missing :warning:
src/main.cpp 66.66% 2 Missing :warning:
src/printer/code_printer.hpp 75.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1170 +/- ## ========================================== - Coverage 88.38% 88.36% -0.02% ========================================== Files 176 175 -1 Lines 12946 12950 +4 ========================================== + Hits 11442 11443 +1 - Misses 1504 1507 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

bbpbuildbot commented 6 months ago

Logfiles from GitLab pipeline #195898 (:white_check_mark:) have been uploaded here!

Status and direct links:

codecov-commenter commented 6 months ago

Codecov Report

Attention: Patch coverage is 81.25000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 87.17%. Comparing base (39922a3) to head (5a0c283).

Files Patch % Lines
src/main.cpp 50.00% 2 Missing :warning:
src/printer/code_printer.hpp 75.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1170 +/- ## ========================================== - Coverage 87.17% 87.17% -0.01% ========================================== Files 175 175 Lines 12878 12885 +7 ========================================== + Hits 11227 11233 +6 - Misses 1651 1652 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.