errors.h (16702B)
1 #pragma once 2 3 #include <inttypes.h> 4 5 #include "nvim/gettext_defs.h" 6 #include "nvim/macros_defs.h" 7 8 // 9 // Shared error messages. Excludes errors only used once and debugging messages. 10 // 11 // uncrustify:off 12 EXTERN const char e_abort[] INIT(= N_("E470: Command aborted")); 13 EXTERN const char e_afterinit[] INIT(= N_("E905: Cannot set this option after startup")); 14 EXTERN const char e_api_spawn_failed[] INIT(= N_("E903: Could not spawn API job")); 15 EXTERN const char e_argreq[] INIT(= N_("E471: Argument required")); 16 EXTERN const char e_backslash[] INIT(= N_("E10: \\ should be followed by /, ? or &")); 17 EXTERN const char e_cmdwin[] INIT(= N_("E11: Invalid in command-line window; <CR> executes, CTRL-C quits")); 18 EXTERN const char e_curdir[] INIT(= N_("E12: Command not allowed in secure mode in current dir or tag search")); 19 EXTERN const char e_invalid_buffer_name_str[] INIT(= N_("E158: Invalid buffer name: %s")); 20 EXTERN const char e_command_too_recursive[] INIT(= N_("E169: Command too recursive")); 21 EXTERN const char e_buffer_is_not_loaded[] INIT(= N_("E681: Buffer is not loaded")); 22 EXTERN const char e_endif[] INIT(= N_("E171: Missing :endif")); 23 EXTERN const char e_endtry[] INIT(= N_("E600: Missing :endtry")); 24 EXTERN const char e_endwhile[] INIT(= N_("E170: Missing :endwhile")); 25 EXTERN const char e_endfor[] INIT(= N_("E170: Missing :endfor")); 26 EXTERN const char e_while[] INIT(= N_("E588: :endwhile without :while")); 27 EXTERN const char e_for[] INIT(= N_("E588: :endfor without :for")); 28 EXTERN const char e_exists[] INIT(= N_("E13: File exists (add ! to override)")); 29 EXTERN const char e_failed[] INIT(= N_("E472: Command failed")); 30 EXTERN const char e_intern2[] INIT(= N_("E685: Internal error: %s")); 31 EXTERN const char e_interr[] INIT(= N_("Interrupted")); 32 EXTERN const char e_invarg[] INIT(= N_("E474: Invalid argument")); 33 EXTERN const char e_invarg2[] INIT(= N_("E475: Invalid argument: %s")); 34 EXTERN const char e_invargval[] INIT(= N_("E475: Invalid value for argument %s")); 35 EXTERN const char e_invargNval[] INIT(= N_("E475: Invalid value for argument %s: %s")); 36 EXTERN const char e_duparg2[] INIT(= N_("E983: Duplicate argument: %s")); 37 EXTERN const char e_invexpr2[] INIT(= N_("E15: Invalid expression: \"%s\"")); 38 EXTERN const char e_invrange[] INIT(= N_("E16: Invalid range")); 39 EXTERN const char e_internal_error_in_regexp[] INIT(= N_("E473: Internal error in regexp")); 40 EXTERN const char e_invcmd[] INIT(= N_("E476: Invalid command")); 41 EXTERN const char e_isadir2[] INIT(= N_("E17: \"%s\" is a directory")); 42 EXTERN const char e_no_spell[] INIT(= N_("E756: Spell checking is not possible")); 43 EXTERN const char e_invchan[] INIT(= N_("E900: Invalid channel id")); 44 EXTERN const char e_invchanjob[] INIT(= N_("E900: Invalid channel id: not a job")); 45 EXTERN const char e_jobtblfull[] INIT(= N_("E901: Job table is full")); 46 EXTERN const char e_jobspawn[] INIT(= N_("E903: Process failed to start: %s: \"%s\"")); 47 EXTERN const char e_channotpty[] INIT(= N_("E904: channel is not a pty")); 48 EXTERN const char e_stdiochan2[] INIT(= N_("E905: Couldn't open stdio channel: %s")); 49 EXTERN const char e_invstream[] INIT(= N_("E906: invalid stream for channel")); 50 EXTERN const char e_invstreamrpc[] INIT(= N_("E906: invalid stream for rpc channel, use 'rpc'")); 51 EXTERN const char e_streamkey[] INIT(= N_("E5210: dict key '%s' already set for buffered stream in channel %" PRIu64)); 52 EXTERN const char e_libcall[] INIT(= N_("E364: Library call failed for \"%s()\"")); 53 EXTERN const char e_fsync[] INIT(= N_("E667: Fsync failed: %s")); 54 EXTERN const char e_mkdir[] INIT(= N_("E739: Cannot create directory %s: %s")); 55 EXTERN const char e_markinval[] INIT(= N_("E19: Mark has invalid line number")); 56 EXTERN const char e_marknotset[] INIT(= N_("E20: Mark not set")); 57 EXTERN const char e_modifiable[] INIT(= N_("E21: Cannot make changes, 'modifiable' is off")); 58 EXTERN const char e_nesting[] INIT(= N_("E22: Scripts nested too deep")); 59 EXTERN const char e_noalt[] INIT(= N_("E23: No alternate file")); 60 EXTERN const char e_noabbr[] INIT(= N_("E24: No such abbreviation")); 61 EXTERN const char e_nobang[] INIT(= N_("E477: No ! allowed")); 62 EXTERN const char e_nogroup[] INIT(= N_("E28: No such highlight group name: %s")); 63 EXTERN const char e_noinstext[] INIT(= N_("E29: No inserted text yet")); 64 EXTERN const char e_nolastcmd[] INIT(= N_("E30: No previous command line")); 65 EXTERN const char e_nomap[] INIT(= N_("E31: No such mapping")); 66 EXTERN const char e_nomatch[] INIT(= N_("E479: No match")); 67 EXTERN const char e_nomatch2[] INIT(= N_("E480: No match: %s")); 68 EXTERN const char e_noname[] INIT(= N_("E32: No file name")); 69 EXTERN const char e_nopresub[] INIT(= N_("E33: No previous substitute regular expression")); 70 EXTERN const char e_noprev[] INIT(= N_("E34: No previous command")); 71 EXTERN const char e_noprevre[] INIT(= N_("E35: No previous regular expression")); 72 EXTERN const char e_norange[] INIT(= N_("E481: No range allowed")); 73 EXTERN const char e_noroom[] INIT(= N_("E36: Not enough room")); 74 EXTERN const char e_notmp[] INIT(= N_("E483: Can't get temp file name")); 75 EXTERN const char e_notopen[] INIT(= N_("E484: Can't open file %s")); 76 EXTERN const char e_notopen_2[] INIT(= N_("E484: Can't open file %s: %s")); 77 EXTERN const char e_cant_read_file_str[] INIT(= N_("E485: Can't read file %s")); 78 EXTERN const char e_null[] INIT(= N_("E38: Null argument")); 79 EXTERN const char e_number_exp[] INIT(= N_("E39: Number expected")); 80 EXTERN const char e_openerrf[] INIT(= N_("E40: Can't open errorfile %s")); 81 EXTERN const char e_outofmem[] INIT(= N_("E41: Out of memory!")); 82 EXTERN const char e_patnotf[] INIT(= N_("Pattern not found")); 83 EXTERN const char e_patnotf2[] INIT(= N_("E486: Pattern not found: %s")); 84 EXTERN const char e_positive[] INIT(= N_("E487: Argument must be positive")); 85 EXTERN const char e_prev_dir[] INIT(= N_("E459: Cannot go back to previous directory")); 86 87 EXTERN const char e_no_errors[] INIT(= N_("E42: No Errors")); 88 EXTERN const char e_loclist[] INIT(= N_("E776: No location list")); 89 EXTERN const char e_re_damg[] INIT(= N_("E43: Damaged match string")); 90 EXTERN const char e_re_corr[] INIT(= N_("E44: Corrupted regexp program")); 91 EXTERN const char e_readonly[] INIT(= N_("E45: 'readonly' option is set (add ! to override)")); 92 EXTERN const char e_letwrong[] INIT(= N_("E734: Wrong variable type for %s=")); 93 EXTERN const char e_illvar[] INIT(= N_("E461: Illegal variable name: %s")); 94 EXTERN const char e_cannot_mod[] INIT(= N_("E995: Cannot modify existing variable")); 95 EXTERN const char e_cannot_change_readonly_variable_str[] INIT(= N_("E46: Cannot change read-only variable \"%.*s\"")); 96 EXTERN const char e_dictreq[] INIT(= N_("E715: Dictionary required")); 97 EXTERN const char e_blobidx[] INIT(= N_("E979: Blob index out of range: %" PRId64)); 98 EXTERN const char e_invalblob[] INIT(= N_("E978: Invalid operation for Blob")); 99 EXTERN const char e_toomanyarg[] INIT(= N_("E118: Too many arguments for function: %s")); 100 EXTERN const char e_toofewarg[] INIT(= N_("E119: Not enough arguments for function: %s")); 101 EXTERN const char e_dictkey[] INIT(= N_("E716: Key not present in Dictionary: \"%s\"")); 102 EXTERN const char e_dictkey_len[] INIT(= N_("E716: Key not present in Dictionary: \"%.*s\"")); 103 EXTERN const char e_listreq[] INIT(= N_("E714: List required")); 104 EXTERN const char e_listblobreq[] INIT(= N_("E897: List or Blob required")); 105 EXTERN const char e_listblobarg[] INIT(= N_("E899: Argument of %s must be a List or Blob")); 106 EXTERN const char e_listdictarg[] INIT(= N_("E712: Argument of %s must be a List or Dictionary")); 107 EXTERN const char e_listdictblobarg[] INIT(= N_("E896: Argument of %s must be a List, Dictionary or Blob")); 108 EXTERN const char e_readerrf[] INIT(= N_("E47: Error while reading errorfile")); 109 EXTERN const char e_sandbox[] INIT(= N_("E48: Not allowed in sandbox")); 110 EXTERN const char e_secure[] INIT(= N_("E523: Not allowed here")); 111 EXTERN const char e_textlock[] INIT(= N_("E565: Not allowed to change text or change window")); 112 EXTERN const char e_screenmode[] INIT(= N_("E359: Screen mode setting not supported")); 113 EXTERN const char e_scroll[] INIT(= N_("E49: Invalid scroll size")); 114 EXTERN const char e_shellempty[] INIT(= N_("E91: 'shell' option is empty")); 115 EXTERN const char e_signdata[] INIT(= N_("E255: Couldn't read in sign data!")); 116 EXTERN const char e_swapclose[] INIT(= N_("E72: Close error on swap file")); 117 EXTERN const char e_toocompl[] INIT(= N_("E74: Command too complex")); 118 EXTERN const char e_longname[] INIT(= N_("E75: Name too long")); 119 EXTERN const char e_toomsbra[] INIT(= N_("E76: Too many [")); 120 EXTERN const char e_toomany[] INIT(= N_("E77: Too many file names")); 121 EXTERN const char e_trailing[] INIT(= N_("E488: Trailing characters")); 122 EXTERN const char e_trailing_arg[] INIT(= N_("E488: Trailing characters: %s")); 123 EXTERN const char e_umark[] INIT(= N_("E78: Unknown mark")); 124 EXTERN const char e_wildexpand[] INIT(= N_("E79: Cannot expand wildcards")); 125 EXTERN const char e_winheight[] INIT(= N_("E591: 'winheight' cannot be smaller than 'winminheight'")); 126 EXTERN const char e_winwidth[] INIT(= N_("E592: 'winwidth' cannot be smaller than 'winminwidth'")); 127 EXTERN const char e_write[] INIT(= N_("E80: Error while writing")); 128 EXTERN const char e_zerocount[] INIT(= N_("E939: Positive count required")); 129 EXTERN const char e_usingsid[] INIT(= N_("E81: Using <SID> not in a script context")); 130 EXTERN const char e_missingparen[] INIT(= N_("E107: Missing parentheses: %s")); 131 EXTERN const char e_empty_buffer[] INIT(= N_("E749: Empty buffer")); 132 EXTERN const char e_nobufnr[] INIT(= N_("E86: Buffer %" PRId64 " does not exist")); 133 134 EXTERN const char e_no_write_since_last_change[] INIT(= N_("E37: No write since last change")); 135 EXTERN const char e_no_write_since_last_change_add_bang_to_override[] INIT(= N_("E37: No write since last change (add ! to override)")); 136 EXTERN const char e_no_write_since_last_change_for_buffer_nr_add_bang_to_override[] INIT(= N_("E89: No write since last change for buffer %d (add ! to override)")); 137 EXTERN const char e_buffer_nr_not_found[] INIT(= N_("E92: Buffer %d not found")); 138 EXTERN const char e_unknown_function_str[] INIT(= N_("E117: Unknown function: %s")); 139 EXTERN const char e_str_not_inside_function[] INIT(= N_("E193: %s not inside a function")); 140 EXTERN const char e_job_still_running[] INIT(= N_("E948: Job still running")); 141 EXTERN const char e_job_still_running_add_bang_to_end_the_job[] INIT(= N_("E948: Job still running (add ! to end the job)")); 142 143 EXTERN const char e_invalpat[] INIT(= N_("E682: Invalid search pattern or delimiter")); 144 EXTERN const char e_bufloaded[] INIT(= N_("E139: File is loaded in another buffer")); 145 EXTERN const char e_notset[] INIT(= N_("E764: Option '%s' is not set")); 146 EXTERN const char e_invalidreg[] INIT(= N_("E850: Invalid register name")); 147 EXTERN const char e_dirnotf[] INIT(= N_("E919: Directory not found in '%s': \"%s\"")); 148 EXTERN const char e_au_recursive[] INIT(= N_("E952: Autocommand caused recursive behavior")); 149 EXTERN const char e_menu_only_exists_in_another_mode[] 150 INIT(= N_("E328: Menu only exists in another mode")); 151 EXTERN const char e_autocmd_close[] INIT(= N_("E813: Cannot close autocmd window")); 152 EXTERN const char e_list_index_out_of_range_nr[] INIT(= N_("E684: List index out of range: %" PRId64)); 153 EXTERN const char e_listarg[] INIT(= N_("E686: Argument of %s must be a List")); 154 EXTERN const char e_unsupportedoption[] INIT(= N_("E519: Option not supported")); 155 EXTERN const char e_fnametoolong[] INIT(= N_("E856: Filename too long")); 156 EXTERN const char e_using_float_as_string[] INIT(= N_("E806: Using a Float as a String")); 157 EXTERN const char e_cannot_edit_other_buf[] INIT(= N_("E788: Not allowed to edit another buffer now")); 158 EXTERN const char e_using_number_as_bool_nr[] INIT(= N_("E1023: Using a Number as a Bool: %d")); 159 EXTERN const char e_not_callable_type_str[] INIT(= N_("E1085: Not a callable type: %s")); 160 EXTERN const char e_auabort[] INIT(= N_("E855: Autocommands caused command to abort")); 161 162 EXTERN const char e_api_error[] INIT(= N_("E5555: API call: %s")); 163 164 EXTERN const char e_fast_api_disabled[] INIT(= N_("E5560: %s must not be called in a fast event context")); 165 166 EXTERN const char e_floatonly[] INIT(= N_("E5601: Cannot close window, only floating window would remain")); 167 EXTERN const char e_floatexchange[] INIT(= N_("E5602: Cannot exchange or rotate float")); 168 169 EXTERN const char e_cant_find_directory_str_in_cdpath[] INIT(= N_("E344: Can't find directory \"%s\" in cdpath")); 170 EXTERN const char e_cant_find_file_str_in_path[] INIT(= N_("E345: Can't find file \"%s\" in path")); 171 EXTERN const char e_no_more_directory_str_found_in_cdpath[] INIT(= N_("E346: No more directory \"%s\" found in cdpath")); 172 EXTERN const char e_no_more_file_str_found_in_path[] INIT(= N_("E347: No more file \"%s\" found in path")); 173 174 EXTERN const char e_value_is_locked[] INIT(= N_("E741: Value is locked")); 175 EXTERN const char e_value_is_locked_str[] INIT(= N_("E741: Value is locked: %.*s")); 176 EXTERN const char e_cannot_change_value[] INIT(= N_("E742: Cannot change value")); 177 EXTERN const char e_cannot_change_value_of_str[] INIT(= N_("E742: Cannot change value of %.*s")); 178 EXTERN const char e_cannot_set_variable_in_sandbox_str[] INIT(= N_("E794: Cannot set variable in the sandbox: \"%.*s\"")); 179 EXTERN const char e_cannot_delete_variable_str[] INIT(= N_("E795: Cannot delete variable %.*s")); 180 EXTERN const char e_problem_creating_internal_diff[] INIT(= N_("E960: Problem creating the internal diff")); 181 182 EXTERN const char e_cannot_define_autocommands_for_all_events[] INIT(= N_("E1155: Cannot define autocommands for ALL events")); 183 EXTERN const char e_cannot_change_arglist_recursively[] INIT(= N_("E1156: Cannot change the argument list recursively")); 184 185 EXTERN const char e_resulting_text_too_long[] INIT(= N_("E1240: Resulting text too long")); 186 187 EXTERN const char e_line_number_out_of_range[] INIT(= N_("E1247: Line number out of range")); 188 189 EXTERN const char e_highlight_group_name_invalid_char[] INIT(= N_("E5248: Invalid character in group name")); 190 191 EXTERN const char e_highlight_group_name_too_long[] INIT(= N_("E1249: Highlight group name too long")); 192 193 EXTERN const char e_string_required[] INIT(= N_("E928: String required")); 194 195 EXTERN const char e_invalid_column_number_nr[] INIT( = N_("E964: Invalid column number: %ld")); 196 EXTERN const char e_invalid_line_number_nr[] INIT(= N_("E966: Invalid line number: %ld")); 197 198 EXTERN const char e_reduce_of_an_empty_str_with_no_initial_value[] INIT(= N_("E998: Reduce of an empty %s with no initial value")); 199 200 EXTERN const char e_invalid_value_for_blob_nr[] INIT(= N_("E1239: Invalid value for blob: 0x" PRIX64)); 201 EXTERN const char e_stray_closing_curly_str[] 202 INIT(= N_("E1278: Stray '}' without a matching '{': %s")); 203 EXTERN const char e_missing_close_curly_str[] 204 INIT(= N_("E1279: Missing '}': %s")); 205 EXTERN const char e_cannot_change_menus_while_listing[] 206 INIT(= N_("E1310: Cannot change menus while listing")); 207 EXTERN const char e_not_allowed_to_change_window_layout_in_this_autocmd[] 208 INIT(= N_("E1312: Not allowed to change the window layout in this autocmd")); 209 210 EXTERN const char e_val_too_large[] INIT(= N_("E1510: Value too large: %s")); 211 212 EXTERN const char e_undobang_cannot_redo_or_move_branch[] 213 INIT(= N_("E5767: Cannot use :undo! to redo or move to a different undo branch")); 214 215 EXTERN const char e_winfixbuf_cannot_go_to_buffer[] 216 INIT(= N_("E1513: Cannot switch buffer. 'winfixbuf' is enabled")); 217 EXTERN const char e_invalid_return_type_from_findfunc[] INIT( = N_("E1514: 'findfunc' did not return a List type")); 218 EXTERN const char e_cannot_switch_to_a_closing_buffer[] INIT( = N_("E1546: Cannot switch to a closing buffer")); 219 EXTERN const char e_cannot_have_more_than_nr_diff_anchors[] INIT( = N_("E1549: Cannot have more than %d diff anchors")); 220 EXTERN const char e_failed_to_find_all_diff_anchors[] INIT( = N_("E1550: Failed to find all diff anchors")); 221 EXTERN const char e_diff_anchors_with_hidden_windows[] INIT( = N_("E1562: Diff anchors cannot be used with hidden diff windows")); 222 EXTERN const char e_leadtab_requires_tab[] INIT( = N_("E1572: 'listchars' field \"leadtab\" requires \"tab\" to be specified")); 223 224 EXTERN const char e_trustfile[] INIT(= N_("E5570: Cannot update trust file: %s")); 225 EXTERN const char e_cannot_read_from_str_2[] INIT(= N_("E282: Cannot read from \"%s\"")); 226 227 EXTERN const char e_conflicting_configs[] INIT(= N_("E5422: Conflicting configs: \"%s\" \"%s\"")); 228 229 EXTERN const char e_unknown_option2[] INIT(= N_("E355: Unknown option: %s")); 230 231 EXTERN const char top_bot_msg[] INIT(= N_("search hit TOP, continuing at BOTTOM")); 232 EXTERN const char bot_top_msg[] INIT(= N_("search hit BOTTOM, continuing at TOP")); 233 234 EXTERN const char line_msg[] INIT(= N_(" line ")); 235 // uncrustify:on