Skip to content

Error on manual trigger #351

@thiberaw

Description

@thiberaw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions