-
Notifications
You must be signed in to change notification settings - Fork 161
Strange lines in terminal #120
Comments
Also using Fedora 25 on an Intel NUC Skull Canyon
|
can't reproduce this outside of atom... surprisingly, you can also trigger the same issue in gnome-terminal if you configure the karan/atom-terminal and open a terminal within Atom using the shortcuts |
But is these strange console output an atom-core error? I ask this, because another package (git-control) have the same issue... |
This is definitely an atom core error... is there a way to replicate this in safe mode? |
I tried open atom in safe mode, but it doesn't load any package. I will try
again later...
|
Hello. |
Please see atom/atom#13451 (comment). |
Hi, I've battled with the same issue for hours in Fedora 24. I don't understand how bash function export works and average-level googling did not help a lot. Besides, I need the "module" command to work so the typical solution "uninstall environment-modules" is no option for me. Strangely enough, I found that if I start atom from the (bash) terminal, the messages are gone. So I bypassed the error by creating a script...
... and updating the Atom shortcut (in my KDE menu, gnome should be similar) to use this script. This perhaps forces some bash magic I don't understand. But voila, I am done :-) |
OK. I will try your solution.
|
When I got the .desktop file, I find this:
Seems atom starts from a different location than
|
Well, the |
Thanks.
Does atom team correct this bug in the next release? It is only an one line
change...
|
What's the status on this? I still get this error as of Atom 1.17 |
Based on @TJProgrammer's comments, just changing /usr/share/atom/atom to /usr/bin/atom in the .desktop file would solve the problem for Fedora. Can this be done? |
Just for the record, this issue is not exclusive to this package, it is reproducible also in atom core (see my comment here). |
@samuelzyx Funny you should ask. atom/atom#17508 (comment) The reason this has taken so long is that it was hard to reproduce without plugins. Strangely, the issue stopped happening for me on platformio-atom-ide-terminal on Fedora 28, but still happens on the github package. It used to happen every time I opened a terminal inside atom. |
Please retest again with platformio-atom-ide-terminal 2.9.0 which since f64888d is using node-pty-prebuilt instead unmaintained and outdated pty.js. This is good news for stability and compatibility. if issues persist, please open a new ticket with requested information. Thx =) |
Thanks. Now there isn't no strange output! |
@TJProgrammer thank you for the follow up =) |
Still I am getting this error on Fedora 31. |
Thank you for reaching out with this bug report. Please see #120 (comment) and also try to export your paths to your For solution read #120 (comment) and solution on #120 (comment) This is an external issue to this project and was fixed upstream in https://github.com/atom/atom/pull/17508/files
Thank you for your understanding. |
`getEnvFromShell` function calls `env` command through shell to get all defined environment variable. However `env` also returns the shell function defined with their whole code written on multiple lines. Such shell function definitions were not properly handled by `getEnvFromShell` which led to the following kind of error messages (seen for instance when running a terminal package in Atom): bash: module: line 1: syntax error: unexpected end of file bash: error importing function definition for `BASH_FUNC_module' With this change `getEnvFromShell` now skips shell function definition to guarantee only environment variables are recorded and a sane `result` array is returned. Fixes atom#20389 Fixes atom#17369 Fixes atom#13451 Fixes blueimp/atom-open-terminal-here#27 Fixes blueimp/atom-open-terminal-here#18 Fixes bus-stop/Termination#101 Fixes bus-stop/terminus#24 Fixes platformio/platformio-atom-ide-terminal#120 Fixes platformio/platformio-atom-ide-terminal#293 Fixes AtomLinter/linter-pylint#243 Fixes AtomLinter/linter-flake8#643 Fixes AtomLinter/linter-flake8#165 Fixes AtomLinter/linter-flake8#422 Fixes AtomLinter/linter-puppet-lint#68 Fixes autocomplete-python/autocomplete-python#347
`getEnvFromShell` function calls `env` command through shell to get all defined environment variable. However `env` also returns the shell function defined with their whole code written on multiple lines. Such shell function definitions were not properly handled by `getEnvFromShell` which led to the following kind of error messages (seen for instance when running a terminal package in Atom): bash: module: line 1: syntax error: unexpected end of file bash: error importing function definition for `BASH_FUNC_module' With this change `getEnvFromShell` now skips shell function definition to guarantee only environment variables are recorded and a sane `result` array is returned. Fixes atom#20389 Fixes atom#17369 Fixes atom#13451 Fixes blueimp/atom-open-terminal-here#27 Fixes blueimp/atom-open-terminal-here#18 Fixes bus-stop/Termination#101 Fixes bus-stop/terminus#24 Fixes platformio/platformio-atom-ide-terminal#120 Fixes platformio/platformio-atom-ide-terminal#293 Fixes AtomLinter/linter-pylint#243 Fixes AtomLinter/linter-flake8#643 Fixes AtomLinter/linter-flake8#165 Fixes AtomLinter/linter-flake8#422 Fixes AtomLinter/linter-puppet-lint#68 Fixes autocomplete-python/autocomplete-python#347
Hello !
In lastest Atom I have got this lines in terminal:
What is this?
OS: Fedora 25
The text was updated successfully, but these errors were encountered: