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