bash-lsp / bash-language-server

A language server for Bash
MIT License
2.14k stars 123 forks source link

Bash symbol list is incomplete #1108

Open vonschutter opened 8 months ago

vonschutter commented 8 months ago

Code editor

VS Code

Platform

Linux

Version

bash-language-server -v

What steps will reproduce the bug?

load this file and look at the "OUTLINE" in VS code. https://raw.githubusercontent.com/vonschutter/RTD-Setup/main/core/_rtd_library

How often does it reproduce? Is there a required condition?

most of the time.

What is the expected behavior?

a complete list of all the 158 functions in the script.

What do you see instead?

a partial list and some variable scattered about not in their proper function.

Additional information

Functions are named in accordance with google guide.

package::name () { ... }

INTERNAL Functions: .......................................... Number Function ..........................................

1: add_gnome3_favorite_app

2: backup_running_vm

3: check_dependencies

4: check_fi_password_pOwned

5: check_menu_availability

6: cleanup_and_finish

7: compress_all_items_here

8: compress_provided_items

9: create_iso_image

10: create_iso_image_debian

11: create_physical_media_from_iso

12: create_swapfile

13: dependency::command_exists

14: dependency::desktop

15: dependency::file

16: dependency::os_linux

17: dependency::virtualization

18: dialog::copy_file_progress

19: dialog::display_cmd_output

20: dialog::display_error

21: dialog::display_notice

22: dialog::display_summary_message

23: display_result

24: display_software_installation_choices_gtk

25: enable_firewall

26: ensure_admin

27: ensure_flatpak_package_managment

28: ensure_snap_package_managment

29: err_no_menu_system_found

30: generate_autounattend_xml

31: generate_autoyast_file

32: generate_minecraft_server_launcher

33: generate_report_disk_space_used_by_directory

34: github::clone_repo_user

35: github::list_all_user_repositories

36: InstallSoftwareFromRepo

37: io_on_notify_wait

38: is_software_package_available

39: is_software_package_installed

40: kvm::make_vm_template_now_from_debian_org

41: kvm::make_vm_template_now_from_microsoft

42: kvm::make_vm_template_now_from_redhat_com

43: kvm::make_vm_template_now_from_ubuntu_com

44: list_loaded_internal_functions

45: list_loaded_software_functions

46: loader

47: make_kvm_virtual_machine_now_from_fedora_org

48: make_kvm_virtual_machine_now_from_iso

49: make_kvm_virtual_machine_now_from_opensuse_org

50: make_system_recovery_partition

51: oem::check_boot_splash_screen_enable

52: oem::deploy_themes

53: oem::generate_rtd_me_sh_cmd

54: oem::register_all_tools

55: oem::register_wallpapers_for_gnome

56: oem::rtd_reset_default_environment_config

57: oem::rtd_tools_make_launchers

58: pause_a_given_time

59: rtd_oem_check_inet_access

60: rtd_oem_find_live_release

61: rtd_oem_kde_set_wallpaper

62: rtd_oem_pause

63: rtd_oem_preseed_ubuntu_cfg_KS_CFG_Options

64: rtd_oem_release_upgrade

65: rtd_oem_remove_non_western_latin_fonts

66: rtd_oem_reseal

67: rtd_oem_setup_brand_splash_screen

68: rtd_oem_turn_on_gui_network_management

69: rtd_oem_ubuntu_auto_install_iso_builder

70: rtd_ppa_checker

71: rtd_server_setup_choices_productivity

72: rtd_server_setup_choices_services

73: rtd_setup_choices_for_preseed

74: rtd_setup_choices_server

75: rtd_update_system

76: rtd_wait_for_internet_availability

77: scan_for_malware

78: security::check_if_password_pOwned

79: security::scan_for_malware

80: set_colors

81: set_gnome_ui_common_tweaks_for_user

82: set_gnome_ui_corprate_crisp_tweaks_for_user

83: set_gnome_ui_mac_tweaks_for_user

84: set_gnome_ui_moca_tweaks_for_user

85: set_gnome_ui_tweak_no_media_error

86: set_gnome_ui_win10_tweaks_for_user

87: set_install_command

88: software::add_gnome_extensions

89: software::add_native_package

90: software::add_software_task

91: software::check_native_package_dependency

92: software::display_bundle_install_choices_gtk

93: software::display_bundle_removal_choices_gtk

94: software::ensure_restricted_codecs

95: software::ensure_software_store_available

96: software::from_flathub.org

97: software::from_snapcraft.io

98: software::is_native_package_available

99: software::is_native_package_installed

100: software::list_bundles

101: SoftwareManagmentAvailabilityCHK

102: software::native_managment_availability_check

103: software::package_kit::add_package

104: software::package_kit::remove_package

105: software::remove_native_software_package

106: software::update_all_ui

107: software::update_system_txt

108: software::vendor_download_and_install

109: system::add_or_remove_login_script

110: system::change_disk_pass

111: system::check_file_limits

112: system::check_required_variables

113: system_config::tune_system_power_profile

114: system::create_physical_media_from_ubuntu_iso

115: system::display_spinner

116: system::distribution_type

117: system::download_and_manipulate_iso_debian

118: system::ensure_admin

119: system::find_download_ubuntu_iso

120: system::find_vm_bridge

121: system::generate_autoyast_file

122: system::generate_cloudconfig

123: system::generate_ks_cfg_file

124: system::get_vm_config

125: system::get_Windows_Product_Key

126: system::log_item

127: system::make_preseed_cfg

128: system::oem_autounlock_disk

129: system::prepare_environment_for_iso_creation

130: system::process_vm_opt_args

131: system::read_config

132: system::remove_old_kernel

133: system::restart_sound

134: system::run_command_in_gnome_user_session

135: system::set_oem_elevated_privilege_gui

136: system::toggle_oem_auto_elevated_privilege

137: system::toggle_oem_auto_login

138: system::update_config

139: term::animate_while_command

140: term::start_animation

141: term::stop_animation

142: test_iso_boot_media

143: tool::compress_all_items_here

144: tool::compress_provided_items

145: tool::recompress_all_items_in_folder

146: tool::recompress_provided_items

147: tool::up_2_date

148: up_2_date

149: write_error

150: write_host

151: write_information

152: write_status

153: write_warning

154: yad::display_cmd_output

155: yad::display_progressbar_pulsating

156: zenity::display_file

157: zenity::display_info

158: zenity::display_url

vonschutter commented 8 months ago

Incomplete list and variable listed belong in a function (to be expanded): image

chipbite commented 4 months ago

@vonschutter: you have referenced all issues in this project, from nr 1 to 158. Could you perhaps edit to remove this?

(Just put the list in a code / triple backtick (```) section or put a space after the number sign/hash sign.)

(since you put your listing with hashed numberings of the symbols, github creates reference to issues using e g #NR)