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

'rendering': Access is denied. when trying to pipe output using pwsh #2908

Closed
TeamDman opened this issue Mar 20, 2024 · 3 comments
Closed

'rendering': Access is denied. when trying to pipe output using pwsh #2908

TeamDman opened this issue Mar 20, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@TeamDman
Copy link

image

image

image

What steps will reproduce the bug?

  1. bat * --paging never | Set-Clipboard

What happens?

[bat error]: 'rendering': Access is denied. (os error 5)

What did you expect to happen instead?

Clipboard content set to the output of bat applied to all files

How did you install bat?

scoop


bat version and environment

Software version

bat 0.24.0 (fc95468)

Operating system

Windows 6.2.9200

Command-line

C:\Users\TeamD\scoop\apps\bat\current\bat.exe * --paging never --diagnostic 

Environment variables

SHELL=<not set>
PAGER=<not set>
LESS=<not set>
LANG=<not set>
LC_ALL=<not set>
BAT_PAGER=<not set>
BAT_PAGING=<not set>
BAT_CACHE_PATH=<not set>
BAT_CONFIG_PATH=<not set>
BAT_OPTS=<not set>
BAT_STYLE=<not set>
BAT_TABS=<not set>
BAT_THEME=<not set>
XDG_CONFIG_HOME=<not set>
XDG_CACHE_HOME=<not set>
COLORTERM=<not set>
NO_COLOR=<not set>
MANPAGER=<not set>

System Config file

Could not read contents of 'C:\ProgramData\bat\config': The system cannot find the path specified. (os error 3).

Config file

Could not read contents of 'C:\Users\TeamD\AppData\Roaming\bat\config': The system cannot find the path specified. (os error 3).

Custom assets metadata

Could not read contents of 'C:\Users\TeamD\AppData\Local\bat\metadata.yaml': The system cannot find the path specified. (os error 3).

Custom assets

'C:\Users\TeamD\AppData\Local\bat' not found

Compile time information

  • Profile: release
  • Target triple: x86_64-pc-windows-msvc
  • Family: windows
  • OS: windows
  • Architecture: x86_64
  • Pointer width: 64
  • Endian: little
  • CPU features: fxsr,sse,sse2
  • Host: x86_64-pc-windows-msvc

Less version

> C:\Program Files\nu\bin\less.exe --version 
less 608 (Spencer V8 regular expressions)
Copyright (C) 1984-2022  Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Home page: https://greenwoodsoftware.com/less
@TeamDman TeamDman added the bug Something isn't working label Mar 20, 2024
@TeamDman
Copy link
Author

Looks like it's actually updating the clipboard and writing to the text file, but adding --style full fails to include the styles when writing content

@eth-p
Copy link
Collaborator

eth-p commented Mar 21, 2024

By any chance, is there a file called rendering in the working directory?

Looks like it's actually updating the clipboard and writing to the text file, but adding --style full fails to include the styles when writing content

When piping to another program, bat will disable decorations and colors by default. You can add --decorations=always to add decorations back, and --color=always to add color escape sequences back.

@TeamDman
Copy link
Author

D'oh! Can confirm, there was a folder called rendering

docs\docs\getting-started on  main
❯ git remote -v
origin  https://github.com/motion-canvas/motion-canvas (fetch)
origin  https://github.com/motion-canvas/motion-canvas (push)
docs\docs\getting-started on  main
❯ ls
configuration.mdx  layouts.mdx  positioning.mdx   references.mdx  time-events.mdx
flow.mdx           logging.mdx  presentation.mdx  rendering       transitions.mdx
hierarchy.mdx      media.mdx    quickstart.mdx    signals.mdx     tweening.mdx

Can also confirm that bat * --paging never --decorations=always | Set-Clipboard properly preserves the decorations.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants