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

[BUG] jake doesn't play nicely on Windows #156

Open
madpah opened this issue Nov 15, 2024 · 0 comments
Open

[BUG] jake doesn't play nicely on Windows #156

madpah opened this issue Nov 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@madpah
Copy link
Collaborator

madpah commented Nov 15, 2024

Discovered during https://github.com/sonatype-nexus-community/jake/actions/runs/11860011104/job/33054310974

All Windows builds fail with:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "D:\a\jake\jake\jake\app.py", line 106, in main
    JakeCmd(args).execute()
  File "D:\a\jake\jake\jake\app.py", line 80, in execute
    exit_code: int = command.execute(arguments=self._arguments)
  File "D:\a\jake\jake\jake\command\__init__.py", line [44](https://github.com/sonatype-nexus-community/jake/actions/runs/11860011104/job/33054310974#step:13:45), in execute
    return self.handle_args()
  File "D:\a\jake\jake\jake\command\oss.py", line 56, in handle_args
    with Progress() as progress:
  File "C:\Users\runneradmin\AppData\Local\pypoetry\Cache\virtualenvs\jake-3HYq3Xz5-py3.10\lib\site-packages\rich\progress.py", line 1191, in __exit__
    self.stop()
  File "C:\Users\runneradmin\AppData\Local\pypoetry\Cache\virtualenvs\jake-3HYq3Xz5-py3.10\lib\site-packages\rich\progress.py", line 1177, in stop
    self.live.stop()
  File "C:\Users\runneradmin\AppData\Local\pypoetry\Cache\virtualenvs\jake-3HYq3Xz5-py3.10\lib\site-packages\rich\live.py", line 1[47](https://github.com/sonatype-nexus-community/jake/actions/runs/11860011104/job/33054310974#step:13:48), in stop
    with self.console:
  File "C:\Users\runneradmin\AppData\Local\pypoetry\Cache\virtualenvs\jake-3HYq3Xz5-py3.10\lib\site-packages\rich\console.py", line 864, in __exit__
    self._exit_buffer()
  File "C:\Users\runneradmin\AppData\Local\pypoetry\Cache\virtualenvs\jake-3HYq3Xz5-py3.10\lib\site-packages\rich\console.py", line 822, in _exit_buffer
    self._check_buffer()
  File "C:\Users\runneradmin\AppData\Local\pypoetry\Cache\virtualenvs\jake-3HYq3Xz5-py3.10\lib\site-packages\rich\console.py", line 2019, in _check_buffer
    self._write_buffer()
  File "C:\Users\runneradmin\AppData\Local\pypoetry\Cache\virtualenvs\jake-3HYq3Xz5-py3.10\lib\site-packages\rich\console.py", line 2055, in _write_buffer
    legacy_windows_render(buffer, LegacyWindowsTerm(self.file))
  File "C:\Users\runneradmin\AppData\Local\pypoetry\Cache\virtualenvs\jake-3HYq3Xz5-py3.10\lib\site-packages\rich\_windows_renderer.py", line 19, in legacy_windows_render
    term.write_text(text)
  File "C:\Users\runneradmin\AppData\Local\pypoetry\Cache\virtualenvs\jake-3HYq3Xz5-py3.10\lib\site-packages\rich\_win32_console.py", line 402, in write_text
    self.write(text)
  File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\encodings\cp12[52](https://github.com/sonatype-nexus-community/jake/actions/runs/11860011104/job/33054310974#step:13:53).py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f40d' in position 0: character maps to <undefined>
Jake Version: 3.0.14
Put your Python dependencies in a chokehold
@madpah madpah added the bug Something isn't working label Nov 15, 2024
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

1 participant