This has always been an issue for me, but I'm just...
# intellij
s
This has always been an issue for me, but I'm just finding out today that it might not be an issue for anyone else. Anytime I try to view kotlin source code (in this case kotlinx-serialization) I always just get "compiled code" stuff like this. Clicking the download sources button, attaching sources, etc, doesn't do anything. Does anyone else have this issue as well?
r
Is this in an environment with a proxy or custom SSL certificates (e.g. work laptop)? I have this issue all the time from my work laptop. I don't know if I've ever had it on my personal laptop.
s
it is a work laptop. I haven't tested from my personal. I'm not sure if there are custom ssl certs, and I have all proxies turned off.
have you ever resolved it from your work laptop?
r
Our environment has both a HTTP proxy that all outbound traffic is required to go through, and custom SSL certificates (from the proxy). To get IntelliJ working, I had to configure the proxy settings in Settings > Plugins > Http Proxy Settings, and import the custom certificates into IntelliJ's truststore.
But even with that sources only work ~90% of the time. If I had more time I'd try and figure out why...
s
alright. I'll try that out thanks!
oh really???
dang.
I'm really wondering if it's ever worked on my personal laptop either. I haven't really paid attention to it that much, because I thought it was just normal.
Why would it fail to work if I literally Attach Sources though?
r
It may just be a side-effect of the macOS development ecosystem. Every time homebrew upgrades a package, or the Jetbrains toolbox upgrades an application, it blows away any existing truststore and I have to re-import the certificates.
s
hm... haha how'd you know it was a mac I'm using?
r
Why would it fail to work if I literally Attach Sources though?
I have no idea. All I know is that there have been times where I've had the -sources.jar, clicked attach, and it still doesn't work.
s
I have no idea. All I know is that there have been times where I've had the -sources.jar, clicked attach, and it still doesn't work.
yeah that's exactly what is failing for me too...
r
hm... haha how'd you know it was a mac I'm using?
😉 (I was referring to my experience. I also happen to use a Mac.)
s
haha.
r
Anyway, I'm sure there's an existing issue about this in YouTrack. I'll see if I can find something. If not, might be worth reporting. https://youtrack.jetbrains.com/issues/IDEA
s
I had searched and all I could find was just "turn on download sources in the settings", which is obvious, and also not the issue.
r
s
I had seen that one, but didn't click in as I don't have any sort of failures in the build tab and I haven't checked the logs yet. I just always (for years now actually) thought it was just not finding any sources and never questioned it. But now I need it to debug something in kotlinx and so am blocked.
just tried switching to non-bundled maven with no luck, so seems like a different issue
don't see anything strange in the logs.