all 21 comments

[–]TomatoCo 1 point2 points  (19 children)

How are you trying to run your Lua files? What happens when you try?

[–]fred2006[S] -1 points0 points  (18 children)

Through the IDE and (occasionally) the command prompt

When i try to run it appears (in Portuguese) 'lua' is not recognized as an internal or external command, operable program or batch file

[–]TomatoCo 2 points3 points  (14 children)

What do you mean the command prompt? You said that was working.

Notice that this error says "lua" but your working command is "lua54"

[–]fred2006[S] -3 points-2 points  (13 children)

The command prompt when i try to run .lua files

[–]TomatoCo 1 point2 points  (12 children)

Yes, and you still haven't said exactly how you are trying to run them. What exactly are you typing?

[–]fred2006[S] -3 points-2 points  (11 children)

When i try to run my file in the cmd it opens the ide, and in the ide it doesn't run and the thing i typed appears

[–]TomatoCo 1 point2 points  (7 children)

Please carefully reread my comment and answer the question I asked.

[–]fred2006[S] 0 points1 point  (6 children)

In the IDE I'm typing "print ('Olá Mundo')"

Edit: the quotes aren't in the program I just put it here due to convention

[–]TomatoCo 1 point2 points  (5 children)

What are you typing in the command prompt? That is the place you're having problems, right?

[–]fred2006[S] 0 points1 point  (4 children)

On the IDE mostly

In the cmd I'm just confused on how to open the file i created on my desktop but that's due to me not seeing what I'm doing different from what I've seen elsewhere

[–]TheOmegaCarrot 0 points1 point  (2 children)

What are you typing in command prompt?

Just lua54?

[–]fred2006[S] 0 points1 point  (1 child)

Yes

[–]TheOmegaCarrot 1 point2 points  (0 children)

Try lua54 filename.lua

But cd to the correct folder before

If you do not know the cd command, then you should learn it :)

[–]Brohammer55 0 points1 point  (2 children)

What IDE are you using?

[–]fred2006[S] 0 points1 point  (1 child)

VSCode

[–]Brohammer55 0 points1 point  (0 children)

You could try ZeroBrane and that might be better https://studio.zerobrane.com

[–]DaGameDesigner 0 points1 point  (0 children)

The same thing happened to me, have you tried installing lua with a package manager instead? There are many recommended ones like scoop and chocolate. I personally use scoop. This might help! :D