question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code with inline comment disappear after apply licenseheaders

See original GitHub issue

I installed licenseheaders via pip and get licenseheaders_0.8.5.

I applied licenseheaders on my code and the line with a comment symbol (#), which is continue from header block, is disappeared.

Here is my command and log.

$ licenseheaders -v -v -d target -t header.tmpl -b
licenseheaders_0.8.5 INFO: Using file //header.tmpl
licenseheaders_0.8.5 INFO: Processing file target/foo.py as python
licenseheaders_0.8.5 INFO: Backing up file target/foo.py to target/foo.py.bak

foo.py.bak (original)

#
# Copyright (c) 2020 Foo Inc. All rights reserved.
#
from XXX import YYY # Import package

foo.py (after)

#
# Copyright (c) 2020 Foo Inc. All rights reserved.
#

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jdumascommented, Aug 28, 2020

I noticed this bug too. Is it easy to fix?

1reaction
johann-petrakcommented, Jul 27, 2020

That looks like a terrible terrbile bug, thanks for reporting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inline comments disappear when the line they're on is modified
When making changes in the editor based on an inline comment, the inline comment disappears as soon as the line it's on is...
Read more >
Markdown Cheatsheet - CFEngine 3.17 Documentation
If you want to include a code block within a list, put two tabs (8 spaces) in front of ... You can use...
Read more >
Tool for adding license headers to source files? - Stack Overflow
It allows you to add a headerfile to all files in a directory, ... You can use this last argument to check if...
Read more >
license-maven-plugin – license:check - Mycila
You can use in your header file some properties like ${year}, ... Maven license plugin uses concurrency to check license headers.
Read more >
Correct warnings about missing or incorrect SPDX license ...
Correct existing SPDX license header in the files ... and > drivers/pci/controller/pcie-rockchip.h to use > correct comment style as per the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found