feat: Display warning when codeql.cmd is used#303
Conversation
If the user tries to open a log file that is too large for vscode's extension mechanism to handle, reveal the file in the finder/explorer and let the user open in an external program.
The old launcher has been deprecated and codeql.exe is recommended. Fixes github#287.
0bf479e to
7ce3dc2
Compare
|
@github/product-docs-dsp does this need docs? |
|
Sorry, a late observation that I've only just now connected the dots for: For customers who need to upload databases to LGTM Enterprise, we recommend they stay with release 2.0.1 of the CLI in order to have compatible extractors. It doesn't have |
|
Right...they will get a warning, which should be ignored. If these users use the extension-managed CLI, would that be compatible with databases downloaded from LGTM built with an old extractor? I could update the warning message to explicitly say "Don't update if you are using LGTM enterprise", but that's not a great experience. |
Yes, old and new CLI are basically equivalent once a database has been created. Databases from old extractors need to be upgraded before they can be queried with the bleeding edge of Semmle/ql, but all CLI version should be able to do that equally well.
I don't have strong opinions about what the outcome should be here -- just pointing out that there's a distinct use case that we ought to think explicitly about (even if we end up explicitly deciding to do nothing). A possibility would be to put a notice into the release notes for the extension stating that if you're in such and such situation you need to (and have our blessing to) ignore that warning. |
|
@sj do you have any thoughts on this? I'm not sure how confusing this will be for our enterprise customers. |
|
I'm honestly a little bit confused myself about this. Why did we switch to an |
The main rationale, as I recall, was that it turned out to be difficult-to-impossible for the The directly affected users would be customers who I haven't followed along closely enough to be able to explain why it is desirable to display the warnings, though. Hmm, @aeisenberg, would it be feasible to only display the warning after checking that there is in fact an |
|
I think that all sounds reasonable. It shouldn't be a difficult change. If someone is pointing directly to an external instance of the cli, there's likely a reason for that and they won't want to upgrade. My understanding for the warning is that we want to give users ample warning to switch to the |
The old launcher has been deprecated and codeql.exe is
recommended.
Fixes #287.