RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Configuration Editor fails to execute with error on configedit.sh

    Scheduled Pinned Locked Moved Help and Support
    configurationeditorerrorubuntu 19.04
    6 Posts 2 Posters 586 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      akiles
      last edited by

      I installed for the first time RetroPie, on an Ubuntu system, following the instruction from page https://retropie.org.uk/docs/Debian/#download-retropie

      I can play my games without problems and everything seemed to work properly, until I tried to use shaders.
      When I try to access the Configuration Editor and select the option “Configure basic libretro emulator options” the menu closes and leave this message on the logs:

      Log started at: qui fev  6 16:34:47 -03 2020
      
      RetroPie-Setup version: 4.5.9 (52f149a4)
      System: Ubuntu 19.04 - Linux ****** 5.0.0-13-generic #14-Ubuntu SMP Mon Apr 15 14:59:14 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
      
      = = = = = = = = = = = = = = = = = = = = =
      Running action 'gui' for 'configedit' : Edit RetroPie/RetroArch configurations
      = = = = = = = = = = = = = = = = = = = = =
      
      /home/****/RetroPie-Setup/scriptmodules/supplementary/configedit.sh: linha 371: 
      Error: Expected at least 5 tokens for --menu, have 4.
      Use --help to list options.: erro de sintaxe na expressão (token de erro é ": Expected at least 5 tokens for --menu, have 4.
      Use --help to list options.")
      
      

      Extract from configedit.sh - lines 348 until 376

      348 function basic_menu_configedit() {
      349     while true; do
      350         local cmd=(dialog --backtitle "$__backtitle" --menu "Which platform do you want to adjust" 22 76 16)
      351         local configs=()
      352         local options=()
      353         local config
      354         local dir
      355         local desc
      356         local i=0
      357         while read config; do
      358             configs+=("$config")
      359             dir=${config%/*}
      360             dir=${dir//$configdir\//}
      361             if [[ "$dir" == "all" ]]; then
      362                 desc="Configure default options for all libretro emulators"
      363             else
      364                 desc="Configure additional options for $dir"
      365             fi
      366             options+=("$i" "$desc")
      367             ((i++))
      368         done < <(find "$configdir" -type f -regex ".*/retroarch.cfg" | sort)
      369         local choice=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
      370         if [[ -n "$choice" ]]; then
      371             basic_configedit "${configs[choice]}"
      372         else
      373             break
      374         fi
      375     done
      376 }
      

      I couldn't find any reference to this error on this forum or on Google. Can any one help me to figure out what is wrong with my installation?

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by mitu

        Can't reproduce the error on a similar Ubuntu install, looks like there might be an issue with the /opt/retropie/configs/ folder (and the sub-folders).
        Can your run the following command:

        find "/opt/retropie/configs" -type f -regex ".*/retroarch.cfg" -exec ls -ld {} \;
        

        and post the output here ?

        A 1 Reply Last reply Reply Quote 0
        • A
          akiles
          last edited by

          Hello mitu, thank you for the replay.

          This is the output of the find command:

          find "/opt/retropie/configs/" -type f -regex ".*/retroarch.cfg" -exec ls -ld {} \;
           -rw------- 1 akiles akiles 220 Dec  8 00:48 /opt/retropie/configs/gb/retroarch.cfg
           -rw-rw-r-- 1 akiles akiles 101946 Jan 24 21:16 /opt/retropie/configs/all/retroarch/retroarch.cfg
           -rw------- 1 akiles akiles 30231 Jan 24 21:16 /opt/retropie/configs/all/retroarch.cfg
           -rw------- 1 akiles akiles 228 Dec  8 00:47 /opt/retropie/configs/zxspectrum/retroarch.cfg
           -rw------- 1 akiles akiles 225 Dec  8 01:28 /opt/retropie/configs/sega32x/retroarch.cfg
           -rw------- 1 akiles akiles 359 Feb  2 20:33 /opt/retropie/configs/snes/retroarch.cfg
           -rw------- 1 akiles akiles 222 Dec  8 00:06 /opt/retropie/configs/ngpc/retroarch.cfg
           -rw------- 1 akiles akiles 227 Dec  8 00:06 /opt/retropie/configs/atari5200/retroarch.cfg
           -rw------- 1 akiles akiles 341 Feb  2 20:23 /opt/retropie/configs/pcengine/retroarch.cfg
           -rw------- 1 akiles akiles 224 Dec  8 00:44 /opt/retropie/configs/neogeo/retroarch.cfg
           -rw------- 1 akiles akiles 228 Dec  8 00:11 /opt/retropie/configs/amstradcpc/retroarch.cfg
           -rw------- 1 akiles akiles 348 Jan 12 00:57 /opt/retropie/configs/gba/retroarch.cfg
           -rw------- 1 akiles akiles 339 Jan 11 22:40 /opt/retropie/configs/atari2600/retroarch.cfg
           -rw------- 1 akiles akiles 221 Dec  8 00:44 /opt/retropie/configs/fds/retroarch.cfg
           -rw------- 1 akiles akiles 227 Dec  8 00:51 /opt/retropie/configs/atarilynx/retroarch.cfg
           -rw------- 1 akiles akiles 344 Jan 12 01:18 /opt/retropie/configs/megadrive/retroarch.cfg
           -rw------- 1 akiles akiles 221 Dec  8 00:48 /opt/retropie/configs/gbc/retroarch.cfg
           -rw------- 1 akiles akiles 339 Feb  2 20:39 /opt/retropie/configs/psx/retroarch.cfg
           -rw------- 1 akiles akiles 225 Dec  8 00:50 /opt/retropie/configs/sg-1000/retroarch.cfg
           -rw------- 1 akiles akiles 350 Jan 12 00:59 /opt/retropie/configs/mastersystem/retroarch.cfg
           -rw------- 1 akiles akiles 226 Dec  8 00:06 /opt/retropie/configs/atari800/retroarch.cfg
           -rw------- 1 akiles akiles 231 Dec  8 00:59 /opt/retropie/configs/mame-mame4all/retroarch.cfg
           -rw------- 1 akiles akiles 338 Feb  2 20:21 /opt/retropie/configs/fba/retroarch.cfg
           -rw------- 1 akiles akiles 226 Dec  8 00:50 /opt/retropie/configs/gamegear/retroarch.cfg
           -rw------- 1 akiles akiles 0 Jan 12 01:25 /opt/retropie/configs/n64/retroarch.cfg
           -rw------- 1 akiles akiles 348 Feb  2 20:21 /opt/retropie/configs/mame-libretro/retroarch.cfg
           -rw------- 1 akiles akiles 439 Feb  2 20:00 /opt/retropie/configs/nes/retroarch.cfg
           -rw------- 1 akiles akiles 224 Dec  8 00:50 /opt/retropie/configs/segacd/retroarch.cfg
           -rw------- 1 akiles akiles 221 Dec  8 00:06 /opt/retropie/configs/ngp/retroarch.cfg
           -rw------- 1 akiles akiles 225 Dec  8 01:33 /opt/retropie/configs/vectrex/retroarch.cfg
           -rw------- 1 akiles akiles 339 Jan 11 22:41 /opt/retropie/configs/atari7800/retroarch.cfg
           -rw------- 1 akiles akiles 341 Feb  2 20:21 /opt/retropie/configs/arcade/retroarch.cfg
          

          One extra information that my be useful. Before installing RetroPie from git, I installed RetroArch from Ubuntu repository using apt-get. Later I uninstalled the Ubuntu RetroArch.

          mituM 1 Reply Last reply Reply Quote 0
          • A
            akiles @mitu
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator @akiles
              last edited by

              @akiles Try to clear out the ~/.config/retroarch folder (delete it), then re-install the retroarch package from the RetroPie-Setup script. See if this has any impact on the error you're receiving.

              A 1 Reply Last reply Reply Quote 0
              • A
                akiles @mitu
                last edited by

                @mitu Reinstall RetroArch didn't solve the problem. I am starting to consider reinstall RetroPie from scratch.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.