Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diff of New Files #4

Open
lcnittl opened this issue Jun 4, 2020 · 1 comment
Open

Diff of New Files #4

lcnittl opened this issue Jun 4, 2020 · 1 comment

Comments

@lcnittl
Copy link
Owner

lcnittl commented Jun 4, 2020

Currently throws an error:

PS C:\...\repo> git diff --staged
Resolve-Path : Cannot find path 'C:\...\repo\nul' because it does not exist.
At C:\...\DMFO\dmfo-diff.ps1:28 char:18
+     $FileName = (Resolve-Path $FileNames[$key]).Path
+                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\...\repo\nul:String) [Resolve-Path], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.ResolvePathCommand

fatal: external diff died, stopping at NewFile.pptx

Should open the newly added file without any comparison.

@lcnittl
Copy link
Owner Author

lcnittl commented Mar 6, 2021

Traceback (most recent call last):
  File "c:\program files\python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\program files\python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\lcnittl\.local\bin\dmfo.exe\__main__.py", line 4, in <module>
  File "c:\users\lcnittl\.local\pipx\venvs\dmfo\lib\site-packages\dmfo\__main__.py", line 10, in <module>
    sys.exit(main())
  File "c:\users\lcnittl\.local\pipx\venvs\dmfo\lib\site-packages\dmfo\__init__.py", line 258, in main
    ret = dmfo.files.preproc(filedata_map=filedatamap)
  File "c:\users\lcnittl\.local\pipx\venvs\dmfo\lib\site-packages\dmfo\files\__init__.py", line 17, in preproc
    filename = filedata_map[alias].name.resolve(strict=True)
  File "c:\program files\python39\lib\pathlib.py", line 1204, in resolve
    s = self._flavour.resolve(self, strict=strict)
  File "c:\program files\python39\lib\pathlib.py", line 200, in resolve
    return self._ext_to_normal(_getfinalpathname(s))
OSError: [WinError 87] The parameter is incorrect: 'nul'
fatal: external diff died, stopping at SI.docx```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant