zed/crates
Caleb Heydon a47759fd03
Add initial FreeBSD support (#20480)
This PR adds initial support for FreeBSD
(https://github.com/zed-industries/zed/issues/15309). While there is
still work left to be done, it seems to be usable. As discussed by
@syobocat (https://github.com/zed-industries/zed/discussions/10247), the
changes were just adding ```target_os = "freebsd"``` to wherever it
checks if the OS is Linux.


![image](https://github.com/user-attachments/assets/80ea5b29-047f-4cbd-8263-42e5fa6c94b7)

Needs to be build with ```RUSTFLAGS="-C link-dead-code"```

Known Issues:
- There's an issue in ```crates/project/src/environment.rs``` where a
command fails because ```/bin/sh``` on FreeBSD doesn't support the
```-l``` option.

![image](https://github.com/user-attachments/assets/c3c38633-160f-4f47-8840-e3da67f6ebc8)
- The file/folder choosers provided by the ```ashpd``` crate don't work
on FreeBSD (at least with KDE). This isn't that bad since a fallback
dialog is used.

![image](https://github.com/user-attachments/assets/29373006-1eb9-4ed0-bd52-2d0047fab418)
 - Moving to trash won't work.
- Numerous tests fail (when running on FreeBSD). While I haven't looked
into this much, it appears that the corresponding features seem to work
fine.

Release Notes:

- Added initial support for FreeBSD
2024-11-11 18:39:05 +01:00
..
activity_indicator language servers: Fix wrong language server name (#20428) 2024-11-11 10:18:38 +01:00
anthropic
assets
assistant Refactor Spacing into DynamicSpacing using proc macro (#20504) 2024-11-11 11:08:55 -05:00
assistant_slash_command Fix regression in producing sections when converting SlashCommandOutput to event stream (#20404) 2024-11-08 09:29:14 +01:00
assistant_tool
audio
auto_update Rebuild SSH installation (#20220) 2024-11-05 13:37:54 -07:00
breadcrumbs
call
channel
cli Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
client Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
clock
collab language servers: Fix wrong language server name (#20428) 2024-11-11 10:18:38 +01:00
collab_ui
collections
command_palette
command_palette_hooks
context_servers Add support for context server extensions (#20250) 2024-11-08 16:39:21 -05:00
copilot language servers: Fix wrong language server name (#20428) 2024-11-11 10:18:38 +01:00
db
dev_server_projects/src
diagnostics
docs_preprocessor
editor Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
evals
extension Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
extension_api Add support for context server extensions (#20250) 2024-11-08 16:39:21 -05:00
extension_cli
extension_host language servers: Fix wrong language server name (#20428) 2024-11-11 10:18:38 +01:00
extensions_ui language servers: Fix wrong language server name (#20428) 2024-11-11 10:18:38 +01:00
feature_flags
feedback ci: Update issue templates. Rename defect to bug and improve log formatting (#20246) 2024-11-05 12:07:17 -05:00
file_finder
file_icons
fs Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
fsevent
fuzzy
git git: Add support for opening git worktrees (#20164) 2024-11-06 09:43:39 +01:00
git_hosting_providers
go_to_line
google_ai
gpui Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
gpui_macros
html_to_markdown
http_client
image_viewer Enable reload of images in image viewer (#20374) 2024-11-10 11:37:02 +01:00
indexed_docs Extension refactor (#20305) 2024-11-06 10:06:25 -07:00
inline_completion_button
install_cli
journal
language Add setting to disable inline completions in language scopes (#20508) 2024-11-11 18:09:05 +01:00
language_model assistant: Show only configured models in the model picker (#20392) 2024-11-08 10:08:59 -03:00
language_selector python: Fix toolchains not getting picked up after workspace deserialization (#20488) 2024-11-11 14:35:01 +01:00
language_tools language server logs: Fix missing menu entries when using remoting (#20495) 2024-11-11 11:26:00 +01:00
languages tailwind: Allow configuring the rootFontSize (#20500) 2024-11-11 17:13:00 +01:00
live_kit_client
live_kit_server
lsp language servers: Fix wrong language server name (#20428) 2024-11-11 10:18:38 +01:00
markdown Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
markdown_preview
media
menu
multi_buffer Fix a test flake involving zeroed out group_intervals (#20328) 2024-11-07 09:17:43 -07:00
node_runtime
notifications
ollama
open_ai
outline
outline_panel Refactor Spacing into DynamicSpacing using proc macro (#20504) 2024-11-11 11:08:55 -05:00
paths Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
picker Prefer revealing items in the middle of the list for outline and project panels (#20349) 2024-11-07 14:36:29 +02:00
prettier language servers: Fix wrong language server name (#20428) 2024-11-11 10:18:38 +01:00
project language servers: Fix wrong language server name (#20428) 2024-11-11 10:18:38 +01:00
project_panel project panel: Stop flickering border when preview tabs disabled (#20417) 2024-11-08 16:53:39 +01:00
project_symbols
proto lsp: Track completion triggers for each language separately (#20471) 2024-11-10 10:29:10 +01:00
quick_action_bar Refactor Spacing into DynamicSpacing using proc macro (#20504) 2024-11-11 11:08:55 -05:00
recent_projects Refactor Spacing into DynamicSpacing using proc macro (#20504) 2024-11-11 11:08:55 -05:00
refineable
release_channel
remote Extension refactor (#20305) 2024-11-06 10:06:25 -07:00
remote_server language servers: Fix wrong language server name (#20428) 2024-11-11 10:18:38 +01:00
repl Refactor Spacing into DynamicSpacing using proc macro (#20504) 2024-11-11 11:08:55 -05:00
reqwest_client logs: Reduce log noise by using more debug logs (#20498) 2024-11-11 15:11:20 +01:00
rich_text
rope rope: Index tab locations for each chunk (#20289) 2024-11-06 13:18:30 +01:00
rpc
search Ensure project search actions are always aligned (#20353) 2024-11-07 10:56:10 -03:00
semantic_index
semantic_version
session
settings macOS: Add key equivalents for non-Latin layouts (#20401) 2024-11-08 13:05:10 -07:00
settings_ui
snippet
snippet_provider
snippets_ui
sqlez Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
sqlez_macros Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
story
storybook Add preview for Checkbox with Label (#20448) 2024-11-08 22:53:15 -05:00
sum_tree
supermaven
supermaven_api
tab_switcher
task
tasks_ui
telemetry_events
terminal Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
terminal_view
text Fix a test flake involving zeroed out group_intervals (#20328) 2024-11-07 09:17:43 -07:00
theme
theme_importer
theme_selector
time_format
title_bar Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
toolchain_selector python: Fix toolchains not getting picked up after workspace deserialization (#20488) 2024-11-11 14:35:01 +01:00
ui Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
ui_input
ui_macros Refactor Spacing into DynamicSpacing using proc macro (#20504) 2024-11-11 11:08:55 -05:00
util Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
vcs_menu
vim Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
welcome Add emacs keymap (#19605) 2024-11-07 15:22:53 -05:00
workspace Refactor Spacing into DynamicSpacing using proc macro (#20504) 2024-11-11 11:08:55 -05:00
worktree Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
zed Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
zed_actions