And as for your specific question: typechecked code doesn’t get to production with a type error; it won’t compile. There’s a common phrase, “left-shifting errors”. It means catching bugs as early in the development cycle as possible. In terms of things like developer time (and patience), it’s far more cost-effective to do so.
- 0 Posts
- 11 Comments
I worked on OpenStack back in the day: millions of lines of untyped Python.
Let’s say you’ve got an X509 certificate. You know you can probably pull the subject out of it - how? Were I using Java (for instance), the types would guide my IDE and make the whole thing discoverable. The prevalent wisdom at the time was that the repl was your friend. “Simply” instantiate an object in the repl then poke at it a bit.
And it’s not just that kind of usability barrier. “Where is this used?” is a fantastic IDE tool for rapid code comprehension. It’s essentially impossible to answer for a large Python codebase.
Don’t get me wrong: python is still a great go-to tool for glue and handy cli tools. For large software projects, the absence of type enforcement is a major impediment to navigation, comprehension and speed of iteration.
gedhrel@lemmy.worldto Linux@lemmy.ml•why can't I connect to my ssh server UNLESS I enter eval "$(ssh-agent -s)" first?1·1 year agoMinimise your windows one at a time and check that the gnome keyring hasn’t popped up a dialog box sonewhere behind everything else that’s asking you if it’s okay to proceed.
gedhrel@lemmy.worldto Linux@lemmy.ml•why can't I connect to my ssh server UNLESS I enter eval "$(ssh-agent -s)" first?4·1 year agoIt’s the gnome key ring ssh agent.
It’s possible that this has popped up a window asking gor permission / a passphrase / something and you’re not seeing that.
gedhrel@lemmy.worldto Linux@lemmy.ml•why can't I connect to my ssh server UNLESS I enter eval "$(ssh-agent -s)" first?2·1 year agoThat’s only part of the handshake. It’d require agent input around that point.
gedhrel@lemmy.worldto Linux@lemmy.ml•why can't I connect to my ssh server UNLESS I enter eval "$(ssh-agent -s)" first?1·1 year agoIs this problem a recurring one after a reboot?
If it is it warrants more effort.
If not and you’re happy with rhe lack of closure, you can potentially fix this: kill the old agent (watch out to see if it respawns; if it does and that works, fine). If it doesn’t, you can (a) remove the socket file (b) launch ssh-agent with the righr flag (
-a $SSH_AGENT_SOCK
iirc) to listen at the same place, then future terminal sessions that inherit the env var will still look in the right place. Unsatisfactory but it’ll get you going again.
gedhrel@lemmy.worldto Linux@lemmy.ml•why can't I connect to my ssh server UNLESS I enter eval "$(ssh-agent -s)" first?1·1 year agoOkay, that agent process is running but it looks wedged: multiple connections to the socket seem to be opened, probably your other attempts to use ssh.
The ssh-add output looks like it’s responding a bit, however.
I’d use your package manager to work out what owns it and go looking for open bugs in the tool.
(Getting a trace of that process itself would be handy, while you’re trying again. There may be a clue in its behaviour.)
The server reaponse seems like the handshake process is close to completing. It’s not immediately clear what’s up there I’m afraid.
gedhrel@lemmy.worldto Linux@lemmy.ml•why can't I connect to my ssh server UNLESS I enter eval "$(ssh-agent -s)" first?6·1 year agoPlease don’t ignore the advice about SSH_AGENT_SOCK. It’ll tell yoy what’s going on (but not why).
gedhrel@lemmy.worldto Linux@lemmy.ml•why can't I connect to my ssh server UNLESS I enter eval "$(ssh-agent -s)" first?81·1 year agoWithout the ssh-agent invocation:
- what does
ssh-add -L
show? - what is the original SSH_AUTH_SOCK value?
- what is listening to that? (Use
lsof
)
This kind of stuff often happens because there’s a ton of terrible advice online about managing ssh-agent - make sure there’s none if that baked into your shellrc.
- what does
I’m not quite sure why you fetishise a bit-for-bit over semantic equivalence. Doesn’t it turn “it works on my machine” into "it works on my machine as long as it has this sha: … "?