# Using VSCode and Julia Plugin, User Input Doesn't Seem To Work

**URL:** <https://discourse.julialang.org/t/using-vscode-and-julia-plugin-user-input-doesnt-seem-to-work/62919>\
**Category:** General Usage\
**Tags:** question, vscode\
**Created:** [June 14, 2021, 10:37pm UTC](https://discourse.julialang.org/t/using-vscode-and-julia-plugin-user-input-doesnt-seem-to-work/62919 "2021-06-14T22:37:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon60034542](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Post date:** [June 14, 2021, 10:37pm UTC](https://discourse.julialang.org/t/using-vscode-and-julia-plugin-user-input-doesnt-seem-to-work/62919/1 "2021-06-14T22:37:43Z")

</div>

I’m unable to properly accept user input from the terminal in VS Code.

1. I have a file called `asking-for-user-input.jl`, that has the following code:

```julia
function main()
  println("Enter your first name:")
  first_name = readline()
  println("Your first name is $first_name")
end

main()

```

1. I right click on the file and select `Julia:Execute File in REPL`.
2. It opens and prompts for input, but does this:

```julia
Enter your first name:
julia> Svetlana
Your first name is 
ERROR: UndefVarError: Svetlana not defined

```

It seems this has occurred [before](https://discourse.julialang.org/t/user-console-input-read-readline-input/15031) with Juno, is their anyway to fix this problem?

It doesn’t seem to have a problem accepting and working with numbers, just strings.

---

<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:** [June 15, 2021, 7:51am UTC](https://discourse.julialang.org/t/using-vscode-and-julia-plugin-user-input-doesnt-seem-to-work/62919/2 "2021-06-15T07:51:18Z")

</div>

It’s a known issue, but unlikely to be fixed soon. I’d recommend the usual workaround of executing `main` in the REPL directly.

---

<div class="post-metadata">

**Author:** ![anon60034542](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Post date:** [June 15, 2021, 12:09pm UTC](https://discourse.julialang.org/t/using-vscode-and-julia-plugin-user-input-doesnt-seem-to-work/62919/3 "2021-06-15T12:09:47Z")

</div>

> [@pfitzseb](#):
>
> It’s a known issue, but unlikely to be fixed soon.

Out of curiosity, why won’t it be fixed soon? Just not a priority?
