prettier / prettier/vim-prettier
1.0.0-alpha: error upon save file: Error detected while processing function...
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 1.8k
- Forks
- 137
- PR merge metrics
- No merged PRs in 30d
Description
Do you want to request a feature or report a bug?
bug
What is the current/expected behavior?
Upon saving a file, expecting it to format the code. But instead getting
Error detected while processing function prettier#Prettier[33]..prettier#job#runner#run[2]..<SNR>86_asyncFormat[14]..prettier#job#async#ne
ovim#run:
line 23:
What version of vim-prettier are you using - (output of :PrettierVersion) ?
1.0.0-alpha
What version of prettier are you using - (output of :PrettierCliVersion) ?
1.19.1
What is your prettier executable path - (output of :PrettierCliPath) ?
/home/matt/dev/jumpclub/node_modules/.bin/prettier
(ie, the local prettier inside my project)
Did this work in previous versions of vim-prettier and/or prettier ?
I think so. I am setting up a new machine and I believe when I installed my vim plugins it picked up a newer version of vim-prettier. But I am not totally sure.
Other info
vim version: NVIM v0.4.0-1655-gc190415dc
OS: Ubuntu 18.04
I installed the 0.x release and do not get the error. The 0.x version seems to be behaving as expected.
and btw, thanks for making this plugin, super useful!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the save-time formatting failure with vim-prettier 1.0.0-alpha, Prettier 1.19.1, and the reported Neovim environment. Start with the save path and the prettier#job#async#neovim#run error, using :PrettierVersion, :PrettierCliVersion, and :PrettierCliPath; compare against the working 0.x release. Done means formatting completes on save without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, neovim, vim
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100