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

Problem with getting the formatter to work on windows #6

Open
baschni opened this issue Oct 9, 2024 · 0 comments
Open

Problem with getting the formatter to work on windows #6

baschni opened this issue Oct 9, 2024 · 0 comments

Comments

@baschni
Copy link

baschni commented Oct 9, 2024

Hi,

i installed the pip packet and added the configuration line to my settings.json.

When I then run "Format document" nothings happens, but I can show the output:

`Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Programs\Python\Python312\Lib\site-packages\c_formatter_42_main
.py", line 64, in
sys.exit(main())
^^^^^^
File "C:\Programs\Python\Python312\Lib\site-packages\c_formatter_42_main
.py", line 43, in main
print(run_all(content), end="")
^^^^^^^^^^^^^^^^
File "C:\Programs\Python\Python312\Lib\site-packages\c_formatter_42\run.py", line 29, in run_all
content = clang_format(content)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Programs\Python\Python312\Lib\site-packages\c_formatter_42\formatters\clang_format.py", line 64, in clang_format
with _config_context():
File "C:\Programs\Python\Python312\Lib\contextlib.py", line 137, in enter
return next(self.gen)
^^^^^^^^^^^^^^
File "C:\Programs\Python\Python312\Lib\site-packages\c_formatter_42\formatters\clang_format.py", line 33, in _config_context
CONFIG_FILENAME.symlink_to(config_path)
File "C:\Programs\Python\Python312\Lib\pathlib.py", line 1386, in symlink_to
os.symlink(target, self, target_is_directory)
OSError: [WinError 1314] Dem Client fehlt ein erforderliches Recht: 'C:\Programs\Python\Python312\Lib\site-packages\c_formatter_42\data\.clang-format' -> '.clang-format'

42-c-format: Please read README and check requirements.
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Programs\Python\Python312\Lib\site-packages\c_formatter_42_main
.py", line 64, in
sys.exit(main())
^^^^^^
File "C:\Programs\Python\Python312\Lib\site-packages\c_formatter_42_main
.py", line 43, in main
print(run_all(content), end="")
^^^^^^^^^^^^^^^^
File "C:\Programs\Python\Python312\Lib\site-packages\c_formatter_42\run.py", line 29, in run_all
content = clang_format(content)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Programs\Python\Python312\Lib\site-packages\c_formatter_42\formatters\clang_format.py", line 64, in clang_format
with _config_context():
File "C:\Programs\Python\Python312\Lib\contextlib.py", line 137, in enter
return next(self.gen)
^^^^^^^^^^^^^^
File "C:\Programs\Python\Python312\Lib\site-packages\c_formatter_42\formatters\clang_format.py", line 33, in _config_context
CONFIG_FILENAME.symlink_to(config_path)
File "C:\Programs\Python\Python312\Lib\pathlib.py", line 1386, in symlink_to
os.symlink(target, self, target_is_directory)
OSError: [WinError 1314] Dem Client fehlt ein erforderliches Recht: 'C:\Programs\Python\Python312\Lib\site-packages\c_formatter_42\data\.clang-format' -> '.clang-format'

42-c-format: Please read README and check requirements.`

It seems like a problem with sym linking. What can I do to make it work?

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