Live data from Hacker News

Part of my code makes Copilot crash

github.com

91–100 of 411 posts

Re: Part of my code makes Copilot crash

#92
post #71

Yep, I noticed this last year when they still stored the list client-side and had great fun reverse engineering it: https://twitter.com/moyix/status/1433254293352730628

Interesting, so it might not be the specific token "gender" but rather blocked words ("man" or "woman") that appear in suggestions will suppress Copilot. And presumably another token that like "communist" might do the same...

It suppresses output for bad words in both the prompt (your code) and the suggestions.

Re: Part of my code makes Copilot crash

#94

I belong to a local Atlanta Slack channel - tech404 - that for the longest had an official bot that would always respond with the waving hand emoji (HN doesn’t support emojis) if you ever said the word “guys”. Even in private channels.

The funniest one of these was the python IRC channel, which had (has?) a policy of not allowing the word "lol".

I'm pretty sure a bot would swoop in and say something like "NO LOL" which ironically only encourage more LOL.

Re: Part of my code makes Copilot crash

#95
post #40

Earlier quoted context omitted.

I added "gender" (an IANA registered JWT claim) to my JWT payload schema and found Copilot will not provide any suggestions after that. Not on the same line, nor in the rest of the file. After removing the word gender entirely, it works again. https://www.iana.org/assignments/jwt/jwt.xhtml

-

I'm using typebox to validate my JWT payloads in an app I'm working on. Someone showed me this thread while I was working, so I gave it a shot:

  export const CLAIM_PAYLOAD_SCHEMA = Type.Object({
    "iss": Type.Literal("my-app"),
    "exp": Type.Integer(),
    "sub": Type.String(),
    "name": Type.String(),
    "priv": Type.Integer({minimum:0, maximum: Privileges.All}),
    "gender": Type. // No completion is available.
Additionally, I get "No completion is available." from copilot.el on every line after that one, but completing on lines before it does work. When removing "gender", it works again, e.g. suggesting `"iat": Type.Integer()` for that line. I don't actually plan on using "gender" in my tokens, but it is a bit frustrating that an arbitrary word can opaquely disable Copilot for the rest of the file.

Re: Part of my code makes Copilot crash

#96
post #81

Besides the absurdity of the code crashing because of the word "gender". My problem and curiosity with all of this is... "What was going on in the head of the person writing the parser?" I mean, were they thinking that if someone is writing code, let's say, for a gender dropdown and it was only ["male", "female"], it would try to suggest to us to add 26 more genders instead (and worse, suggest a list of genders to ad…

Regardless of what Copilot suggested for "gender", it would've offended someone , and I think that's what Microsoft wants to avoid. Not even woke so much as it is trying to avoid potential controversies.

You would think they would just avoid adjusting this, right?

Re: Part of my code makes Copilot crash

#97

Content filters on ML feel so silly. I assume the goal is to avoid bad press? Because the... "attack" would be someone generating offensive material, which they could just write themselves, not to mention I have serious doubts that any filter is going to be a serious barrier. For images/ video I can see merit, ex: using that nudity inference project on images of children, but text seems particularly pointless.

The point is because sometimes even a perfectly reasonable inference from an ML model would be considered a big mistake due to societal considerations that are unknown to the model. For example, a couple years ago, there was a big hubbub over a Google Image labeler that labeled a black man and woman as "gorillas". A mistake for sure, but the headlines about the algorithm being "racist" were wrong. The algorithm was c…

I think I agree with this to a certain extend. Sometimes AI gets attacked in unfair ways, but also while AI is merely making inferences based on its training data, the fact its training data is racist maters. It maters because it has real impacts even if small. Just like the decision by film manufacturers to optimize for accurate colors for white skin, the people who probably bought most of their film, the people who probably business considerations meant they should optimize for.

Re: Part of my code makes Copilot crash

#98
post #40

Earlier quoted context omitted.

I added "gender" (an IANA registered JWT claim) to my JWT payload schema and found Copilot will not provide any suggestions after that. Not on the same line, nor in the rest of the file. After removing the word gender entirely, it works again. https://www.iana.org/assignments/jwt/jwt.xhtml

-

No post body was provided.

Re: Part of my code makes Copilot crash

#99
post #21

Earlier quoted context omitted.

Much more likely: the upvotes are because many people have frustration at this type of thing, and limited places to channel their frustration, so when they see a post like this, they upvote it to express their frustration. Or maybe that’s just me..

What type of thing? Asking for genuine curiosity.

You can google "controversy" around Spanish word for black while trying to somehow imagine you are reading about it from culture/country which is not as much influenced by US culture as other countries with good English proficiency or even completely unaware of it while being taught from your childhood to treat everyone as an individual and actually truly believing it. Then while reading about it you might sort of get feel for "that type of thing".

For some time I collected sources to things as the linked github issue but I had to stop as it made me unhappy now I try to ignore it and hope that I am no longer there when that type of thing hits my city.

Re: Part of my code makes Copilot crash

#100
post #40

Earlier quoted context omitted.

I added "gender" (an IANA registered JWT claim) to my JWT payload schema and found Copilot will not provide any suggestions after that. Not on the same line, nor in the rest of the file. After removing the word gender entirely, it works again. https://www.iana.org/assignments/jwt/jwt.xhtml

-

Its a reproductible, if you don't believe it, try it out yourself. Report back with your findings, logs, videos or whatever.
Post reply on HN