# Julia displays error messages and doesn't display underscores when launched from Juno

**URL:** <https://discourse.julialang.org/t/julia-displays-error-messages-and-doesnt-display-underscores-when-launched-from-juno/13449>\
**Category:** Juno\
**Created:** [August 14, 2018, 4:26pm UTC](https://discourse.julialang.org/t/julia-displays-error-messages-and-doesnt-display-underscores-when-launched-from-juno/13449 "2018-08-14T16:26:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaen](https://avatars.discourse-cdn.com/v4/letter/z/f04885/32.png) [@zaen](https://discourse.julialang.org/u/zaen)\
**Post date:** [August 14, 2018, 4:26pm UTC](https://discourse.julialang.org/t/julia-displays-error-messages-and-doesnt-display-underscores-when-launched-from-juno/13449/1 "2018-08-14T16:26:13Z")

</div>

When I start Julia from Juno in Atom, I get the following error message:

```
sh: module: line 1: syntax error: unexpected end of file
sh: error importing function definition for `module'
sh: switchml: line 1: syntax error: unexpected end of file
sh: error importing function definition for `switchml'
Starting Julia...
INFO: Loading HttpServer methods...
               _
   _ _ _(_)_ | A fresh approach to technical computing
  (_) | (_) (_) | Documentation: https://docs.julialang.org
   _ _ _| |_ __ _ | Type "?help" for help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 0.6.3 (2018-05-28 20:20 UTC)
 _/ |\ __'_|_|_|\__'_| |
|__/ | x86_64-redhat-linux

WARNING: Atom.jl: unrecognised message connected.

```

Interestingly, the underscores are still there (as evidenced by the pasted message above) and they still matter (var\_1 is distinct from var 1 even though both display as “var 1”), but just aren’t displayed. Julia seems functional, but I would prefer to correct whatever’s causing the error messages at the beginning.

The only file named “switchml” I can find on my system is in /usr/share/Modules/init/ksh-functions/switchml. I don’t get these errors when I launch Julia from Konsole.

This is on Fedora 28, KDE spin. Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![zaen](https://avatars.discourse-cdn.com/v4/letter/z/f04885/32.png) [@zaen](https://discourse.julialang.org/u/zaen)\
**Post date:** [August 15, 2018, 5:44pm UTC](https://discourse.julialang.org/t/julia-displays-error-messages-and-doesnt-display-underscores-when-launched-from-juno/13449/2 "2018-08-15T17:44:22Z")

</div>

Update: I downloaded and installed Julia, Atom, and Juno on another computer running Fedora 28 KDE. With a fresh install, both problems (the error messages and the missing underscores) still persist.

I also downloaded and compiled the source for Julia 1.0.0. Using Julia 1, an error message appeared after downloading and compiling all packages on the first run: `WARNING: could not import Base.endof into StringDistances`

After stopping and restarting Julia, I don’t get any error messages. Underscores still aren’t displayed.

Additionally, I downloaded the source for Atom and ran the bootstrap script, then started it in dev mode. The bootstrapped version of Atom still gives the “Atom.jl: unrecognised message connected.” warning each time I start Julia 0.6.3, but there are no shell error messages like there are with the version installed via rpm.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [August 15, 2018, 7:19pm UTC](https://discourse.julialang.org/t/julia-displays-error-messages-and-doesnt-display-underscores-when-launched-from-juno/13449/3 "2018-08-15T19:19:53Z")

</div>

The

```julia
sh: module: line 1: syntax error: unexpected end of file
sh: error importing function definition for `module'
sh: switchml: line 1: syntax error: unexpected end of file
sh: error importing function definition for `switchml'

```

error seems similar to this:

> <https://github.com/AtomLinter/linter-puppet-lint/issues/68>
>
> Since I updated linter-puppet-lint to 0.6.2, I am getting this nasty error:
> 
> \`\`\`…
> Error: /usr/bin/bash: module: line 1: syntax error: unexpected end of file /usr/bin/bash: error importing function definition for BASH\_FUNC\_module' /usr/bin/bash: scl: line 1: syntax error: unexpected end of file /usr/bin/bash: error importing function definition for BASH\_FUNC\_scl'
> Error: /usr/bin/bash: module: line 1: syntax error: unexpected end of file
> /usr/bin/bash: error importing function definition for \`BASH\_FUNC\_module'
> /usr/bin/bash: scl: line 1: syntax error: unexpected end of file
> /usr/bin/bash: error importing function definition for \`BASH\_FUNC\_scl'
> at ChildProcess.\<anonymous\> (/home/johny/.atom/packages/linter-puppet-lint/node\_modules/atom-linter/node\_modules/sb-exec/lib/index.js:36:20)
> at emitTwo (events.js:87:13)
> at ChildProcess.emit (events.js:172:7)
> at maybeClose (internal/child\_process.js:818:16)
> at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:211:5)
> \`\`\`
> 
> I thought, it was caused by Atom editor update, so I tried at least six different versions, which didn't help. So I thought it's caused by Linter plugin itself, as I was getting same error also for linter-erb, but also to no vain. Than I tried downgrading linter-puppet-lint and with 0.6.1 error went away and everything works.
> 
> I am running Atom on Linux Fedora with default shell set to ZSH.

which can be resolved be removing `scl-utils`. You might want to try that.

* * *

`WARNING: could not import Base.endof into StringDistances` and `WARNING: Atom.jl: unrecognised message connected.` are harmless and can be ignored (and will be fixed with the next release of those packages).

* * *

> [@zaen](#):
>
> Interestingly, the underscores are still there (as evidenced by the pasted message above) and they still matter (var\_1 is distinct from var 1 even though both display as “var 1”), but just aren’t displayed.

I’m pretty sure this error is unrelated to the ones above. Can you go to `Settings -> Editor -> Font Family` and a) tell me what it is set to and b) set it to some other font you have installed?

---

<div class="post-metadata">

**Author:** ![zaen](https://avatars.discourse-cdn.com/v4/letter/z/f04885/32.png) [@zaen](https://discourse.julialang.org/u/zaen)\
**Post date:** [August 15, 2018, 8:01pm UTC](https://discourse.julialang.org/t/julia-displays-error-messages-and-doesnt-display-underscores-when-launched-from-juno/13449/4 "2018-08-15T20:01:18Z")

</div>

I don’t have `scl-utils` installed, so I can’t try removing it, unfortunately.

The editor font family is set to `Default: Menlo, Consolas, DejaVu Sans Mono, monospace`

I tried editing it to use Liberation Sans. Although I have the font installed, the editor will only display Liberation for some reason. Still, underscores are correctly displayed.

Underscores are also correctly displayed for Menlo, Consolas, DejaVu, DejaVu Sans, and monospace. Only when DejaVu Sans Mono is enabled do the underscores disappear.

I tested DejaVu Sans Mono in LibreOffice Writer and Konsole. Both display underscores normally. I even started Julia in Konsole and the ASCII logo is displayed with all underscores intact, no matter what style or font size I select. The issue seems to be with either Atom or Juno.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [August 16, 2018, 7:07am UTC](https://discourse.julialang.org/t/julia-displays-error-messages-and-doesnt-display-underscores-when-launched-from-juno/13449/5 "2018-08-16T07:07:26Z")

</div>

Alright, I’m afraid you’ll have to use another font for now. This is an upstream issue I can’t really do much about ([same thing happens in VSCode too](https://github.com/Microsoft/vscode/issues/35901)):  
[https://github.com/xtermjs/xterm.js/issues/1138](https://github.com/xtermjs/xterm.js/issues/1138)

I still suspect the `sh: error importing function ...` error happens because there’s something weird about your system, but am not sure what it could be.
