-
Notifications
You must be signed in to change notification settings - Fork 17
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
Automatic source dep. with a relative path for all files #345
Comments
Why dont you use the copybookdirs setting? |
Because there is one file source dependency for only one source file not for all files. And is not a copybook but a compiled resutl file by preprocessor. |
A source-dependancy is a copybook that is included via a comment. Referencing a listing file will bring in more items than is required and should be avoided, which may well break the structure program. Only include the items you need, and as rule of thumb source-dependencies and copybooks are interchangeable. |
In the source files the source dep. is not referenced by "COPY" statement, and if i add the directory in copybookdirs, it doesn't do nothing, so i'm using for every file the source-dependency comment and it works as well as possible. |
Relative paths are not portable as vscode uses urls under the covers, as it works in the browser. |
ok so if you cannot do anything i close this issue, but please resolve this in the last comment IS IMPORTANT for us: |
closed |
My source dependency files are always in the same scheme of path that change depending on the name and on the position of the file.
The path could be compose with the vscode variables in this way:
${relativeFileDirname}/CBL/${fileBasenameNoExtension}.CBL
(resolved is SL/E28/CBL/PROGRAM.CBL)
Is possible to set this path (with vscode vars) automatically for all of files that end for example with "*.DD" and the extension considers the resolved one (without vars but values)?
THANK YOU, sorry if i am disturbing you a lot.
The text was updated successfully, but these errors were encountered: