Post by rprinceton on Feb 24, 2022 18:59:11 GMT -5
Hello,
I am trying to develop an IDE with SPFLite at the center mainly because I do not like the glorified notepad IDE's that typically come with the language.
Simplified it will work as follows.
Get the source code up in SPFLite.
Issue an edit macro that will essentially go thru the compilation process.
The compilation process will direct the compilation output to a text file.
The compilation results will be displayed in SPFLite without ever leaving SPFLite.
I want to display the compilation output in another tab in SPFLite. Be aware that I can get the basic concept to work by starting up another instance of SPFLite from within the edit macro but it would be better to utilize the SPFLite instance that is already running.
I would have thought the way to do this is to simply issue the edit command i.e., SPF_Cmd("EDIT " + "CompileOutPut.txt") from within the edit macro. (It does work by entering the "EDIT" primary in the command area outside of the edit macro).
When coded in the edit macro it does nothing, not even display any kind of problem it encountered. I even pared it down to just the command "EDIT" which should have brought up the Open dialog.
I looked at the example named PB.macro. This kind of does what I want, but I do not see the need to have thinbasic read the compile output file when SPFLite can do it.
I have attached a snippet from the macro and a file named abc.txt which serves as an example of compile output.
Are all primary commands supported using SPF_CMD or are some not implemented, or have I not coded the EDIT primary command properly?
Sidenote: The "LOCATE" primary command does not seem to work either when issued from within an edit macro.
Please advise.
Thank you.
Regards,
RPrinceton