console icon indicating copy to clipboard operation
console copied to clipboard

Allow running files and adding a Zig example

Open VarLad opened this issue 4 years ago • 4 comments
trafficstars

Issue - Redirecting of error doesn't work with Zig, giving this error Screenshot from 2021-06-22 19-29-43

VarLad avatar Jun 22 '21 14:06 VarLad

@franko Any way to get the redirection working?

VarLad avatar Jun 23 '21 07:06 VarLad

Users say it doesn't work in other languages as well

VarLad avatar Jun 23 '21 07:06 VarLad

I will be glad to help with this but I am confused. This is a PR that does something meaningful and at the same time you are rising an issue with redirecting standard error.

I will begin by first fixing the issue if I can. Could you please precise a little bit better the problem ? It is to be sure I am going to work in the right direction.

Just to add a little bit to the context: I am not the author of the console plugin, rxi is the author and I just made some adaptations for lite-xl. I don't use myself the console plugin but I will be glad to work on some improvements, just give please more details about the problem you encountered and what you want to accomplish.

franko avatar Jun 24 '21 20:06 franko

@franko Thanks for reaching out 81343656-49325a00-90ad-11ea-8647-ff39d8f1d730 As given here, I expect the the cursor to residirect/go to the line where the error occurs while running the code in console and I click on the error in the console Instead, I get the error from the image in the issue in my log and it doesn't go to the line where the error is occuring https://user-images.githubusercontent.com/51269425/122938334-4c130b80-d390-11eb-847c-5ec59a86b2b5.png

Note that I executed a file from Zig language. Everything works except for error redirection from console. I've included the scripts I used for Zig as part of PR.

VarLad avatar Jun 24 '21 23:06 VarLad