Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runner trying to use invalid 'clear' command on Windows #41

Open
TheDying0fLight opened this issue Dec 11, 2024 · 1 comment
Open

Runner trying to use invalid 'clear' command on Windows #41

TheDying0fLight opened this issue Dec 11, 2024 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@TheDying0fLight
Copy link

Effekt seems to always run clear before the function when using the Run button in Windows this does nothing except throwing an error because clear does not exist

image

@TheDying0fLight TheDying0fLight changed the title Effekt running 'clear' when running a main() via. "Run" button Effekt running 'clear' when running a main() function via. "Run" button Dec 11, 2024
@jiribenes
Copy link
Contributor

jiribenes commented Dec 11, 2024

Thanks for reporting, that's probably my oversight, sorry! 😅

On Windows, we should probably use the cls command instead:

terminal.sendText("clear");
terminal.sendText(`${effektExecutable.path} ${args.join(' ')}`);
terminal.show();

Perhaps we should also investigate using the VSCode action workbench.action.terminal.clear on the specific terminal (?)

@jiribenes jiribenes added bug Something isn't working good first issue Good for newcomers labels Dec 11, 2024
@jiribenes jiribenes changed the title Effekt running 'clear' when running a main() function via. "Run" button Runner trying to use invalid 'clear' command on Windows Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants