Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

Leikr not reading program folder dynamically #6

Closed
pixelbath opened this issue Nov 6, 2019 · 4 comments
Closed

Leikr not reading program folder dynamically #6

pixelbath opened this issue Nov 6, 2019 · 4 comments

Comments

@pixelbath
Copy link
Contributor

If I say load ProgramName in Leikr, and that program was created while Leikr is running, that program is not usable until I restart Leikr and I get the error message "Program [ProgramName] does not exist in Programs directory"

Conversely, I do not need to load a program to have it updated after editing; I can simply exit the program and call run over and over to see changes. The program does not seem to be held in memory separate from disk.

@Torbuntu
Copy link
Owner

Torbuntu commented Nov 6, 2019

Running LS in the terminal will refresh the Program Directory listing. So a restart is not required. Once a program is loaded, it just loads the pointer to execute. Actually running the program loads the most current of everything.

@pixelbath
Copy link
Contributor Author

What happens when I'm shown "Loaded program ProgramName" ? Does that mean it freshly reloaded the program, or does that happen again on run?

@Torbuntu
Copy link
Owner

Torbuntu commented Nov 6, 2019

That means it set the pointer to that program, so when you type "run" with no extra params itll run that program. So in reality, load is kind of stupid and pointless in this sense because one could just always use run [program]

@Torbuntu
Copy link
Owner

Torbuntu commented Nov 6, 2019

Removed the useless "load" command and run now properly checks for if a program exists or not.

@Torbuntu Torbuntu closed this as completed Nov 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants