Open LyesSaadi opened 3 years ago
I changed the code when testing and forgot to change it back my bad Line 64 should be like this var cfgPath = Path.Combine(appDirectory, "cfg.dot");
If you use the Ncodi.Cli to execute some .ncodi file you will find a cfg.dot generated there it contains a graph visualization of how the code was ran. Simply open it in a text editor copy the data in it and paste it in a graphviz renderer like this (make sure the engine is set to dot) https://dreampuf.github.io/GraphvizOnline/ I used this mainly for debugging but it's cool to see :)
Hello again!
Because it is using Windows-exclusive code, the compiler is unable to compile a program.
Here is the stack trace:
I do not have any experience in C#, but looking at the stack trace, the issue is obviously here: https://github.com/azizamari/Ncodi/blob/47bca33fa426d5d5fbcb980b84385e6140c7c293/src/Ncodi/CodeAnalysis/Compilation.cs#L63-L70
Looking at it, I wouldn't be surprised if it also causes issues in Windows systems, since it is looking for a configuration file in a hard-coded path.
NOTE: I used compile here, but I have no idea if it's doing any compilation or not TBH since I wasn't able to execute it yet :P !