Replies: 4 comments 2 replies
|
Thanks for asking! There is a number of possible workarounds:
|
|
Thanks! The weird thing is that I have had this setup for some time and the error just came up today in vscode. Starting vscode from cli is not a viable solutions for me, but I am running an sbt on the side. I tried something like point 2 there in and I think it works if GPG has cached the passphrase. I experimented with If I try that script without having a pretty fresh call already to pass on the side I get: Anyways, I cleared all my metals customizations in vscode and killed all dangling bloop processes, made sure I had a running sbt on the side and then everything started fine the next time I restarted the vscode workspace. I guess I had made a bloopInstall on this side sbt then so that would be your third suggestion? This was all triggered using "metals: import build". Now I can do this over and over again without any metals settings in vscode without it doing that resolution within vscode again. But am I understanding it right that if I do bloopInstall on the side, the metals start from within vscode wouldn't trigger that any more? That's definitely good enough for me. Just not sure why this happened over and over today while having an up-to-date sbt on the side… |
|
@hedefalk Smth like: githubTokenSource := TokenSource.Environment("GITHUB_TOKEN") || TokenSource.GitConfig("$path_to_local_config") |
|
Follow-up question: I'm really fine with option 3, using bloopInstall on my side sbt. I'm however wondering if I'm using the intended workflow when I need to sbt reload. So say I do branch switch and need to reload my build definition. I then get a pop-up within vscode that the build definition changed. Should I ignore this and instead do |
Uh oh!
There was an error while loading. Please reload this page.
I'm using a private github repo and need token on env to resolve:
I typically just do:
in my build startup. However, I start vscode as a macos app, not inheriting any env from my shell's and therefore I don't have those variables. What's the best way to resolve this?
All reactions