-
Notifications
You must be signed in to change notification settings - Fork 4.5k
copilot: Fix config dir logic to support Flatpak environments #32901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
6cc7a85
to
3d5755e
Compare
I don't know why the builds are skipped, otherwise I can't really build Zed locally. |
@vixalien builds are disabled by default someone from zed team needs to add run bundling tag to enable builds. |
3d5755e
to
12fa865
Compare
okie cool I'll test it when a build happens... |
Hey @vixalien in case you want to test it you can also try building this on local. Here is the flatpack build instructions: https://zed.dev/docs/development/linux#flatpak |
Hey, gonna start a build now so that people can test |
thanks !
…On Wed, 18 Jun 2025 at 22:24, Bennet Bo Fenner ***@***.***> wrote:
*bennetbo* left a comment (zed-industries/zed#32901)
<#32901 (comment)>
Hey, gonna start a build now so that people can test
—
Reply to this email directly, view it on GitHub
<#32901 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJB5FCOK2MJF4KKKPMYG5BL3EHDIPAVCNFSM6AAAAAB7REYOBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSOBVGU4TANZQGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Macos build failed on some kind of upload |
Just built a flatpak with the build artifact, and sadly it does not work:
|
Also, it's a bit sad that Zed's CI doesn't automatically generate a flatpak, since it just needs to repackage the build artefacts from x86 and arm. |
Update: it seems to work some of the time, and after a delay. See attached video. Screencast.From.2025-06-19.00-01-22.mp4 |
Hey @vixalien give it sometime as we are starting the lsp and then initialising and fetching the models using api it takes time. |
Okay there's a 30s~ delay. Maybe Zed can improve the UX a bit by showing a spinner somewhere |
It shouldn't be that big, I am guessing could be caused due to local build. Nice to know at least the issue is resolved. Also agree zed can provide a better feedback in terms of any of the provider still in init phase, which I will leave it for later. |
Switch to LocalAppData on Windows and remove Flatpak-specific logic. Now prefer XDG_CONFIG_HOME if set, otherwise fallback to ~/.config.
e57aa6f
to
9ea8d2f
Compare
Hey @bennetbo I have updated the logic a bit more and simplified it. I checked the lsp js code and looked how they are storing the config so that we can better align with their path resolution and hence updated the logic to match that. It should now handle all the platform gracefully. Below is the detail breakdown.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for investigating this 😄 Great work! Also thanks for testing to everyone involved
Closes #30784
In github copilot we were not handling the config path correctly for FLATPAK.
Release Notes: