Hacker News new | ask | show | jobs
by _zllx 1410 days ago
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

1 comments

-
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.
They're giving you a method of repeatable steps for you, yourself, to perform to see if the issue is encountered. That is more than passing a smell test.... that passes for at the minimum of a valid bug report.
Which part of the smell test does this not pass exactly?

They just described almost identical behaviour but with an isolated test case. Yeah there’s no video or whatever but it does support the original diagnosis.

Its a reproductible, if you don't believe it, try it out yourself. Report back with your findings, logs, videos or whatever.
"Sorry that doesn't pass the smell test"

Then you do it and report back when he's wrong.

Go check it yourself if you want proof that badly
Oh look I found that person I always argue with on the internet that can't admit when they're wrong.
bro they literally posted steps to reproduce that would be fine on basically any issue tracker
Are you being intentionally obtuse? You were told step by step if you disbelieve run the test independently and verify...