nushell/crates
Devyn Cairns c82dfce246
Fix deadlock on PluginCustomValue drop (#12418)
# Description
Because the plugin interface reader thread can be responsible for
sending a drop notification, it's possible for it to end up in a
deadlock where it's waiting for the response to the drop notification
call.

I decided that the best way to address this is to just discard the
response and not wait for it. It's not really important to synchronize
with the response to `Dropped`, so this is probably faster anyway.

cc @ayax79, this is your issue where polars is getting stuck

# User-Facing Changes
- A bug fix
- Custom value plugin: `custom-value handle update` command

# Tests + Formatting

Tried to add a test with a long pipeline with a lot of drops and run it
over and over to reproduce the deadlock.

- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`
2024-04-05 21:57:00 -05:00
..
nu_plugin_custom_values Fix deadlock on PluginCustomValue drop (#12418) 2024-04-05 21:57:00 -05:00
nu_plugin_example Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu_plugin_formats Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu_plugin_gstat Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu_plugin_inc Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu_plugin_python Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu_plugin_query Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-cli Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-cmd-base Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-cmd-dataframe Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-cmd-extra Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-cmd-lang Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-color-config Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-command Fix stop suggesting --trash when already enabled (issue #12361) (#12362) 2024-04-05 20:28:40 -05:00
nu-engine Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-explore Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-glob Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-json Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-lsp Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-parser Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-path Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-plugin Fix deadlock on PluginCustomValue drop (#12418) 2024-04-05 21:57:00 -05:00
nu-plugin-test-support Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-pretty-hex Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-protocol Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-std Fix testing.nu import of std log (#12392) 2024-04-05 20:29:19 -05:00
nu-system Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-table Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-term-grid Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-test-support Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
nu-utils Bump version to 0.92.2 (#12402) 2024-04-05 10:24:00 -04:00
README.md Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00

Nushell core libraries and plugins

These sub-crates form both the foundation for Nu and a set of plugins which extend Nu with additional functionality.

Foundational libraries are split into two kinds of crates:

  • Core crates - those crates that work together to build the Nushell language engine
  • Support crates - a set of crates that support the engine with additional features like JSON support, ANSI support, and more.

Plugins are likewise also split into two types:

  • Core plugins - plugins that provide part of the default experience of Nu, including access to the system properties, processes, and web-connectivity features.
  • Extra plugins - these plugins run a wide range of different capabilities like working with different file types, charting, viewing binary data, and more.