Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home: sh: mc: line 1: syntax error: unexpected end of file #1054

Closed
S-Harshow opened this issue Sep 9, 2017 · 18 comments
Closed

Home: sh: mc: line 1: syntax error: unexpected end of file #1054

S-Harshow opened this issue Sep 9, 2017 · 18 comments
Milestone

Comments

@S-Harshow
Copy link

PIO Core Call Error: got stderr: "sh: mc: line 1: syntax error: unexpected end of file\nsh: error importing function definition for `mc'\n"

@ivankravets
Copy link
Member

Could you open PlatformIO IDE Terminal and type:

pio boards --json-output

Do you see some text?

@S-Harshow
Copy link
Author

S-Harshow commented Sep 9, 2017 via email

@ivankravets
Copy link
Member

Could you try PIO IDE for VSCode?

@ivankravets
Copy link
Member

Please run in PIO IDE Terminal and provide an output:

python -c "import os; print os.environ"

@ivankravets
Copy link
Member

@domingosliraneto , @scottdarch please provide the same output of #1054 (comment)

@domingosliraneto
Copy link

Hi, it's okay. Thank you for your help! @ivankravets

@ivankravets
Copy link
Member

@domingosliraneto does it work for you now?

@domingosliraneto
Copy link

Yes, thanks!

@ivankravets
Copy link
Member

@domingosliraneto how did you resolve that?

@domingosliraneto
Copy link

The place where I work uses proxy server, for some reason it blocked the installation of the PlatiformIO dependencies, I only did the reinstallation when I got home and everything worked.

@ivankravets ivankravets changed the title Home: Could not load boards list Home: sh: mc: line 1: syntax error: unexpected end of file Sep 15, 2017
@ivankravets
Copy link
Member

@thosoo Please run in PIO IDE Terminal and provide an output:

python -c "import os; print os.environ"

@S-Harshow
Copy link
Author

S-Harshow commented Sep 15, 2017 via email

@thosoo
Copy link

thosoo commented Sep 16, 2017

@ivankravets

[thaison@localhost ~]$ python -c "import os; print os.environ"
{'PLATFORMIO_DISABLE_PROGRESSBAR': 'true', 'BASH_FUNC_module%%': '() { eval /usr/bin/modulecmd bash $*', 'PLATFORMIO_CALLER': 'atom', 'BASH_FUNC_scl%%': '() { local CMD=$1;', 'GJS_DEBUG_OUTPUT': 'stderr', 'LESSOPEN'
: '||/usr/bin/lesspipe.sh %s', 'XDG_CURRENT_DESKTOP': 'GNOME', 'XDG_SESSION_TYPE': 'wayland', 'QT_IM_MODULE': 'ibus', 'LOGNAME': 'thaison', 'USER': 'thaison', 'PATH': '/home/thaison/.platformio/penv/bin:/usr/local/bin:/
usr/local/sbin:/usr/bin:/usr/sbin:/home/thaison/.local/bin:/home/thaison/bin:/home/thaison/.local/bin:/home/thaison/bin:/home/thaison/.local/bin:/home/thaison/bin', 'XDG_VTNR': '2', 'HOME': '/home/thaison', 'DISPLAY': '
:0', 'TERM_PROGRAM': 'platformio-ide-terminal', 'LANG': 'de_DE.UTF-8', 'TERM': 'xterm-256color', 'SHELL': '/bin/bash', 'JOURNAL_STREAM': '9:31587', 'SESSION_MANAGER': 'local/unix:@/tmp/.ICE-unix/1744,unix/unix:/tmp/.ICE
-unix/1744', 'XDG_DATA_DIRS': '/home/thaison/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/', 'WAYLAND_DISPLAY': 'wayland-0', 'HISTSIZE': '1000', 'GNOME_DESKTOP_SESSION
ID': 'this-is-deprecated', 'XMODIFIERS': '@im=ibus', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '2435', 'PLATFORMIO_IDE': '2.0.0-rc.2', 'USERNAME': 'thaison', 'XDG_SESSION_DESKTOP': 'gnome', ' if [ "$CMD" ': ' "load" -o "$CMD" =
"unload" ]; then', 'XDG_RUNTIME_DIR': '/run/user/1000', 'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'GIO_LAUNCHED_DESKTOP_FILE': '/usr/share/applications/atom.desktop', 'GDMSESSION': 'gnome', 'MAIL': '/var/spool/mai
l/thaison', 'LOADEDMODULES': '', 'XDG_SESSION_ID': '2', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', '
': '/home/thaison/.platformio/penv/bin/python', 'MODULEPATH': '/etc/scl/modulefiles:/etc/scl/modulefi
les:/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles', 'DESKTOP_SESSION': 'gnome', 'HOSTNAME': 'localhost.localdomain', 'GDM_LANG': 'de_DE.UTF-8', 'MODULESHOME': '/usr/share/Mo
dules', 'HISTCONTROL': 'ignoredups', 'SHLVL': '3', 'PWD': '/home/thaison', 'DESKTOP_STARTUP_ID': 'gnome-shell-1829-localhost.localdomain-/usr/share/atom/atom-1_TIME95382', 'XDG_MENU_PREFIX': 'gnome-', 'LS_COLORS': 'rs=0
:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=
48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:.tar=38;5;9:.tgz=38;5;9:.arc=38;5;9:.arj=38;5;9:.taz=38;5;9:.lha=38;5;9:.lz4=38;5;9:.lzh=38;5;9:.lzma=38;5;9:.tlz=38;5;9:.txz=38;5;9:.tzo=38;5;9:.t7z=38;5;9:.z
ip=38;5;9:.z=38;5;9:.Z=38;5;9:.dz=38;5;9:.gz=38;5;9:.lrz=38;5;9:.lz=38;5;9:.lzo=38;5;9:.xz=38;5;9:.zst=38;5;9:.tzst=38;5;9:.bz2=38;5;9:.bz=38;5;9:.tbz=38;5;9:.tbz2=38;5;9:.tz=38;5;9:.deb=38;5;9:.rpm=38;
5;9:
.jar=38;5;9:.war=38;5;9:.ear=38;5;9:.sar=38;5;9:.rar=38;5;9:.alz=38;5;9:.ace=38;5;9:.zoo=38;5;9:.cpio=38;5;9:.7z=38;5;9:.rz=38;5;9:.cab=38;5;9:.wim=38;5;9:.swm=38;5;9:.dwm=38;5;9:.esd=38;5;9:.jpg=38
;5;13:.jpeg=38;5;13:.mjpg=38;5;13:.mjpeg=38;5;13:.gif=38;5;13:.bmp=38;5;13:.pbm=38;5;13:.pgm=38;5;13:.ppm=38;5;13:.tga=38;5;13:.xbm=38;5;13:.xpm=38;5;13:.tif=38;5;13:.tiff=38;5;13:.png=38;5;13:.svg=38;5;1
3:
.svgz=38;5;13:.mng=38;5;13:.pcx=38;5;13:.mov=38;5;13:.mpg=38;5;13:.mpeg=38;5;13:.m2v=38;5;13:.mkv=38;5;13:.webm=38;5;13:.ogm=38;5;13:.mp4=38;5;13:.m4v=38;5;13:.mp4v=38;5;13:.vob=38;5;13:.qt=38;5;13:.nu
v=38;5;13:
.wmv=38;5;13:.asf=38;5;13:.rm=38;5;13:.rmvb=38;5;13:.flc=38;5;13:.avi=38;5;13:.fli=38;5;13:.flv=38;5;13:.gl=38;5;13:.dl=38;5;13:.xcf=38;5;13:.xwd=38;5;13:.yuv=38;5;13:.cgm=38;5;13:.emf=38;5;13:*
.ogv=38;5;13:.ogx=38;5;13:.aac=38;5;45:.au=38;5;45:.flac=38;5;45:.m4a=38;5;45:.mid=38;5;45:.midi=38;5;45:.mka=38;5;45:.mp3=38;5;45:.mpc=38;5;45:.ogg=38;5;45:.ra=38;5;45:.wav=38;5;45:.oga=38;5;45:.opus=38;
5;45:
.spx=38;5;45:*.xspf=38;5;45:', 'GJS_DEBUG_TOPICS': 'JS ERROR;JS LOG', 'XDG_SEAT': 'seat0'}

@ivankravets ivankravets added this to the 3.5.0 milestone Sep 21, 2017
@ivankravets
Copy link
Member

Fixed in PIO Core+ 0.10.10. Please run pio update and restart IDE

ivankravets added a commit that referenced this issue Dec 28, 2017
… issue #1236, issue #1235, issue #953, issue #1118, issue #1107, issue #1196, issue #1179, issue #1161, issue #1126, issue #104, issue #1033, issue #1034, issue #1175, issue #1173, issue #1155, issue #1188, issue #1111, issue #1153, issue #1150, issue #1145, issue #1139, issue #1137, issue #1170, issue #1157, issue #1102, issue #1105, issue #1140, issue #1154, issue #1066, issue #1038, issue #1054, issue #1055, issue #1061, issue #1017)
@inghardware2
Copy link

I am using Manjaro Deepin and it does not load the list of boards, I have done everything that you have put in your indications and still I can not solve this problem, I have VS Code and I installed the PlatformIO core 3.6.0a2 extension

@inghardware2
Copy link

How do I fix PIO Core+ 0.10.10?

@ivankravets ivankravets reopened this Jun 13, 2018
@ivankravets ivankravets modified the milestones: 3.5.0, 3.5.4 Jun 13, 2018
@ivankravets
Copy link
Member

@inghardware2 could you provide an output of python -c "import os; print os.environ"?

@ivankravets
Copy link
Member

@inghardware2 #1311

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants