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

Error on manual trigger #351

Open
thiberaw opened this issue Oct 25, 2023 · 0 comments
Open

Error on manual trigger #351

thiberaw opened this issue Oct 25, 2023 · 0 comments

Comments

@thiberaw
Copy link

Do you want to request a feature or report a bug?
Bug

What is the current/expected behavior?
When triggering manually:

Error detected while processing function prettier#Prettier[17]..prettier#resolver#config#resolve[9]..<SNR>218_Get_current_version_flags[1]..<SNR>218_Get_prettier_cli_version[6]..<SNR>218_Trim_internal_unprintable:                                                                                                        
line    3:                                                                                                                                                                                                                                                                                                                   
E15: Invalid expression: >substitute(l:patt_at_ends, '', 'g')                                                                                                                                                                                                                                                                
E15: Invalid expression: a:text->substitute(l:patt_at_ends, '', 'g')                                                                                                                                                                                                                                                         
Error detected while processing function prettier#Prettier[17]..prettier#resolver#config#resolve:                                                                                                                                                                                                                            
line    9:                                                                                                                                                                                                                                                                                                                   
E15: Invalid expression: >map(function('s:Map_flag_to_cmd_part', [l:config_and_sel])) ->values() ->join(' ')                                                                                                                                                                                                                 
E15: Invalid expression: ' ' . s:Get_current_version_flags(s:FLAGS) ->map(function('s:Map_flag_to_cmd_part', [l:config_and_sel])) ->values() ->join(' ') 

What version of vim-prettier are you using - (output of :PrettierVersion) ?
1.0.0

What version of prettier are you using - (output of :PrettierCliVersion) ?
2.7.1^@

What is your prettier executable path - (output of :PrettierCliPath) ?
/home/thibaut/.../node_modules/.bin/prettier
(local prettier inside the work project)

Did this work in previous versions of vim-prettier and/or prettier ?
Got this after :PlugUpdate

Personal Information
Install

Plug 'prettier/vim-prettier', { 'do': 'yarn install --forzen-lockfile --production', 'for': ['javascript', 'typescript', 'markdown'] }

Neovim

NVIM v0.5.0-dev+1256-gd19348923                                                                                                                               
Build type: Release                                                                                                                                           
LuaJIT 2.1.0-beta3  

System

Ubuntu 20.04.6 LTS

Thank you for all your 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