nvim-puppeteer
nvim-puppeteer copied to clipboard
[Bug]: Puppeteer recognizes path parameters in FastAPI routes as f-strigns
Bug Description
When creating FastAPI routes you often write strings that look a lot like f-strings but should not be turned into f-strings automatically. See here for an example: https://fastapi.tiangolo.com/tutorial/path-params/
puppeteer turns these strings into f-strings and requires workarounds to remove the f-string
Relevant Screenshot
No response
To Reproduce
No response
neovim version
latest
Make sure you have done the following
- [X] I have updated to the latest version of the plugin.
I don't feel confident fixing this, since I have no experience with FastAPI and therefore am not familiar with any potential edge cases. Should be sth via PR with someone who has actual experience with Fast API.
Just a general word of advice for when you create issues on GitHub
- Don't post something like
version: latest. It's unclear whether it's the latest nightly or stable, and especially if the issue is read some time later, it is not clear what the latest issue was at that time. Runningnvim --versionin the terminal really is not much work. - The "to reproduce" field is there for a reason. Post clear examples how an undesired operation looks like. Off-loading the research work how an API someone is not familiar with looks like makes it harder for anyone to work on that issue, reducing the likelihood that the issue is going to be addressed.
It's just a minor annoyance for me, so no big deal, but in bigger repos where a lot of issues are submitted, the chances are high that your issues will be closed without comment by the maintainers
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment, for example "bump", and it will be kept open.
This issue has been closed due to inactivity, and will not be monitored.