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

Escape filenames with the $ character #444

Open
oliversong opened this issue Jan 18, 2023 · 0 comments
Open

Escape filenames with the $ character #444

oliversong opened this issue Jan 18, 2023 · 0 comments

Comments

@oliversong
Copy link

I'm having issues getting Neoformat to run prettier on a file with a dollar sign in its filename. When I rename the file to not have a dollar sign, it runs properly.

Repro:

  1. Make a file with name test.$id.tsx
  2. Try to run :Neoformat in it
  3. Fails with Neformat: formatters ./node_modules/bin/prettier, clang-format failed to run
  4. Rename the file to test.id.tsx
  5. Run :Neoformat
  6. Works properly

Prettier cli also is able to properly run on this file if run directly from shell. My guess is that Neoformat is not properly escaping the $ character?

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