zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
51.1k stars 3.17k forks source link

Latest Zed update does not respect `settings.json` #15967

Closed didier closed 3 months ago

didier commented 3 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Zed is not respecting my settings file currently. This happened after updating, without any changes to the file itself.

Environment

Zed: v0.147.2 (Zed) OS: macOS 14.5.0 Memory: 32 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

https://github.com/user-attachments/assets/367fed2f-c1b9-457c-bfb9-b286f52f2e66

If applicable, attach your Zed.log file to this issue.

No response

bennetbo commented 3 months ago

My guess would be that there is an error in your settings somewhere. Would you mind to post the content of the settings.json file?

didier commented 3 months ago
{
    "language_models": {
        "anthropic": {}
    },
    "soft_wrap": "editor_width",
    "auto_install_extensions": {
        "enabled": true
    },
    "scrollbar": {
        "show": "system"
    },
    "calls": {
        "mute_on_join": true
    },
    "cursor_blink": false,
    "inline_completions": {
        "disabled_globs": ["**/*.md", "**/*.txt"]
    },
    "use_system_path_prompts": false,
    "theme": {
        "mode": "system",
        "dark": "Rosé Pine",
        "light": "Solarized Light"
    },
    "ui_font_size": 16,
    "ui_font_family": "SF Pro Text",
    "buffer_font_size": 18,
    "buffer_font_family": "IBM Plex Mono",
    "buffer_font_weight": 400,
    "buffer_line_height": {
        "custom": 1.69
    },
    "buffer_font_features": {
        "liga": true,
        "calt": true,
        "zero": true
    },
    "relative_line_numbers": true,
    "assistant": {
        "default_model": {
            "provider": "anthropic",
            "model": "claude-3-5-sonnet-20240620"
        },
        "version": "2",
        "dock": "right",
        "provider": null
    },
    "features": {
        "inline_completion_provider": "supermaven"
    },
    "tab_size": 4,
    "tab_bar": {
        "show": true,
        "show_nav_history_buttons": false
    },
    "indent_guides": {
        "enabled": true
    },
    "toolbar": {
        "breadcrumbs": true,
        "quick_actions": false,
        "title": true
    },
    "file_types": {
        "CSS": ["postcss", "pcss"],
        "JSON": [".prettierrc"]
    },
    "terminal": {
        "dock": "bottom",
        "button": false
    },
    "project_panel": {
        "button": false,
        "dock": "left"
    },
    "git": {
        "git_gutter": "hide"
    },
    "vim_mode": false
}

AFAIK, this is all valid JSON

bennetbo commented 3 months ago

Hmm the settings work for me, do you see any errors in the log file?

didier commented 3 months ago

Nope only a warning: 2024-08-08T09:58:42.97678Z [ERROR] no worktree found for diagnostics path "/Users/didier/.config/zed/settings.json"

mrnugget commented 3 months ago

Is it possible that your settings.json is a symlink?

didier commented 3 months ago

Nope... It just happened after updating, and restarting Zed doesn't seem to work either. I'll restart my computer and see if that fixes anything.

didier commented 3 months ago

That did the trick. I hate computers. Not sure what caused it. Thanks for chiming in team, sorry for wasting your time😅