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.

Moving from developing on MAC to Windows and hitting command:warning: LF will be replaced by CRLF in src/setup.cfg.

See original GitHub issue

Throws this error.

Any ideas how to overcome?

2018-08-31 14:41:59,609 StackRunner     - ERROR exec_in_sub                              - ERROR from command:warning: LF will be replaced by CRLF in src/setup.cfg.
The file will have its original line endings in your working directory.
Traceback (most recent call last):
  File "c:\python27amd64\lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\python27amd64\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Python27amd64\Scripts\bump2version.exe\__main__.py", line 9, in <module>
  File "c:\python27amd64\lib\site-packages\bumpversion\__init__.py", line 938, in main
    vcs.commit(message=commit_message)
  File "c:\python27amd64\lib\site-packages\bumpversion\__init__.py", line 71, in commit
    f = NamedTemporaryFile('wb', delete=False)
  File "c:\python27amd64\lib\tempfile.py", line 475, in NamedTemporaryFile
    (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
  File "c:\python27amd64\lib\tempfile.py", line 245, in _mkstemp_inner
    _set_cloexec(fd)
  File "c:\python27amd64\lib\tempfile.py", line 50, in _set_cloexec
    flags = _fcntl.fcntl(fd, _fcntl.F_GETFD, 0)
AttributeError: 'module' object has no attribute 'F_GETFD'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
florislacommented, Jan 13, 2020

Bump2version no longer modifies line-ending style as of #59.

1reaction
Citocommented, Apr 30, 2019

This happens even when commit=false. I think bump2version should not change the kind of line endings. If a file uses LFs, it should still have LFs after being processed, even on Windows.

Read more comments on GitHub >

github_iconTop Results From Across the Web

LF will be replaced by CRLF", is that warning tail backward?
As described in "git replacing LF with CRLF", it should only occur on checkout (not commit), with core. autocrlf=true .
Read more >
Resolved: Git warning LF will be replaced by CRLF in file
While using git add command I was receiving below error. warning: LF will be replaced by CRLF in ansible.cfg. The file will have...
Read more >
How to Fix LF Will Be Replaced by CRLF Warning in Git
The “$ git config core.autocrlf false” command is used to fix the LF will be replaced by CRLF warning by changing configure variable...
Read more >
Solving Git LF will be replaced by CRLF | by tanut aran - Medium
What we want is only CRLF to make the code work on our Window workspace and LF elsewhere. The fix is by use...
Read more >
How to Ensure Always LF not CRLF on Windows
I confirm the settings - then I get this when switching (again) to LF from CRLF in PHPStorm: "0 files committed. Warning: LF...
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