Open ghost opened 1 year ago
This will be tricky, but I have some idea.
What about to crate for each dll an extra ctrl_
Hello there, Was there any development on this issue? I am interested in this feature. Cheers
Hello there, Was there any development on this issue? I am interested in this feature. Cheers
I try it for very long time. My first try was to adap the cpp code. Original code works with incluide (cpp style) and I got it to handle the parser also with #uses. But it is extrem slowly. In many cyses you will load libs like aes.ctl (with over then 20K lines). This is bi overload. Therefore I stop the development.
My last idea is very easy and I think it will be enough for most usage of ctrlppcheck. You can load every .ctl library and convert it into xml file. This contains many tags. My idea is to convert this xml file into .xml library. In that case you need to modify the cpp code, that it will load .xml library instead #uses. This kind of converter might be used also by ETM to provide all the .xml lib files. This will works also for .ctc file. The end user can not see the content of .ctc file. But the ctrlppcheck might read the .xml library to know, how to handle with the functions located in .ctc
So in Short. We will provide for every .ctl one .xml library file.
Thanks for the answer. So, you are proposing that I do this conversion myself, or is this something you are planning to work on?
Thanks for the answer. So, you are proposing that I do this conversion myself, or is this something you are planning to work on?
or I use somethink like that in my private repo ;-) I did few modification in the vscode plugin, and I make the converting in the typescript. TThe question is, if we want do it in this way or modify the cpp code.
Isn't it easier to use the real WinCC OA CTRL parser/interpreter as Language Server Protocol (LSP) Server for VS Code?
Isn't it easier to use the real WinCC OA CTRL parser/interpreter as Language Server Protocol (LSP) Server for VS Code?
no, stop, nope. (just kidding) but this is other one discussion. As I say, I did it in my private repo and that was the faster solution without modification in the product. But yes for longer time, it will be better to make some LSP to allow also debugging, testing ... . I know, there was few discussions, but I have no idea what is the current status qou.
but this tool hase also few extras. it can be used without WinCC OA, and you can provide static analysis on your build servers. Results are supported by CI / CD tools, also in the sonarqube. Ok let me drop my power cable and try to make the "conertor" in the ctrl code ;-)
Is your feature request related to a problem? Please describe. CTRL statement #uses "CtrlLibOrExtension" is not recognized. e.g. including a standard Ctrl library like
results in:
Describe the solution you'd like
uses should be correctly resolved for all standard and project specific Ctrl libraries.
Additional context Also mind optional file extension and valid ctl-files consisting only of #uses declarations.