coral-xyz / anchor

⚓ Solana Sealevel Framework
https://anchor-lang.com
Apache License 2.0
3.56k stars 1.32k forks source link

[idea] single command to print all system info for support reasons? #3105

Open mikemaccana opened 2 months ago

mikemaccana commented 2 months ago

I notice on StackOverflow we often ask people for a whole bunch of system info to try and reproduce.

Would it be worthwhile to have a command to dump all system info?

We could do this in a new param anchor --support or just add it to anchor --version

% anchor --version

anchor-cli 0.30.1
solana-cli 1.18.17
cargo 1.77.2
OS: macOS 14.5 23F79

Everything comes from blah --version, except OS info comes from either sw_vers or lsb_release -a depending on what exists. We could add the PATH or whatever else.

acheroncrypto commented 2 months ago

Would it be worthwhile to have a command to dump all system info?

Could be, but not sure how useful it would be compared to sharing a link about what you're looking for. It's very likely the person won't know about this command anyway, so you'll have to ask the person about running this command instead, which is an improvement I guess.

mikemaccana commented 2 months ago

I don't understand "sharing a link about what you're looking for".

It sounds like my description was unclear, so to restate:

Before

Can you please run anchor --version, solana --version, and cargo --version, also what OS and version are you using?

After

Please run anchor --version and paste the output here.


It's very likely the person won't know about this command anyway

I feel the same, that's why my inclination is to add it to anchor --version

acheroncrypto commented 2 months ago

I don't understand "sharing a link about what you're looking for".

It sounds like my description was unclear

It was pretty clear — the link comment was about sharing a link to a previous time you've asked someone about these versions, so that you don't have to repeat yourself each time.

Before

Can you please run anchor --version, solana --version, and cargo --version, also what OS and version are you using?

After

Please run anchor --version and paste the output here.

It's very likely the person won't know about this command anyway

I feel the same, that's why my inclination is to add it to anchor --version

I'm not against it, just stating that this still results in asking the user about these versions in a slightly different way.

mikemaccana commented 1 month ago

Oh I understand now, "Before" right now is the person trying to help saying "go https://here and run these commands and send me the output". Thanks!

Got it - some value, but not a huge amount. Will do it if I get time.