che-che4z-lsp-for-cobol icon indicating copy to clipboard operation
che-che4z-lsp-for-cobol copied to clipboard

Feature/task provider for compile

Open ap891843 opened this issue 2 years ago • 10 comments

ap891843 avatar Jul 28 '22 16:07 ap891843

When testing with invalid APIML token, this is what the terminal looks like: image

VitGottwald avatar Jul 31 '22 15:07 VitGottwald

Nicely coloured output. Thank you! image

A few comments:

  • The jobname column is redundant. It is the same in all rows. Instead the green message Job completed. ... could say Job completed, return code: CC 0000
  • The first green line is not needed, please remove it
  • The columns of the table are not aligned (spool-id should be aligned to the right, others to the left)
  • Please, swap the
  • Instead of the column, please use
  • Please, use the following column order: Spool-id, DDname, Stepname, Procstep
  • SYSPRINT at ... should be changed to Listing stored at ... and come before the list of errors.

VitGottwald avatar Jul 31 '22 16:07 VitGottwald

After doing some more usability testing I believe that we should drop the "saveListing" and "listingLocation" configuration properties. Instead we should use vscode.ExtensionContext.storagePath folder to store the listings.

If the folder does not exist, we should create it on activation and create a listings subfolder to store the listings. If it exists we should clean (delete) the listings subfolder. The retrieved listings should then be stored in the listings subfolder a ${hostname}/${jobid}.txt files during a session. They will stay there to VScode reload (or extension de-activation followed by activation). For the deletion, please, use deleteFile vscode api. Unlike 'node' APIs it is guaranteed to work in all supported environements where vscode runs.

The extension context is provided to the extension by vscode as an argument on activate.

VitGottwald avatar Jul 31 '22 17:07 VitGottwald

Please, add listFiles: boolean task configuration property with default true. If false, the table of DDs would not be printed to the output.

VitGottwald avatar Aug 01 '22 06:08 VitGottwald

Nicely coloured output. Thank you! image

A few comments:

  • The jobname column is redundant. It is the same in all rows. Instead the green message Job completed. ... could say Job completed, return code: CC 0000
  • The first green line is not needed, please remove it
  • The columns of the table are not aligned (spool-id should be aligned to the right, others to the left)
  • Please, swap the
  • Instead of the column, please use
  • Please, use the following column order: Spool-id, DDname, Stepname, Procstep
  • SYSPRINT at ... should be changed to Listing stored at ... and come before the list of errors.

Updated as below image

ap891843 avatar Aug 01 '22 15:08 ap891843

When testing with invalid APIML token, this is what the terminal looks like: image

Updated, tested with other error image

ap891843 avatar Aug 01 '22 15:08 ap891843

After doing some more usability testing I believe that we should drop the "saveListing" and "listingLocation" configuration properties. Instead we should use vscode.ExtensionContext.storagePath folder to store the listings.

If the folder does not exist, we should create it on activation and create a listings subfolder to store the listings. If it exists we should clean (delete) the listings subfolder. The retrieved listings should then be stored in the listings subfolder a ${hostname}/${jobid}.txt files during a session. They will stay there to VScode reload (or extension de-activation followed by activation). For the deletion, please, use deleteFile vscode api. Unlike 'node' APIs it is guaranteed to work in all supported environements where vscode runs.

The extension context is provided to the extension by vscode as an argument on activate.

Hello Vit, I have a few doubts about this approach.

  1. Planned to use storageUri as storagePath is deprecated
  2. These attributes are read-only and can be undefined when we open a file (not a workspace or a folder). COBOL LS works for a single file as well. So, ideally, the compile should also work.

And would need some refactoring for this. I plan to do it in a separate PR.

ap891843 avatar Aug 02 '22 09:08 ap891843

ble of DDs would not

updated

ap891843 avatar Aug 02 '22 09:08 ap891843

What's up with this RP? Do you need help to finish it?

ishche avatar Oct 17 '23 09:10 ishche

What's up with this RP? Do you need help to finish it?

Yes, I would need some help here. I am waiting for @VitGottwald to define the acceptance criteria.

ap891843 avatar Oct 17 '23 14:10 ap891843