instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
zauberzeug__nicegui__5841 | zauberzeug/nicegui | 5,841 | defect | 498e87cfa28627555c0c77ea93e2e936c353f82c | 235207de67a02b72d6e329fbe6a27211b913a46f | Add favicon support for Windows native | ### Motivation
pywebview's `icon` parameter works only on Linux (GTK/Qt). On Windows and macOS, the window icon must typically be set at **packaging time** (via PyInstaller, Nuitka, etc.), so native NiceGUI windows on Windows show the default Python/executable icon instead of the app icon.
**Related issues and di... | diff --git a/nicegui/native/native_mode.py b/nicegui/native/native_mode.py
index 2afa601827..1ab11aef7a 100644
--- a/nicegui/native/native_mode.py
+++ b/nicegui/native/native_mode.py
@@ -11,13 +11,14 @@
from contextlib import suppress
from multiprocessing.connection import Connection
from multiprocessing.synchronize... | 11 | 10 | 3 | [{"id": "G0", "claim": "The favicon shows on the title bar but not on the Windows taskbar, and evnchn asks whether taskbar support was intended.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The CI pipeline is failing because mypy and pylint are un... | null |
zauberzeug__nicegui__5853 | zauberzeug/nicegui | 5,853 | defect | 39291654e469c41fe6a01820d5ac13ca182f68c9 | 3cb5a5be165e9fbae69e42458d36987d0b037180 | allow `app.clients()` to return all clients when path is `None` | ### Motivation
Currently, the `app.clients()` method requires a matching `path` string. However, a common use case is needing to get all connected clients across the entire application (e.g., for global server broadcasts, maintenance messages, or gathering metrics) without having to access the underlying `Client.ins... | diff --git a/nicegui/app/app.py b/nicegui/app/app.py
index 31f418a113..f08913109d 100644
--- a/nicegui/app/app.py
+++ b/nicegui/app/app.py
@@ -379,16 +379,21 @@ def reset(self) -> None:
self.colors() # reset colors to default
@staticmethod
- def clients(path: str) -> Iterator[Client]:
- """It... | 3 | 3 | 1 | [{"id": "G0", "claim": "Use a single for loop with `if path is None or client.page.path == path` for both the path-filtered and the all-clients cases instead of the early-return branch.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docstrin... | null |
zauberzeug__nicegui__5873 | zauberzeug/nicegui | 5,873 | defect | 713e2b0e6a9ea4cba36a01fd1991a2f856210d18 | 58aad770d4dc6485e91508f629a0447c0afc7a3d | Fix `User.should_see` for hidden parents | ### Motivation
The functions `User.should_see` and `User.should_not_see` (of `nicegui.testing`) should only check for elements that are visible. This was partly addressed in PR #4057. However, elements that are included in containers which are not visible should also be filtered out.
### Implementation
`Elemen... | diff --git a/nicegui/element_filter.py b/nicegui/element_filter.py
index f4efb17919..da01c2d73e 100644
--- a/nicegui/element_filter.py
+++ b/nicegui/element_filter.py
@@ -28,6 +28,7 @@ def __init__(self: ElementFilter[Element], *,
marker: str | list[str] | None = None,
content: str |... | 5 | 5 | 3 | [{"id": "G0", "claim": "Making `only_visible=True` the default of the public `ElementFilter` API is a breaking change that silently skips invisible elements for non-testing users; keep `only_visible=False` as the default and pass `only_visible=True` explicitly from `User._gather_elements`.", "category": "design", "verd... | null |
zauberzeug__nicegui__5951 | zauberzeug/nicegui | 5,951 | defect | 9dd21716861afbe79755cb047298957811342a08 | 2ba6f8974d3a59ad3f294e2f8d9d5a56129ba31a | Add `ui.keep_alive` to mount children eagerly regardless of visibility | ### Motivation
Several elements with significant client-side state — `ui.xterm`, `ui.aggrid`, `ui.codemirror`, ECharts, ... — are unreachable when their host container has not been mounted yet. Writing to a `ui.xterm` inside a never-opened `ui.tab_panel` silently drops the data; calling `await grid.get_client_data()` ... | diff --git a/nicegui/elements/keep_alive.py b/nicegui/elements/keep_alive.py
new file mode 100644
index 0000000000..9af8396795
--- /dev/null
+++ b/nicegui/elements/keep_alive.py
@@ -0,0 +1,52 @@
+from typing_extensions import Self
+
+from ..context import context
+from ..element import Element
+
+
+class KeepAlive(Elem... | 4 | 2 | 0 | [{"id": "G0", "claim": "The name `keep_alive` conflicts with Vue's <KeepAlive> semantics (which caches between unmount/remount, the opposite of preventing unmount entirely), so a different name such as `eager`, `always_mounted` or `persistent` should be considered; the decision was deferred.", "category": "design", "ve... | null |
zauberzeug__nicegui__5996 | zauberzeug/nicegui | 5,996 | defect | b29ab8ba3833aea713b34fe7363a12ff90789152 | d3888ebb9bf07370a8ab7a0e7b18f3a26dbde760 | Fix URL formatting for IPv6 hosts and default ports | ## Motivation
Three related issues with how NiceGUI prints/uses server URLs:
1. **IPv6 hosts were not bracketed.** Running with `host='::'` printed `http://:::8000`, which is not a valid URL and not clickable. Per RFC 3986, IPv6 literals must be wrapped in `[...]`.
2. **Default-port handling was inconsistent a... | diff --git a/nicegui/welcome.py b/nicegui/welcome.py
index d9537700ff..e0c30f50eb 100644
--- a/nicegui/welcome.py
+++ b/nicegui/welcome.py
@@ -12,6 +12,10 @@ def _get_all_ips() -> list[str]:
return ips
+def _fmt6(ip: str) -> str:
+ return f'[{ip}]' if ':' in ip else ip
+
+
async def collect_urls() -> None:... | 7 | 5 | 2 | [{"id": "G0", "claim": "The helper name _fmt6 is too cryptic to communicate what it formats; rename it to something explicit (e.g. _format_host_for_url / _format_ipv6_for_url).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The formatter wraps a... | null |
zauberzeug__nicegui__625 | zauberzeug/nicegui | 625 | defect | 9e51d1e60ef30b8b4843646e336d8324c49e53b8 | 925b311697a983ba0d0e56e2bf7ed97301b64662 | Wait for the port to be open before opening the web browser. | Closes #412.
This PR adds functionality to check if a TCP port is open and to wait until a port opens, before opening a web browser. This functionality is used in `run.py`, in order to ensure that the UI is running before the browser opens.
The functionality is achieved using the `socket` and `threading` standard... | diff --git a/nicegui/helpers.py b/nicegui/helpers.py
index d1ffb96f63..4bf7b26cd3 100644
--- a/nicegui/helpers.py
+++ b/nicegui/helpers.py
@@ -1,6 +1,10 @@
import asyncio
import functools
import inspect
+import socket
+import threading
+import time
+import webbrowser
from contextlib import nullcontext
from typing ... | 6 | 6 | 1 | [{"id": "G0", "claim": "The block of # comments inside schedule_browser explaining the non-blocking thread should be written as a docstring.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The # comment inside port_open_tcp explaining how the port ... | null |
zazuko__trifid__185 | zazuko/trifid | 185 | defect | 74f201ab9712759b91af40373bf55bed593674fc | 8b9d0dd247d04fd873b34173ce24bb5724271a64 | Entity-renderer: use @zazuko/env + format code | This PR does the following:
- format the code
- use `@zazuko/env`
To review:
- `packages/entity-renderer/env.js`: is the default environment good enough to not have to use `rdf-ext/DatasetFactory.js`? | diff --git a/.changeset/selfish-goats-sleep.md b/.changeset/selfish-goats-sleep.md
new file mode 100644
index 00000000..4ef1b686
--- /dev/null
+++ b/.changeset/selfish-goats-sleep.md
@@ -0,0 +1,5 @@
+---
+"@zazuko/trifid-entity-renderer": minor
+---
+
+Replace the use of `rdf-ext` with `@zazuko/env`
diff --git a/packag... | 1 | 1 | 0 | [{"id": "G0", "claim": "The local shrink helper in renderer/common/shrink.js duplicates functionality that could come from @zazuko/prefixes, and using the existing shrink from @zazuko/prefixes would give more consistent behavior across apps.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc... | null |
zazuko__trifid__265 | zazuko/trifid | 265 | defect | cd77f12ad9ab8f08b925b27debb43361d6e9042d | 597b85fe8ef14663d46fcc10495af2d0f3805716 | Update some CKAN properties | Re #280
Properties of `dcat:Dataset`:
- `publisher`: import format changed ; see: https://handbook.opendata.swiss/de/content/glossar/bibliothek/dcat-ap-ch.html#dcat-dataset-publisher
- `theme`: new vocabulary to use ; see: https://handbook.opendata.swiss/de/content/glossar/bibliothek/dcat-ap-ch.html#dcat-datas... | diff --git a/packages/ckan/src/xml.js b/packages/ckan/src/xml.js
index 90d93afa..d8031a55 100644
--- a/packages/ckan/src/xml.js
+++ b/packages/ckan/src/xml.js
@@ -28,6 +28,7 @@ const toXML = (dataset) => {
dcat: prefixes.dcat,
dcterms: prefixes.dcterms,
vcard: prefixes.vcard,
+ foaf: prefixes.... | 6 | 5 | 3 | [{"id": "G0", "claim": "The publisher should be serialized as an IRI node carrying rdf:about with an actual name string rather than the identifier, handling both literal and IRI publishers with the labels included in the query.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
zbraniecki__unic-locale__11 | zbraniecki/unic-locale | 11 | defect | 4bfef8a1d076a81c64c09da5e7c34f9e1849b5d6 | 3d0a0265e5d1e199c4b3b19cf2ea33acd2333bb4 | Switch variants to be an Option to allow for const constructor when variants are missing | Hopefully fixes #10. | diff --git a/unic-langid-impl/benches/langid.rs b/unic-langid-impl/benches/langid.rs
index 671484fb..3462da70 100644
--- a/unic-langid-impl/benches/langid.rs
+++ b/unic-langid-impl/benches/langid.rs
@@ -77,9 +77,12 @@ fn language_identifier_construct_bench(c: &mut Criterion) {
script.ma... | 2 | 2 | 0 | [{"id": "G0", "claim": "Prefer a map/collect over the manual for-loop when parsing and collecting the variant subtags in from_parts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the if-let body of is_option_empty with subtag.as_ref().m... | null |
zbraniecki__unic-locale__30 | zbraniecki/unic-locale | 30 | defect | a76b597a68c4b19ca0e3aa4fe8448c10a7374bd1 | 3ec3a9fb92a390d61badb390ff8ae0515e3df5bf | Add get_* and remove_* for extensions | * unicode: get_keyword, get_attribute, remove_keyword, remove_attribute
* transform: get_tfield, remove_tfield
* private: get_tag, remove_tag
I think I should probably add some documentation to these functions before merging so setting to WIP for now. I would like to hear whether this looks like the right way to g... | diff --git a/unic-locale-impl/src/extensions/private.rs b/unic-locale-impl/src/extensions/private.rs
index 6ec07897..0aba7cd2 100644
--- a/unic-locale-impl/src/extensions/private.rs
+++ b/unic-locale-impl/src/extensions/private.rs
@@ -16,16 +16,91 @@ fn parse_value(t: &str) -> Result<TinyStr8, ParserError> {
}
impl... | 7 | 7 | 2 | [{"id": "G0", "claim": "Add plural getters returning impl ExactSizeIterator to the extension lists — get_tags (which the reviewer suggested naming get_tag_keys, returning keys not values), get_tfield_tkeys, get_attribute_keys and get_attributes.", "category": "design", "verdict": "supported", "priority": "P2", "scope":... | null |
zbraniecki__unic-locale__35 | zbraniecki/unic-locale | 35 | defect | a76b597a68c4b19ca0e3aa4fe8448c10a7374bd1 | 03f4d583220372aa108854b7a9a89d932e830a1a | Switch set_variants to use ExactSizeIterator | Per https://phabricator.services.mozilla.com/D49668 request, switching `set_variants` to use an iterator.
It's a bit weird from an API perspective to use `["foo"].iter()` instead of `&["foo"]` but that may be just because I'm used to the former? | diff --git a/unic-langid-impl/Cargo.toml b/unic-langid-impl/Cargo.toml
index 91597a4d..caba2b7e 100644
--- a/unic-langid-impl/Cargo.toml
+++ b/unic-langid-impl/Cargo.toml
@@ -11,7 +11,7 @@ categories = ["internationalization"]
exclude = ["data/*"]
[dependencies]
-tinystr = "0.3"
+tinystr = { git = "https://github.c... | 4 | 4 | 0 | [{"id": "G0", "claim": "get_variants should return an ExactSizeIterator (as emilio said ExactSizeIterator would be slightly better), and M008 asks how to express that when variants is None since the author could not make impl ExactSizeIterator work.", "category": "design", "verdict": "supported", "priority": "P2", "sco... | null |
zbraniecki__unic-locale__7 | zbraniecki/unic-locale | 7 | defect | 57d38ce4e086794c006c216018d5f91174730a45 | 60c3bc049b9dd8a122013cd29a3d960225b26b37 | Switch to TinyStr | This is a port of https://github.com/projectfluent/fluent-locale-rs/pull/8/files to unic-langid.
It's a WIP patch, but it works and passes all tests. I think there are couple more optimizations possible and I'd also like to get feedback from the author on my attempt to separate `try_new` from `new_unchecked`.
Per... | diff --git a/unic-langid-impl/src/lib.rs b/unic-langid-impl/src/lib.rs
index 8b37470f..7a615977 100644
--- a/unic-langid-impl/src/lib.rs
+++ b/unic-langid-impl/src/lib.rs
@@ -1,17 +1,18 @@
-pub mod errors;
+mod errors;
pub mod parser;
-pub mod subtags;
+mod subtags;
+mod tinystr;
-use crate::errors::LanguageIdentifi... | 8 | 5 | 3 | [{"id": "G0", "claim": "The unchecked path may be slower than the previous Cow-based solution, so its performance needs to be verified and preserved.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Ord implementation for TinyStr8 looks wrong - it... | null |
zcash__halo2__242 | zcash/halo2 | 242 | defect | 78c394645dd754875736112241227f019f88c484 | 558786af127b08a2e622d95b3f40c6a449b0acbd | Add support for full-field challenge space | Closes #151 | diff --git a/benches/plonk.rs b/benches/plonk.rs
index 1204336dcf..3677ba09fb 100644
--- a/benches/plonk.rs
+++ b/benches/plonk.rs
@@ -6,7 +6,7 @@ use halo2::arithmetic::FieldExt;
use halo2::pasta::{EqAffine, Fp};
use halo2::plonk::*;
use halo2::poly::{commitment::Params, Rotation};
-use halo2::transcript::{Blake2bR... | 6 | 6 | 4 | [{"id": "G0", "claim": "The transcript API changes should preserve the explicit distinction between challenge types — e.g. declare `let theta: ChallengeTheta<C> = transcript.squeeze_challenge_scalar();` (and similarly for the other challenges) so that reading the declaration shows the compiler will catch any mix-up bet... | null |
zcash__halo2__305 | zcash/halo2 | 305 | defect | 2474647af01b0c478408e4e187b7face3efa08e3 | 6d0017f47c0119e0b6d6d671a38d5398a427b8ae | Introduce a FloorPlanner trait and integrate it into the Circuit trait | This is the beginning of the process to enable full floor planning capabilities in `halo2`. For now, all that a floor planner can do is synthesize a circuit, which makes it no more powerful than a layouter, but easier to use (as moving to a multi-pass layouter no longer requires changes to `Circuit::synthesize`). | diff --git a/benches/plonk.rs b/benches/plonk.rs
index 281e45cb93..c27a75d13c 100644
--- a/benches/plonk.rs
+++ b/benches/plonk.rs
@@ -3,8 +3,7 @@ extern crate criterion;
extern crate halo2;
use halo2::arithmetic::FieldExt;
-use halo2::circuit::layouter::SingleChipLayouter;
-use halo2::circuit::{Cell, Layouter};
+u... | 1 | 1 | 0 | [{"id": "G0", "claim": "The FloorPlanner trait documentation on the added line should say the measurement pass calls `circuit.without_witnesses().synthesize(...)` instead of `Circuit::default().synthesize(config, &mut layouter)`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
zcash__halo2__322 | zcash/halo2 | 322 | defect | d8df7a12d55021c34c1bec8ed2624707d24066b5 | 827132302a15de8bc196b0305dce68e842e91ea4 | Support rotations while in extended domain | The existing `halo2` code handles columns being queried at different relative locations ("rotations" as we call them at the domain layer) by storing, when necessary, the polynomial in the extended domain _already rotated_ over the Lagrange basis. This is duplicative because it's actually quite efficient to rotate once ... | diff --git a/src/dev.rs b/src/dev.rs
index 7e64ce75c0..6ddc5d6ea4 100644
--- a/src/dev.rs
+++ b/src/dev.rs
@@ -500,8 +500,8 @@ impl<F: FieldExt> MockProver<F> {
row: i32,
queries: &'a [(Column<T>, Rotation)],
cells: &'a [Vec<Option<F... | 5 | 2 | 0 | [{"id": "G0", "claim": "The comment above op_extended should say rotation in the extended domain is \"scaled\" rather than \"exaggerated\".", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The boolean parameter of distribute_powers_zeta should be name... | null |
zcash__halo2__342 | zcash/halo2 | 342 | defect | a805e2a35c9d1fb5155e40aa20963302b3d6ff1e | cb9366d65687ecdc1175b292fe616d6f23e53cad | Add `Region::assign_advice_from_constant` API | Closes #335. | diff --git a/examples/simple-example.rs b/examples/simple-example.rs
index 15e9463e0b..f001fdc264 100644
--- a/examples/simple-example.rs
+++ b/examples/simple-example.rs
@@ -5,7 +5,7 @@ use std::marker::PhantomData;
use halo2::{
arithmetic::FieldExt,
circuit::{Cell, Chip, Layouter, Region, SimpleFloorPlanne... | 3 | 2 | 1 | [{"id": "G0", "claim": "The comment in `constrain_constant` misspells \"laid out\" as \"layed out\" and should read \"always laid out in\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `Error::NotEnoughColumnsForConstants` variant needs ... | null |
zcash__halo2__354 | zcash/halo2 | 354 | defect | 2e960317ae02c72dc3ff5a02c7d31f154d606748 | b21ab7562546259d6613d93db087234bd81f924b | Add a `Layouter::assign_table` API | The new API correctly handles lookup table assignments; in particular, layouters now ensure that every column used in a table has a valid table entry on every usable row. | diff --git a/src/circuit.rs b/src/circuit.rs
index f78a61f720..788340ff78 100644
--- a/src/circuit.rs
+++ b/src/circuit.rs
@@ -244,6 +244,45 @@ impl<'r, F: Field> Region<'r, F> {
}
}
+/// A lookup table in the circuit.
+///
+/// TODO: Add wrapper type to `ConstraintSystem` to allow us to only deal with lookup
+... | 7 | 7 | 1 | [{"id": "G0", "claim": "Without a wrapper type separating lookup-table columns from ordinary fixed columns, chip developers can ignore `Layouter::assign_table` and keep using `Layouter::assign_region`, which does not perform default-value-filling; the wrapper type should be added before others are encouraged to use the... | null |
zcash__halo2__383 | zcash/halo2 | 383 | defect | 658c2db4217b1b19b17ecd29577c0e370e1c4997 | 0eef8834229ba34491ee4d444877d4e4c3c11047 | circuit.rs: Introduce `AssignedCell` struct. | Addresses https://github.com/zcash/halo2/issues/288. | diff --git a/src/circuit.rs b/src/circuit.rs
index f49d5b7f37..319d309fab 100644
--- a/src/circuit.rs
+++ b/src/circuit.rs
@@ -1,6 +1,6 @@
//! Traits and structs for implementing circuit components.
-use std::{fmt, marker::PhantomData};
+use std::{convert::TryInto, fmt, marker::PhantomData};
use ff::Field;
@@ -... | 11 | 9 | 1 | [{"id": "G0", "claim": "copy_advice does not constrain the new cell to be equal to the original as its documentation states — it only assigns it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "AllocatedCell::new()'s API should be reconsidered — whet... | null |
zcash__halo2__416 | zcash/halo2 | 416 | defect | 0295dc724b517496f556fbd01e6aaf467fc25521 | 7b86178ccb885fee2759e38c313980dfd9dec228 | Change to `Into<Column<Any>>` for pub API methods | As suggested by daira in #345, it's sometimes annoying to call `.into()`
for all of the columns in methods like `enable_equality`.
Specially when you end up with situations where you have `&Column<_>` where you are forced to do something like:
`meta.enable_equality((*column).into())`
This change changes the publi... | diff --git a/benches/plonk.rs b/benches/plonk.rs
index 6a20c5554d..56209bddbd 100644
--- a/benches/plonk.rs
+++ b/benches/plonk.rs
@@ -181,9 +181,9 @@ fn bench_with_k(name: &str, k: u32, c: &mut Criterion) {
let b = meta.advice_column();
let c = meta.advice_column();
- meta.enable... | 5 | 4 | 2 | [{"id": "G0", "claim": "The `Copy` bound added to the new generic signatures (e.g. `enable_equality`) should be removed, since it restricts the set of valid arguments by preventing non-`Copy` values from being moved in, and the method does not need to copy.", "category": "design", "verdict": "supported", "priority": "P... | null |
zcash__librustzcash__1835 | zcash/librustzcash | 1,835 | defect | 7a4ff313070df2ff24c3600cba48e0516cbfbc4f | fbce1ed1a136ab34f689f42ced3b82a626acfab1 | Add P2MS-in-P2SH support to tx builder and PCZT Spend Finalizer | Closes zcash/librustzcash#1360.
Closes zcash/librustzcash#1833.
Closes zcash/librustzcash#1834. | diff --git a/Cargo.lock b/Cargo.lock
index 54b3997b501..0ff2140b889 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2997,10 +2997,12 @@ dependencies = [
"postcard",
"rand_core",
"redjubjub",
+ "ripemd 0.1.3",
"sapling-crypto",
"secp256k1",
"serde",
"serde_with",
+ "sha2 0.10.8",
"shardtree",
"zcash_note_... | 6 | 4 | 1 | [{"id": "G0", "claim": "The PR must not be merged before the PCZT spend finalizer is fixed to actually build a correct P2MS-in-P2SH scriptSig (the placeholder P2MS detection does not parse pubkeys out of the redeem script or match signatures to them).", "category": "correctness", "verdict": "supported", "priority": "P0... | null |
zcash__librustzcash__2094 | zcash/librustzcash | 2,094 | defect | f7254cf9bb49238216b1795498b1d73d2c9eaf57 | 3c96bd209e65c1d5588be2ced325fa43fd9ab1a6 | Make `ChangeStrategy` values usable outside of the context of `zcash_client_backend` | This exposes types and trait implementations from `zcash_transparent` and `zcash_client_backend` to make it easier to use the `ChangeStrategy` type in contexts outside of `zcash_client_backend` proposal construction. | diff --git a/zcash_client_backend/CHANGELOG.md b/zcash_client_backend/CHANGELOG.md
index 3958f36f6cb..0b778b70607 100644
--- a/zcash_client_backend/CHANGELOG.md
+++ b/zcash_client_backend/CHANGELOG.md
@@ -22,6 +22,7 @@ workspace.
- `LightdInfo` has added fields `upgrade_name`, `upgrade_height`, and `lighwallet_proto... | 2 | 2 | 1 | [{"id": "G0", "claim": "The exposed `TransparentInputInfo` constructor should enforce the correctness checks that `Builder::add_input` and `Builder::add_p2sh_input` perform (those methods becoming thin wrappers around it), and the API could be consolidated by having `Builder::add_input` take `TransparentInputInfo`, ren... | null |
zcash__librustzcash__254 | zcash/librustzcash | 254 | defect | f55f094ef69c2caeaa941bcf851dac8cb5fa9942 | 1bc2bac5bc2fdf75220e9475117bba3758786f10 | bellman: add VerificationError | This adds a distinct VerificationError type to the crate and changes
`verify_proof` to return `Result<(), VerificationError>` rather than
`Result<bool, SynthesisError>`. This is significantly safer, because it avoids
the need to mix pattern-matching logic with boolean logic (the cause of
RUSTSEC-2019-0004). | diff --git a/bellman/src/groth16/mod.rs b/bellman/src/groth16/mod.rs
index 7c97197aaa..624324f2af 100644
--- a/bellman/src/groth16/mod.rs
+++ b/bellman/src/groth16/mod.rs
@@ -560,8 +560,8 @@ mod test_with_bls12_381 {
let de_proof = Proof::read(&v[..]).unwrap();
assert!(proof == de_proof);
- ... | 5 | 3 | 1 | [{"id": "G0", "claim": "nit: rename the `VerificationError::Failed` variant to something like `ProofVerificationFailed`, since every VerificationError represents a failure (later the author counters that `InvalidProof` reads better, keeping the rename request).", "category": "design", "verdict": "supported", "priority"... | null |
zcash__orchard__236 | zcash/orchard | 236 | defect | aa251befbc89bdc6b12ab379a0ba23d08d2a48b4 | b63c8685914824035e0285f460d141f3d950f53c | Benchmark Poseidon gadget for rates {2, 8, 11} | Run `cargo bench --bench poseidon`.
Closes #215.
Based on #220. | diff --git a/benches/primitives.rs b/benches/primitives.rs
index df6747b59..4d141c695 100644
--- a/benches/primitives.rs
+++ b/benches/primitives.rs
@@ -21,7 +21,7 @@ fn bench_primitives(c: &mut Criterion) {
let message = [pallas::Base::random(rng), pallas::Base::random(rng)];
group.bench_function("... | 1 | 1 | 0 | [{"id": "G0", "claim": "Requiring explicit turbofish type parameters at Poseidon Hash call sites after removing &self from the Spec trait methods is an annoying API usability downside.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zcash__orchard__268 | zcash/orchard | 268 | defect | 5742eb5c52687e3f3316072c885a093f75fd9a92 | 5b26c7d67a86ac31bfc86dde425109d14e0a8095 | Update `halo2` revision | Updating to reflect API changes in `halo2`:
- we no longer need to call `.into()` on arguments to `enable_equality()`, as of https://github.com/zcash/halo2/pull/416;
- the `create_proof()` API now expects an `rng` argument, as of https://github.com/zcash/halo2/pull/444;
- `MockProver::FailureLocation` was introduc... | diff --git a/Cargo.toml b/Cargo.toml
index efd3fc2a2..874efa1ce 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -89,4 +89,4 @@ debug = true
debug = true
[patch.crates-io]
-halo2 = { git = "https://github.com/zcash/halo2.git", rev = "afd7bc5469674cd08eae1634225fd02706a36a4f" }
+halo2 = { git = "https://github.com/zcash/... | 2 | 1 | 1 | [{"id": "G0", "claim": "The PR should add another commit to bump the halo2 revision a second time, so that it includes pasta_curves 0.3 and blake2b_simd 1.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The new `rng: impl RngCore` parameter added to th... | null |
zcash__orchard__290 | zcash/orchard | 290 | defect | 3b8d07f7b64b2329622089ac9698e4cce97e2f14 | 1633b9005b8031d9bad9f7338ce7a289ea02ebb6 | Update the incremental merkle tree version and the Rust toolchain. | Use derived equality and ordering (which delegate to constant-time
versions) for note::nullifier::Nullifier and tree::MerkleHashOrchard
so that these types can be used as map keys in wallets. | diff --git a/Cargo.toml b/Cargo.toml
index ac0265c7c..6bd5dd5e2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -46,6 +46,9 @@ incrementalmerkletree = "0.2"
# Developer tooling dependencies
plotters = { version = "0.3.0", optional = true }
+[patch.crates-io]
+incrementalmerkletree = { git = "https://github.com/zcash/in... | 3 | 2 | 0 | [{"id": "G0", "claim": "The pull request should explain why the Rust toolchain (MSRV) is being bumped to 1.56.1, which str4d had tried to avoid until after the 4.7.0 release.", "category": "process", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pinned incrementalmerkletre... | null |
zcash__orchard__395 | zcash/orchard | 395 | defect | 3619b86d1c445018e283896dd28ba237f5e970e4 | 99d56dcf4ddf48896094982a096e03931e550d39 | Update the `incrementalmerkletree` and `bridgetree` patch versions. | This also removes the `bridgetree` transitive dependency when building using the `test-dependencies` feature flag, as the only use of it can be satisfied just with `incrementalmerkletree`. | diff --git a/Cargo.toml b/Cargo.toml
index 67ffefde4..495e8a673 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -26,7 +26,6 @@ rustdoc-args = ["--cfg", "docsrs", "--html-in-header", "katex-header.html"]
aes = "0.8"
bitvec = "1"
blake2b_simd = "1"
-bridgetree = { version = "0.2", optional = true }
ff = "0.13"
fpe = "0.... | 2 | 1 | 0 | [{"id": "G0", "claim": "The From impl should use MERKLE_DEPTH_ORCHARD instead of the hardcoded literal 32 in incrementalmerkletree::MerklePath<MerkleHashOrchard, 32>.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since the testing module is no lo... | null |
zcash__orchard__412 | zcash/orchard | 412 | defect | e127230af008006eecf6ecdfb8a265ee059a6a2e | b60ef5c7eaf9f22636d608fbf27369ab4eb98588 | Return bundle metadata from bundle building. | In order to be able to associate requested spends and outputs with the indices of the actions that execute these operations, it is necessary to track the randomization of inputs and outputs and return the mappings that resulted from that shuffling. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 471621c51..bf766fa8e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@ and this project adheres to Rust's notion of
### Added
- `orchard::builder::bundle`
+- `orchard::builder::BundleMetadata`
- `orchard::builder::BundleType`
- `orchard::builder::OutputI... | 3 | 3 | 0 | [{"id": "G0", "claim": "The BundleMetadata struct's doc comment is awkwardly worded and should be replaced with wording describing metadata about a bundle created by [`bundle`] or [`Builder::build`] that is not necessarily recoverable from the bundle itself, including how actions are ordered after padding and randomiza... | null |
zcash__orchard__442 | zcash/orchard | 442 | defect | 5c451beb05a10337a57a7fdf279c1dd6a533b805 | 70862127f5a5e5297e02127fbf1888dc52fce4f2 | Upgrade `incrementalmerkletree` to version 0.8.1 | This also requires us to replace the use of `bridgetree` in tests with `shardtree`. | diff --git a/Cargo.lock b/Cargo.lock
index 5482a493e..b053aeb79 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -197,15 +197,6 @@ dependencies = [
"subtle",
]
-[[package]]
-name = "bridgetree"
-version = "0.6.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cef977c7f8e75aa81fc589064c12... | 1 | 1 | 0 | [{"id": "G0", "claim": "The empty `### Changed` section that the pull request adds to CHANGELOG.md is not needed and should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zcash__orchard__480 | zcash/orchard | 480 | defect | 64599b81ef4fee59c41a5b98619e27a8be38f953 | c1d49e629c29f8684b0ea8f29f57d6f90da23699 | Split orchard into `orchard_internal` (wide visibility) + `orchard` (API-preserving shim) | Downstream extensions to Orchard, such as the new voting protocol, will want to create their own circuits while reusing components of this crate (especially its internal circuits). But, we would prefer that the API is not enlarged on `orchard` itself.
This PR turns this repository into a workspace. The existing `orc... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 14c13b13b..4f9841b19 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Run tests
- run: cargo test --verbose
+ run: cargo test --w... | 10 | 8 | 2 | [{"id": "G0", "claim": "The doc example in src/address.rs should hide the `orchard_internal` crate name from the rendered public docs by using a hidden alias import (`/// # use orchard_internal as orchard;`).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "... | null |
zcash__zcash__1486 | zcash/zcash | 1,486 | defect | 17b23ffe20385dfe1292af8ab487f1eafd58fb39 | 82c2d97c60a04ce46be9555a376a693006f4cbc0 | WriteWitnessCache: Catch errors and abort transaction | Closes #1452
| diff --git a/src/wallet/gtest/test_wallet.cpp b/src/wallet/gtest/test_wallet.cpp
index e72b8a2f63a..2ea2c1d5bf6 100644
--- a/src/wallet/gtest/test_wallet.cpp
+++ b/src/wallet/gtest/test_wallet.cpp
@@ -11,11 +11,26 @@
#include "zcash/Note.hpp"
#include "zcash/NoteEncryption.hpp"
-using ::testing::_;
using ::testing... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add unit tests that mock the walletdb to return false and throw an exception, so the new WriteWitnessCache error handling is exercised.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Split the WriteWitnessCache test up so the EXP... | null |
zcash__zcash__1490 | zcash/zcash | 1,490 | defect | 17b23ffe20385dfe1292af8ab487f1eafd58fb39 | 3c31eb24d332c403f12c766499a201246806734f | Throw an RPC error for all accounts except the default | Closes #1454
| diff --git a/src/rpcprotocol.h b/src/rpcprotocol.h
index 4f3f70fb372..473b8d1148b 100644
--- a/src/rpcprotocol.h
+++ b/src/rpcprotocol.h
@@ -69,7 +69,7 @@ enum RPCErrorCode
//! Wallet errors
RPC_WALLET_ERROR = -4, //! Unspecified problem with wallet (key not found etc.)
RPC_WALLET_INSUFFI... | 5 | 3 | 2 | [{"id": "G0", "claim": "Returning an RPC error for accounts breaks the existing tests that use \"*\" (and other accounts) and expect a valid result back, so the tests need repair.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new error constant sho... | null |
zcash__zcash__1561 | zcash/zcash | 1,561 | defect | 1218603f7357c0649545fbf0ea59e47508d4298f | 7f0aa74666acf962bc37dca21339bb438a2195b1 | Randomize JoinSplit input and output orders | Closes #778.
| diff --git a/src/Makefile.gtest.include b/src/Makefile.gtest.include
index d68c9a98a52..d247e3e961b 100644
--- a/src/Makefile.gtest.include
+++ b/src/Makefile.gtest.include
@@ -17,6 +17,7 @@ zcash_gtest_SOURCES = \
gtest/test_noteencryption.cpp \
gtest/test_merkletree.cpp \
gtest/test_pow.cpp \
+ gtest/test_rando... | 7 | 3 | 0 | [{"id": "G0", "claim": "JSDescription::Randomized could take the random generator as a parameter to make it more easily and thoroughly testable.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test can build inputSet as std::set<size_t> inputSet(inpu... | null |
zcash__zcash__1569 | zcash/zcash | 1,569 | defect | 1218603f7357c0649545fbf0ea59e47508d4298f | 62c0aa9e58eb0dd9a22a2a83fd01d854d575a184 | Disable wallet encryption | Closes #1552
| diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
index 4d66085704c..eb76e667dd6 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -1979,10 +1979,18 @@ Value encryptwallet(const Array& params, bool fHelp)
{
if (!EnsureWalletIsAvailable(fHelp))
return Value::null;
- ... | 4 | 4 | 2 | [{"id": "G0", "claim": "When wallet encryption is disabled, encryptwallet should throw an error (suggested: JSONRPCError(RPC_WALLET_ENCRYPTION_FAILED, \"Error: Wallet encryption is disabled.\")) instead of returning false, whose observable behaviour is unclear.", "category": "design", "verdict": "supported", "priority"... | null |
zcash__zcash__1863 | zcash/zcash | 1,863 | defect | 611f25b6044e92d146e6272539f0523256a9cacf | 7e387945e1234ea17198f8a054e12822b3342d7f | Add compile flag to disable compilation of mining code | Closes #1795 | diff --git a/configure.ac b/configure.ac
index a6e40ab5a1f..a18e55308c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,6 +82,12 @@ AC_ARG_ENABLE([wallet],
[enable_wallet=$enableval],
[enable_wallet=yes])
+AC_ARG_ENABLE([mining],
+ [AS_HELP_STRING([--enable-mining],
+ [enable mining (default is yes)])],
+... | 2 | 2 | 1 | [{"id": "G0", "claim": "Compiling with the miner enabled fails: the ENABLE_MINER flag is passed to equihash.cpp but not to equihash.h, so building libzcashconsensus breaks with undeclared BasicSolve/OptimisedSolve members.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"... | null |
zcash__zcash__6524 | zcash/zcash | 6,524 | defect | 881ab6b46a347717d4c79fa84870777efc6e6796 | 7f0592a66438cdc2fca7e72c27f13d0a56c9defd | Support ZIP 317 fees in the zcashd wallet | - still support explicit fixed fees everywhere – if a caller provides a fee, we
don’t adjust it
- treat a fee of -1 as a signifier for use of ZIP 317 fees when a fee needs to
be provided because of additional positional arguments
Fixes #6345. | diff --git a/qa/rpc-tests/wallet_z_sendmany.py b/qa/rpc-tests/wallet_z_sendmany.py
index 10734465ead..3b0c269c103 100755
--- a/qa/rpc-tests/wallet_z_sendmany.py
+++ b/qa/rpc-tests/wallet_z_sendmany.py
@@ -22,6 +22,10 @@
# Test wallet address behaviour across network upgrades
class WalletZSendmanyTest(BitcoinTestFra... | 11 | 7 | 2 | [{"id": "G0", "claim": "The expected error message in the wallet_z_sendmany Sprout-to-Orchard test needs to be updated to match what the changed scenario produces.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G9", "claim": "The targetAmount definition (sendAmoun... | null |
zcash__zcash__6649 | zcash/zcash | 6,649 | defect | 7dc1f634e313f50a48ec2b685266144d4a051fca | c5b407c7f9bd08778fe10f93fcffd3762a424bb8 | Add CCoinsView support for Orchard/Sapling subtrees. | This PR adds `CCoinsView`/`CCoinsViewCache`/`CCoinsViewDB` support for storing (in leveldb) subtree roots for Sapling and Orchard.
`CCoinsViewCache` has new `PushSubtree` and `PopSubtree` methods for storing the "next" (or removing the last added) subtree for a given shielded type. This will be what we need to use i... | diff --git a/src/coins.cpp b/src/coins.cpp
index 67ed7cbd1b8..6546a2035c6 100644
--- a/src/coins.cpp
+++ b/src/coins.cpp
@@ -58,6 +58,8 @@ uint256 CCoinsViewBacked::GetBestAnchor(ShieldedType type) const { return base->
HistoryIndex CCoinsViewBacked::GetHistoryLength(uint32_t epochId) const { return base->GetHistoryLe... | 27 | 20 | 1 | [{"id": "G0", "claim": "The runtime_error messages should read \"unsupported shielded type\" without \"in cache of subtrees\", which could be read as saying the incorrect type is stored in the cached data.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla... | null |
zcash__zcash__6891 | zcash/zcash | 6,891 | defect | 402d303754e1f36383a62bef49c70bb3957a2b8a | 90888c63bd3dce3d44edceec1cda9387506e1464 | Backport upstream bech32m implementation & implement `converttex` RPC method. | Includes changes cherry-picked from the following upstream PRs:
- bitcoin/bitcoin#12881
- bitcoin/bitcoin#13249
- Only the changes to `src/bech32.cpp`.
- bitcoin/bitcoin#16792
- bitcoin/bitcoin#16889
- Only the first commit.
- Excludes changes to:
- `src/outputtype.cpp` (we haven't backported bitcoin/... | diff --git a/qa/pull-tester/rpc-tests.py b/qa/pull-tester/rpc-tests.py
index 8b65b195b25..96ccf18d5b2 100755
--- a/qa/pull-tester/rpc-tests.py
+++ b/qa/pull-tester/rpc-tests.py
@@ -153,6 +153,7 @@
'threeofthreerestore.py',
'show_help.py',
'errors.py',
+ 'converttex.py',
]
ZMQ_SCRIPTS = [
diff --gi... | 5 | 4 | 1 | [{"id": "G0", "claim": "TEX_ADDRESS is a Bech32m encoding, so its HRP should live in a separate Bech32mType enum (with a bech32mHRPs table) instead of being added to the Bech32Type enum and bech32HRPs table.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
zcash__zcash__6932 | zcash/zcash | 6,932 | defect | 5f0d6a84c477a8e32f7a7ad6e0c9436f99588693 | 099cd24da38b4054c6e597956aa4256cc47adcb7 | fix getaddresstxids and getaddressdeltas range parsing | (There is no issue for this, but it relates to https://github.com/zcash/lightwalletd/pull/496)
The range parsing for `getaddresstxids` and `getaddressdeltas` (both use the same range parsing function) has been broken from day 1. Both the `start` and `end` parameters are optional, but if you specify a nonzero `start`... | diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp
index 401e2ed2576..e9b72d5cdf3 100644
--- a/src/rpc/misc.cpp
+++ b/src/rpc/misc.cpp
@@ -831,23 +831,32 @@ static void getHeightRange(const UniValue& params, int& start, int& end)
UniValue startValue = find_value(params[0].get_obj(), "start");
UniValue e... | 2 | 2 | 0 | [{"id": "G0", "claim": "The comment \"// If either is not specified, the other is ignored.\" in getHeightRange is now inaccurate because the PR handles start and end independently, and it should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
zcash__zcash__6962 | zcash/zcash | 6,962 | defect | a0602ebfb765a965acd8de0b012da28f257a6918 | 9831458a4af73f781194f6634720e89ade4da7f4 | Ensure that the "future timestamp" rule is correctly applied by block template construction | fixes #6960 | diff --git a/src/miner.cpp b/src/miner.cpp
index 878c23a1df9..84a41a1d6dc 100644
--- a/src/miner.cpp
+++ b/src/miner.cpp
@@ -75,6 +75,7 @@ int64_t UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParam
nNewTime = std::min(nNewTime, medianTimePast + MAX_FUTURE_BLOCK_TIME_MTP);
}
+ //... | 2 | 1 | 0 | [{"id": "G0", "claim": "The comment at src/test/miner_tests.cpp line 379 is now incorrect for the code it is associated with, so it should be moved down to where the -curTime + ... logic now lives and replaced here with an accurate comment for this part of the test.", "category": "documentation", "verdict": "opposed", ... | null |
zealdocs__zeal__1812 | zealdocs/zeal | 1,812 | defect | 471221fb77d1354cac8b20a0c0ebe4c6c5e76226 | 168d7cc23e3a3cd47a145bf9da4c802a4ecd9c1c | refactor: use QList instead of QVector | In Qt 6 QVector is an alias.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Refactor**
* Internal container types were standardized across browser, search, UI, registry, and fuzzy-matching code to improve consistency; no user-facing behavior changes.
* **Test... | diff --git a/src/libs/browser/webview.cpp b/src/libs/browser/webview.cpp
index dd028e6dd..0d24665fd 100644
--- a/src/libs/browser/webview.cpp
+++ b/src/libs/browser/webview.cpp
@@ -14,10 +14,10 @@
#include <QApplication>
#include <QCheckBox>
#include <QDesktopServices>
+#include <QList>
#include <QMenu>
#include <... | 2 | 1 | 0 | [{"id": "G0", "claim": "src/libs/browser/webview.h should explicitly include <QList> now that it declares a public API returning const QList<int>&, instead of relying on transitive includes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "unregis... | null |
zebrunner__carina__1008 | zebrunner/carina | 1,008 | defect | df0875e2205eb013e81354d7e0995d5837621367 | 785e69c7f8cf0b8b0e3837d99ddba533a6364262 | Crypto usage in any property | Crypto usage in any property.
You can use {crypt:...} parameter in any property file (config, testdata, api, etc.)
| diff --git a/carina-utils/src/main/java/com/qaprosoft/carina/core/foundation/utils/R.java b/carina-utils/src/main/java/com/qaprosoft/carina/core/foundation/utils/R.java
index 1103c72ca4..6bd40112a2 100644
--- a/carina-utils/src/main/java/com/qaprosoft/carina/core/foundation/utils/R.java
+++ b/carina-utils/src/main/java... | 2 | 2 | 0 | [{"id": "G0", "claim": "The private helper added in R.java should be renamed from requireDecryption to isEncrypted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In R.get(String), decryption should only happen when isEncrypted says the value is... | null |
zebrunner__carina__1138 | zebrunner/carina | 1,138 | defect | 455f6077457cb01a6729150fe3f63345e16bba9a | eca24b562b831289120e9af865e22d42032d9898 | Removed soap example and added locale example in carina archetype | <!--- Provide a general summary of your changes in the Title above -->
<!--- Describe your changes in details -->
<!--- To generate SNAPSHOT core build please assign "build-snapshot" label or type it in PR Title above.
For example: "build-snapshot: my PR details".
Email notification informs you ... | diff --git a/archetype/src/main/resources/archetype-resources/pom.xml b/archetype/src/main/resources/archetype-resources/pom.xml
index 0727bf3122..5c6004baec 100644
--- a/archetype/src/main/resources/archetype-resources/pom.xml
+++ b/archetype/src/main/resources/archetype-resources/pom.xml
@@ -133,27 +133,6 @@
... | 7 | 7 | 1 | [{"id": "G0", "claim": "Update the copyright header year in WikipediaHomePage.java and WebLocalizationSample.java from 2013-2018 to 2013-2020, as was done in carina-demo.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Keep only jira_url in the JIR... | null |
zebrunner__carina__1151 | zebrunner/carina | 1,151 | defect | b01d273e909841e965a164e6453278d42d6e96d0 | 763125d17fc254eac6669ec24618b82470b7efd8 | Added web multiple browser test to carina archetype | <!--- Provide a general summary of your changes in the Title above -->
<!--- Describe your changes in details -->
<!--- To generate SNAPSHOT core build please assign "build-snapshot" label or type it in PR Title above.
For example: "build-snapshot: my PR details".
Email notification informs you ... | diff --git a/archetype/src/main/resources/archetype-resources/src/test/java/carina/demo/WebMultipleBrowserTest.java b/archetype/src/main/resources/archetype-resources/src/test/java/carina/demo/WebMultipleBrowserTest.java
new file mode 100644
index 0000000000..76fd0fe9ec
--- /dev/null
+++ b/archetype/src/main/resources/... | 2 | 2 | 0 | [{"id": "G0", "claim": "The copyright header year should read 2013-2020 instead of 2013-2018.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The useless parallel=\"methods\" attribute should be removed from the suite tag.", "category": "design", "... | null |
zebrunner__carina__1293 | zebrunner/carina | 1,293 | defect | 911b9ef479e6ab3c1475449fe43afa5c14b13fee | df040c0df0ecb1774fbeea1d41b2789c91df3f0e | carina-webdriver: desktop, mobile capabilities unit tests | <!--- Provide a general summary of your changes in the Title above -->
<!--- Describe your changes in details -->
<!--- To generate SNAPSHOT core build please assign "build-snapshot" label or type it in PR Title above.
For example: "build-snapshot: my PR details".
Email notification informs you ... | diff --git a/carina-utils/src/main/java/com/qaprosoft/carina/core/foundation/utils/Configuration.java b/carina-utils/src/main/java/com/qaprosoft/carina/core/foundation/utils/Configuration.java
index cc3d5d5e4a..401941a12f 100644
--- a/carina-utils/src/main/java/com/qaprosoft/carina/core/foundation/utils/Configuration.j... | 2 | 1 | 1 | [{"id": "G0", "claim": "The LANGUAGE configuration parameter should not be (re-)added because language is out-of-date and must not be added again.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": "The declared TestNG group on the DesktopCapabilitiesTes... | null |
zebrunner__carina__1295 | zebrunner/carina | 1,295 | defect | d228987bfb07b70c97dd0d71a91cba18b85ee644 | d715b416ab133d9ea0ccf3059bf3edfdc726432c | added xml validation in api module | Xml validator for api module, which have 2 ways for comparison: strict and non-strict comparison, depending on whether order matters for us
Fixes #801 | diff --git a/carina-api/pom.xml b/carina-api/pom.xml
index 86a472568b..db75bf516c 100644
--- a/carina-api/pom.xml
+++ b/carina-api/pom.xml
@@ -107,6 +107,13 @@
</exclusions>
</dependency>
+ <!-- https://mvnrepository.com/artifact/org.xmlunit/xmlunit-assertj3 -->
+ <dependency>
+ <groupId>org.xmlunit</group... | 4 | 4 | 1 | [{"id": "G0", "claim": "Dereferencing getAnnotation(ContentType.class) without a null check will fail when the ContentType annotation is missing, and the branching should reuse the null-tolerant if() pattern from validateResponseAgainstSchema() so a missing annotation falls back to JSON validation for all cases.", "cat... | null |
zebrunner__carina__1307 | zebrunner/carina | 1,307 | defect | 4195e779906734ee5569723b04543557420e822b | fc58267ac9e33cfa94ed382db74b7fe3c1430f69 | added validation tests for api module | added validation tests for methods with xml content type and methods without content type | diff --git a/carina-api/pom.xml b/carina-api/pom.xml
index db75bf516c..9f2fc6de5e 100644
--- a/carina-api/pom.xml
+++ b/carina-api/pom.xml
@@ -114,6 +114,12 @@
<version>2.8.2</version>
</dependency>
+ <dependency>
+ <groupId>com.github.tomakehurst</groupId>
+ <artifactId>wiremock-jre8</artifactId>
+ <ve... | 2 | 2 | 2 | [{"id": "G0", "claim": "Carina 7 uses Java 11 while the newly added wiremock-jre8 dependency targets JRE 8, so a similar library built for JRE 11 should be used instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded mock server port 8... | null |
zebrunner__carina__1585 | zebrunner/carina | 1,585 | defect | 17aee5a6f67a9c7114281eec14718c3e4bf3aad4 | e5c7838b5cd0da76fffa76c3e27e99ee4b9be8f9 | fixed bug of splitting for methodPath url inside init method | <!--- Provide a general summary of your changes in the Title above -->
Fixed "Incorrect url for API call which is hard coded in api.properties #1564" ticket's bug.
<!--- Describe your changes in details -->
Found bug in the init method of AbstractApiMethod class. After not correct splitting methodPath field got inco... | diff --git a/carina-api/src/main/java/com/qaprosoft/carina/core/foundation/api/AbstractApiMethod.java b/carina-api/src/main/java/com/qaprosoft/carina/core/foundation/api/AbstractApiMethod.java
index 905d541262..bf17131c5f 100644
--- a/carina-api/src/main/java/com/qaprosoft/carina/core/foundation/api/AbstractApiMethod.j... | 1 | 1 | 0 | [{"id": "G0", "claim": "The methodPath splitting logic in init should be made more obvious by using StringUtils.substringAfter() instead of split, so the logic is clearer to understand.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zebrunner__carina__59 | zebrunner/carina | 59 | defect | 9a7bb174e7361e862155dcaa3c962921bcf64116 | d4ee0c1623eebc422d08d4d8e90252fa50bc5035 | Merge mfp version of carina to master | This merge will allow to migrate WEB tests to basic carina version built from master branch.
Next points make the difference:
- ability to exclude exception stacktrace for failed tests in emailable reports (by default they're included)
- in case of mark_test_with_bug=true (it means we use strategy when tests with bu... | diff --git a/src/main/java/com/qaprosoft/carina/core/foundation/listeners/AbstractTestListener.java b/src/main/java/com/qaprosoft/carina/core/foundation/listeners/AbstractTestListener.java
index 35b7a1c0ee..9d015d65c3 100644
--- a/src/main/java/com/qaprosoft/carina/core/foundation/listeners/AbstractTestListener.java
++... | 1 | 1 | 0 | [{"id": "G0", "claim": "In EmailReportGenerator.getTestRow, the bug-detection check should use contains(JIRA_TICKET) instead of startsWith(JIRA_TICKET) so failures whose description only contains the JIRA marker are still flagged as known-issue (bug) rows.", "category": "correctness", "verdict": "supported", "priority"... | null |
zebrunner__carina__738 | zebrunner/carina | 738 | defect | bd3ece96031ba5e7c70108d7794af31a210105b2 | 74b9ff09040f4903f3c3b5df8da0185082a4312e | build-snapshot: updated MethodOwner annotation | 1.removed secondaryOwner property
2.organized MethodOwner filtering by platform
3.updated testMethodOwner
| diff --git a/carina-core/src/main/java/com/qaprosoft/carina/core/foundation/filter/impl/OwnerFilter.java b/carina-core/src/main/java/com/qaprosoft/carina/core/foundation/filter/impl/OwnerFilter.java
index bb6f367cce..32d0581c14 100644
--- a/carina-core/src/main/java/com/qaprosoft/carina/core/foundation/filter/impl/Owne... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new platform-based ownership only covers Android and iOS owners; the reviewer asks how Web or API test owners are handled.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
zebrunner__carina__992 | zebrunner/carina | 992 | defect | 7a3fa396743357b0e59aa4da1c6c65afc8e1746b | 53e87a439d8e5a7fc4a964861de4d365c3020433 | #874 fixed Random string generation | <!--- Provide a general summary of your changes in the Title above -->
<!--- Describe your changes in details -->
<!--- To generate SNAPSHOT core build please assign "build-snapshot" label or type it in PR Title above.
For example: "build-snapshot: my PR details".
Email notification informs you ... | diff --git a/carina-api/src/main/java/com/qaprosoft/apitools/builder/GenerateProcessor.java b/carina-api/src/main/java/com/qaprosoft/apitools/builder/GenerateProcessor.java
index 6c8231dd51..2895e8fcc3 100644
--- a/carina-api/src/main/java/com/qaprosoft/apitools/builder/GenerateProcessor.java
+++ b/carina-api/src/main/... | 1 | 1 | 0 | [{"id": "G0", "claim": "The indentation of lines 64-65 creates an illusion of a mistake: out.put should be on the same level as the while operators.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zed-industries__zed__37953 | zed-industries/zed | 37,953 | defect | 0f9232a10df808f46f504f6cb57a34b4ad2d8947 | 3b92dc02758b554bbe1fc96b8d010e5e8ac9a6ab | editor: Unfold buffers with selections on edit + Remove selections on buffer fold | Closes #36376
Problem:
Multi-cursor edits/selections in multi-buffers view were jumping to incorrect locations after toggling buffer folds. When users created multiple selections across different buffers in a multi-buffer view (like project search results) and then folded one of the buffers, subsequent text insert... | diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index b731006a62990b..e107eb4947482d 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -3316,6 +3316,38 @@ impl Editor {
Subscription::join(other_subscription, this_subscription)
}
+ fn unfold_buffers_w... | 3 | 2 | 2 | [{"id": "G0", "claim": "Since a selection can span multiple buffers, all buffers that include the selection should be opened, maybe using buffer_ids_for_range, instead of only the buffer containing the selection's start anchor.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
zed-industries__zed__40245 | zed-industries/zed | 40,245 | defect | 175162af4f53e177511e83d24067c3bbc438c04d | 94af766eee7989003417e9c2265f1100880a60fa | Allow empty splits on panes | Draft as a base for continuing the discussion in #8008 : adds a `SplitOperation` enum to support bindings like `["pane::SplitLeft", {"operation": "Clear"}]`
To be discussed @MrSubidubi and others:
- Naming: Generally not happy with names yet and specifically `Empty` is unclear, e.g., what does this mean for termi... | diff --git a/crates/collab/src/tests/integration_tests.rs b/crates/collab/src/tests/integration_tests.rs
index a4c8dc0e5b7e5e..9f8a845d5aa66b 100644
--- a/crates/collab/src/tests/integration_tests.rs
+++ b/crates/collab/src/tests/integration_tests.rs
@@ -6746,7 +6746,11 @@ async fn test_preview_tabs(cx: &mut TestAppCon... | 10 | 10 | 2 | [{"id": "G0", "claim": "Rename the new `SplitBehavior` enum and its `behavior` fields to `SplitOperation`/`operation`, as the maintainer suggested, to make the naming clearer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Keep the per-variant s... | null |
zed-industries__zed__40794 | zed-industries/zed | 40,794 | defect | 0be70e24d66a5dd2d9ac58183fdd848b885f355f | 8bd0c845d523253c002d765e6a80817b6b0ca84f | markdown: Don't adjust indentation when inserting with multiple cursors | Closes #40757
## Summary
This PR addresses an issue where Zed incorrectly adjusts the indentation of Markdown lists when inserting text using multiple cursors. Currently:
- Editing individual lines with a single cursor behaves correctly (no unwanted indentation changes).
- Using multiple cursors, Zed automati... | diff --git a/Cargo.lock b/Cargo.lock
index 480358bff14284..b3d3be70d44186 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5385,6 +5385,7 @@ dependencies = [
"tree-sitter-bash",
"tree-sitter-c",
"tree-sitter-html",
+ "tree-sitter-md",
"tree-sitter-python",
"tree-sitter-rust",
"tree-sitter-typescript",
diff --gi... | 1 | 1 | 1 | [{"id": "G0", "claim": "Changing `handle_input` to disable autoindent for multiple selections is the wrong approach to fix the bug, since it might affect a lot of languages; instead fix it at the language level, e.g. by defining indent rules (such as `increase_indent_pattern`) for Markdown so `handle_input` is not touc... | null |
zed-industries__zed__41204 | zed-industries/zed | 41,204 | defect | 38e1e3f4988bf23070982bfffbdb7c78e1be9547 | 71a173d537ba7df316539b5240cbf860cedaf658 | editor: Use a single newline between each copied line from a multi-cursor selection | Closes #40923
Release Notes:
- Fixed the amount of newlines between copied lines from a multi-cursor selection of multiple full-line copies.
---
https://github.com/user-attachments/assets/ab7474d6-0e49-4c29-9700-7692cd019cef
| diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index d6779d8a328b6b..0329763d03122b 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -12520,7 +12520,7 @@ impl Editor {
for trimmed_range in trimmed_selections {
if is_first {
... | 5 | 5 | 2 | [{"id": "G0", "claim": "The editor crashes when pasting into multiple cursors after copying multiple entire lines with multi-cursors, perhaps because the do_paste handler expects the newlines made conditional by this change.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, ... | null |
zed-industries__zed__41900 | zed-industries/zed | 41,900 | defect | 8d15ec7f9944e206e7cc25b5c1b2b15e0db22a6c | d13617d69bfff2c7f948ff355713713277f1b866 | git: Use correct file mode when staging | Closes #28667
Release Notes:
- I have implemented file mode detection using `new_smol_command` & if its empty defaulting to 100644 as previously, however I noticed in function `load_committed_text`
```
fn load_committed_text(&self, path: RepoPath) -> BoxFuture<'_, Option<String>> {
let repo = self.r... | diff --git a/crates/fs/src/fake_git_repo.rs b/crates/fs/src/fake_git_repo.rs
index 81dbd28cd9de8e..822bc6ed9021fa 100644
--- a/crates/fs/src/fake_git_repo.rs
+++ b/crates/fs/src/fake_git_repo.rs
@@ -138,6 +138,7 @@ impl GitRepository for FakeGitRepository {
path: RepoPath,
content: Option<String>,
... | 5 | 5 | 3 | [{"id": "G0", "claim": "The mode should be taken from the working copy of the file rather than from HEAD/index (via an is_executable flag on fs::Metadata, using 100755 if executable and 100644 otherwise) so that staging a hunk works for a file that does not exist in HEAD.", "category": "correctness", "verdict": "suppor... | null |
zed-industries__zed__42082 | zed-industries/zed | 42,082 | defect | 359160c8b15a276d11af5d269d9fb1f0ebcd1765 | 2333c0b678b2354084649d91c8b42b5d313a9f6b | git: Add support for repository excludes file | Closes #4824
Release Notes:
- Added support for Git repository excludes file `.git/info/exclude`
| diff --git a/crates/git/src/git.rs b/crates/git/src/git.rs
index 50a1e1234ba3ca..bff02dd1cb26a9 100644
--- a/crates/git/src/git.rs
+++ b/crates/git/src/git.rs
@@ -23,6 +23,7 @@ pub const FSMONITOR_DAEMON: &str = "fsmonitor--daemon";
pub const LFS_DIR: &str = "lfs";
pub const COMMIT_MESSAGE: &str = "COMMIT_EDITMSG";
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The path computation in the RepoExclude arm of is_abs_path_ignored can be simplified away by just using abs_path, since ignore.matched expects an absolute path.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Changes to .git/info/e... | null |
zed-industries__zed__42723 | zed-industries/zed | 42,723 | defect | c5ab1d46799cc4730b11f9d4dca25c30eae03a23 | 77cd597475455d1d4b7a09042827f0603c2678d6 | Fix remote server completions not being queried from all LSP servers | Closes #41294
Release Notes:
- Fixed remote LSPs not being queried | diff --git a/crates/project/src/lsp_command.rs b/crates/project/src/lsp_command.rs
index 89b3315272b137..adea507f00eda7 100644
--- a/crates/project/src/lsp_command.rs
+++ b/crates/project/src/lsp_command.rs
@@ -218,6 +218,7 @@ pub(crate) struct GetHover {
pub(crate) struct GetCompletions {
pub position: PointUtf1... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test covering this change as well — one in remote_editing_tests::test_remote_lsp for the remote path and one in collab::editor_tests::test_collaborating_with_completion for the collaboration path, since it is mostly the same code path but collab-mediated, and it would be good to check that... | null |
zed-industries__zed__43104 | zed-industries/zed | 43,104 | defect | 951132fc13dca54ce6e8c3e8114b885916099a00 | 2042ce45d017277d18f624cb9f13c3521253e759 | Add autocomplete for initialization_options | Closes #18287
Release Notes:
- Added autocomplete for lsp initialization_options
## Description
This MR adds the following code-changes:
- `initialization_options_schema` to the `LspAdapter` to get JSON Schema's from the language server
- Adds a post-processing step to inject schema request paths into the ... | diff --git a/crates/json_schema_store/src/json_schema_store.rs b/crates/json_schema_store/src/json_schema_store.rs
index b44efb8b1b1358..c86a5ab565b12d 100644
--- a/crates/json_schema_store/src/json_schema_store.rs
+++ b/crates/json_schema_store/src/json_schema_store.rs
@@ -120,12 +120,25 @@ pub fn resolve_schema_reque... | 4 | 3 | 2 | [{"id": "G0", "claim": "Rather than injecting the LSP adapter schemas into the settings JSON schema, rely on the json_schema_store: the LSP settings schema should be a map of known LSP names to {\"$ref\": \"zed://schemas/settings/lsp/{lsp_name}\"} so the JSON language server requests each schema on demand.", "category"... | null |
zed-industries__zed__43362 | zed-industries/zed | 43,362 | defect | 1f03fc62db65a3f81cec3d84cf8b1237cf5d3d79 | 2ae527694cfca227930b368ed1cff7e4d23de9f4 | editor: Fix copy file actions not working in remote environments | Closes #42500
Release Notes:
- Fixed all three editor actions not working in remote environments
- `editor: copy file name`
- `editor: copy file location`
- `editor: copy file name without extension`
Here's the before/after:
https://github.com/user-attachments/assets/bfb03e99-2e1a-47a2-bd26-280... | diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index e8d0011a98d412..7b5c766a7fb29f 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -20230,18 +20230,20 @@ impl Editor {
_: &mut Window,
cx: &mut Context<Self>,
) {
- if let Some(file) = s... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new remote copy file actions should be covered by an integration test (in collab/src/editor_tests.rs) that initializes a shared project, opens an editor for cx_b, runs each copy action and asserts the pasted clipboard content.", "category": "testing", "verdict": "supported", "priority": "P1"... | null |
zed-industries__zed__43521 | zed-industries/zed | 43,521 | defect | 56a2f9cfcf0c6a3c38f596b58002953763cd890f | 23c8629bf26d01fc450b182e357567fb3487ea4d | editor: Fix vertical scroll margin not accounting for file header height | Closes #43178
Release Notes:
- Fixed vertical scroll margin not accounting for file header height
Here's the before/after:
With `{ "vertical_scroll_margin": 0 }` in `~/.config/zed/settings.json`
https://github.com/user-attachments/assets/418c6d7f-de0f-4da6-a038-69927b1b8b88
| diff --git a/crates/editor/src/scroll/actions.rs b/crates/editor/src/scroll/actions.rs
index 3b2ed55df72448..5a1c849b2438fe 100644
--- a/crates/editor/src/scroll/actions.rs
+++ b/crates/editor/src/scroll/actions.rs
@@ -71,14 +71,20 @@ impl Editor {
window: &mut Window,
cx: &mut Context<Editor>,
)... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test covering the vertical-scroll-margin fix so it does not regress when other bugs in this area are fixed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
zed-industries__zed__43853 | zed-industries/zed | 43,853 | defect | ca6e64d45180f0c7c6d77fd8f5e97941ba78ef95 | 6813007dee95fa34a644aff6539b5cb36cbf242b | language: Fix auto-indentation for Python code blocks in Markdown | Closes #43722
Release Notes:
- Fixed an issue where auto-indentation didn’t work correctly for Python code blocks in Markdown. | diff --git a/crates/language/src/buffer.rs b/crates/language/src/buffer.rs
index 7d713d515b2ae9..db9edc49af935a 100644
--- a/crates/language/src/buffer.rs
+++ b/crates/language/src/buffer.rs
@@ -3241,14 +3241,23 @@ impl BufferSnapshot {
Point::new(prev_non_blank_row.unwrap_or(row_range.start), 0)
... | 3 | 3 | 1 | [{"id": "G0", "claim": "Use `language_at` instead of `language_scope_at` to determine the row language, since the scope-based lookup is more sophisticated than needed here.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `indent` field on `Injecti... | null |
zed-industries__zed__45621 | zed-industries/zed | 45,621 | defect | cff3ac6f93f506330034652f0d2389591bfb45a0 | 85338d305aec02bf76b7d250899f0b9c94a3bf68 | tasks: Show error for unknown `ZED_` variables | Closes #23275
This makes resolving task variables a Result rather than an Option, and shows an error when tasks are not loaded because of unresolvable "special" variables in user defined tasks. Extension/Language tasks will still silently be omitted, as for these an unresolved capture-variable usually means the task... | diff --git a/crates/debugger_ui/src/session/running.rs b/crates/debugger_ui/src/session/running.rs
index 422207d3cbf488..8cf364539cca5c 100644
--- a/crates/debugger_ui/src/session/running.rs
+++ b/crates/debugger_ui/src/session/running.rs
@@ -1056,7 +1056,7 @@ impl RunningState {
}
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Validating `ZED_` variables at task resolution time only surfaces invalid variables when the user opens the task picker and would run task resolution on the UI thread, so validation should happen when the file is saved, immediately showing the error while still loading valid tasks in the same fi... | null |
zed-industries__zed__45764 | zed-industries/zed | 45,764 | defect | 2cad6c8ef1bc4b3d92c6f787339d469e7817ee3b | 528d6510f15d80923775ecee03b533e70475f19e | Enable edit prediction and Copilot for untitled buffers | Closes [#45631](https://github.com/zed-industries/zed/issues/45631)
Recording:
https://github.com/user-attachments/assets/a5143eb4-fae3-42a7-9d64-fb7c42ee97c2
Release Notes:
- copilot: Edit predictions now work in temporary files
| diff --git a/crates/edit_prediction/src/zeta2.rs b/crates/edit_prediction/src/zeta2.rs
index 9706e2b9ecd03f..15846cb9632ca6 100644
--- a/crates/edit_prediction/src/zeta2.rs
+++ b/crates/edit_prediction/src/zeta2.rs
@@ -6,7 +6,7 @@ use crate::{
DebugEvent, EDIT_PREDICTIONS_MODEL_ID, EditPredictionFinishedDebugEvent... | 2 | 1 | 0 | [{"id": "G0", "claim": "With multiple untitled buffers they would all share the same constant 'untitled' excerpt path, so the fallback should generate unique per-buffer paths (e.g. via snapshot.remote_id()).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "cla... | null |
zed-industries__zed__46745 | zed-industries/zed | 46,745 | defect | 2b6e935b09e4367557157f09c659b87089d70b57 | 3c713ff0d6a050b895f6f24d9fa36f10ab7ad725 | Make auto-signature help respect popover delay | Closes #46191
Release Notes:
- Make the auto signature popover — `"auto_signature_help": true` — respect `hover_popover_delay`.
| diff --git a/crates/editor/src/signature_help.rs b/crates/editor/src/signature_help.rs
index e88ede2909b408..002beac3717eb6 100644
--- a/crates/editor/src/signature_help.rs
+++ b/crates/editor/src/signature_help.rs
@@ -170,6 +170,8 @@ impl Editor {
return;
}
+ self.signature_help_state.ta... | 3 | 3 | 2 | [{"id": "G0", "claim": "Remove the useless comments that repeat the code below verbatim.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test for this, using the signature help tests in editor_tests.rs as an example.", "category": "testing"... | null |
zed-industries__zed__51389 | zed-industries/zed | 51,389 | defect | 3183c04515a489e394dca8a254304e96dacec62a | 7573b73a5021e880bb8cdb977a9bbb43d36fa9e0 | edit_prediction: Expose `allow_data_collection` in settings | Closes #48394
Moves the data collection preference for Zed's Edit Predictions out of the internal KV store and into `settings.json` as a proper `allow_data_collection` setting under `edit_predictions`.
**Migration:** Existing users' choices are preserved. When `allow_data_collection` is absent from `settings.json... | diff --git a/assets/settings/default.json b/assets/settings/default.json
index 6a973314fc36b3..3befd3a8df8f19 100644
--- a/assets/settings/default.json
+++ b/assets/settings/default.json
@@ -1600,6 +1600,10 @@
// Whether edit predictions are enabled when editing text threads in the agent panel.
// This settin... | 6 | 6 | 3 | [{"id": "G0", "claim": "The setting should not be kept as `Option<bool>` on the resolved type; instead the content type should stay `Option<T>` and a three-value enum (Default/No/Yes) should be added, with an entry in default.json for the default value.", "category": "design", "verdict": "supported", "priority": "P1", ... | null |
zed-industries__zed__51536 | zed-industries/zed | 51,536 | defect | 51fc26da220e80873d05afd0a5d4fb43f4b6cee3 | a269360b7473dcb75b6edea35250efd961b5dcb3 | Respect .git/info/exclude in secondary worktrees | Closes #50880
When a git worktree linked via a `.git` file (e.g. `gitdir: /repo/.git/worktrees/my-worktree`) was opened in Zed, entries in `.git/info/exclude` were not respected. This is now fixed.
Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or scr... | diff --git a/crates/worktree/src/worktree.rs b/crates/worktree/src/worktree.rs
index 690ba6887c6fc2..db54eb774fe37a 100644
--- a/crates/worktree/src/worktree.rs
+++ b/crates/worktree/src/worktree.rs
@@ -5576,7 +5576,9 @@ async fn discover_ancestor_git_repo(
};
}
- let repo_exc... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the stray space before the parameter list in the new test's signature: `async fn test_repo_exclude_in_worktree( executor: BackgroundExecutor, cx: &mut TestAppContext) {` should be `async fn test_repo_exclude_in_worktree(executor: BackgroundExecutor, cx: &mut TestAppContext) {`.", "categor... | null |
zed-industries__zed__52907 | zed-industries/zed | 52,907 | defect | bf79e32622fddd2a6fc126610b70903be3e35f59 | f93047740fab3c7eefa733574429ac9c8012d51d | Fix diagnostics in editor control enabling by itself | ### Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments ← N/A, no unsafe blocks
- [x] The content is consistent with the UI/UX checklist
- [ ] Tests cover the new/changed behavior ← no existing tests; none added
- [... | diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 76ec95928dc729..3cf2c444612831 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -1149,6 +1149,7 @@ pub struct Editor {
select_syntax_node_history: SelectSyntaxNodeHistory,
ime_transaction: Option<Transact... | 1 | 1 | 1 | [{"id": "G0", "claim": "toggle_diagnostics should change the value of the already existing `diagnostics_enabled` field instead of adding a duplicate `diagnostics_manually_toggled` field.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
zed-industries__zed__54534 | zed-industries/zed | 54,534 | defect | 5920187e3a9760367708d84b46b8c8963cef6637 | c80d647f812326dd083d1aee10bae424b426ffe1 | Wait for worktree scan to complete before starting search | When starting a search on a project that is in the middle of a scan, we used to miss results in files that had not yet been scanned.
This change makes the search wait for the scan to complete.
Closes #9858
Release Notes:
- Fixed incomplete search results when the project scan is incomplete | diff --git a/crates/project/src/project_search.rs b/crates/project/src/project_search.rs
index 921ad7e26a454d..a1914670162163 100644
--- a/crates/project/src/project_search.rs
+++ b/crates/project/src/project_search.rs
@@ -221,6 +221,7 @@ impl Search {
query.clone(),
... | 3 | 2 | 0 | [{"id": "G0", "claim": "Collapse the two empty match arms into one: `SearchResult::LimitReached | SearchResult::WaitingForScan => {}`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use a more generic heading like \"Loading project...\" instead ... | null |
zed-industries__zed__54753 | zed-industries/zed | 54,753 | defect | 9a1b538fa01f9c43274d2cfb9ad5ea7d8074ecc9 | d2b35acbebd1b9271fb979da6e586f602cd8e9b3 | project_search: Fix project search status text and refactor search state | This change fixes a small bug where we were showing "Loading project..." even when in fact we had already started the search.
It also refactors three booleans in the `SearchState` enum, so that it's harder to make similar mistakes in the future.
Release Notes:
- N/A
| diff --git a/crates/agent/src/tools/grep_tool.rs b/crates/agent/src/tools/grep_tool.rs
index 9ccebd80e85e48..485084a406e3f8 100644
--- a/crates/agent/src/tools/grep_tool.rs
+++ b/crates/agent/src/tools/grep_tool.rs
@@ -196,7 +196,7 @@ impl AgentTool for GrepTool {
has_more_matches = true;
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The `project_search.search_state = SearchState::Running(SearchActivity::Searching)` assignment in the excerpts-clearing block seems redundant, since the same state was just set at the top of the search function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": ... | null |
zeebo__blake3__18 | zeebo/blake3 | 18 | defect | 668d7573864d271cccbd78e0c77e70bdb2bebcb3 | fe42bf5ede905234a99060246520ce7fd0d7aef8 | Add Clone method | ## What
This adds a simple `.Clone()` method to the `Hasher` struct. This returns a new `Hasher` with the same internal state. This allows users to easily write out new data to a given hash without mutating it.
## Why
This is extremely useful when using BLAKE3 as an XOF. A common pattern is to run a protocol, ... | diff --git a/api.go b/api.go
index c093b71..d5c097a 100644
--- a/api.go
+++ b/api.go
@@ -102,6 +102,13 @@ func (h *Hasher) Reset() {
h.h.reset()
}
+// Clone returns a new Hasher with the same internal state.
+//
+// Modifying the resulting Hasher will not modify the original Hasher, and vice versa.
+func (h *Hashe... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `clone` methods on `hasher` and `cvstack` are unnecessary because all fields are value types, so `Clone` can simply be implemented as a direct struct copy like `return &Hasher{size: h.size, h: h.h}`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
zeek__spicy__1256 | zeek/spicy | 1,256 | defect | 0a4abacb3e71c2faaf93a4345942613bc5ea7e99 | 5c64aca46c79f253fcd298b14ba277343273d472 | Coercion and type fixes | This ended up fixing three issues that were all related, one per commit. | diff --git a/hilti/runtime/include/types/address.h b/hilti/runtime/include/types/address.h
index 4817aa4ca8..6d28d461bf 100644
--- a/hilti/runtime/include/types/address.h
+++ b/hilti/runtime/include/types/address.h
@@ -85,6 +85,7 @@ class Address {
bool operator==(const Address& other) const;
bool operator!... | 10 | 8 | 3 | [{"id": "G0", "claim": "The new struct.cc should include its header in quotes so it always sorts before any other headers included later.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new struct.cc should drop the redundant `using namespace h... | null |
zeek__spicy__1314 | zeek/spicy | 1,314 | defect | 5fc6172895ab7d288362069867ec3b2fb1dea588 | 80684aa5910e83e018a9a64796c53441d5936563 | Have &cxxname automatically prefix IDs with `::` | Closes #1285. | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b26a04e7cb..08f65fdcd8 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -22,13 +22,13 @@ repos:
pass_filenames: false
- repo: https://github.com/pre-commit/mirrors-clang-format
- rev: 'v13.0.1'
+ rev: 'v15.0.4'
hooks:... | 3 | 3 | 0 | [{"id": "G0", "claim": "The doc comment for the new `hilti::rt::debug::print` wrapper should not call it a \"macro wrapper\" since it is a plain function, so the wording should be reworded.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `o... | null |
zeek__spicy__1374 | zeek/spicy | 1,374 | defect | 5ed26bb0a46ff49b2e6e629f14cd476255b81d8a | 317ae993c41e36f371e410c7a96e84bca39e679b | Optimizing stream performance | - Revert "Fix pathological performance for `_haveEod` on highly chunked streams."
- Apply alternative fix for #1345.
- Shortcut some offset computations.
- Simplify extract methods.
| diff --git a/hilti/runtime/include/types/bytes.h b/hilti/runtime/include/types/bytes.h
index 20d78fa044..a7e982e3cc 100644
--- a/hilti/runtime/include/types/bytes.h
+++ b/hilti/runtime/include/types/bytes.h
@@ -301,17 +301,16 @@ class Bytes : protected std::string {
/**
* Extracts a fixed number of bytes fro... | 5 | 2 | 1 | [{"id": "G0", "claim": "Expand the terse comment on the `hint_prev = _tail` shortcut in both Chain::findChunk overloads to explain why a null hint_prev means the last chunk.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new View::endOffset sh... | null |
zeek__spicy__1437 | zeek/spicy | 1,437 | defect | 10620ee98c46d70e4cd44bdfbd4d3f6547816593 | 1c84ba39f1deeabf802acae98c36f6075e4a060c | Fix stdlib exception leak in `bytes::sub` | Closes #1436. | diff --git a/hilti/runtime/include/types/bytes.h b/hilti/runtime/include/types/bytes.h
index e7133c555c..a5e0baa080 100644
--- a/hilti/runtime/include/types/bytes.h
+++ b/hilti/runtime/include/types/bytes.h
@@ -4,10 +4,12 @@
#include <cstring>
#include <memory>
+#include <stdexcept>
#include <string>
#include <tu... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new out-of-range path in `Bytes::sub(Offset, Offset)` should throw HILTI's own `OutOfRange` exception instead of `InvalidArgument`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zeek__spicy__1631 | zeek/spicy | 1,631 | defect | 94b98631ae2537b45177d4f348b8bd5c359fa18c | 8df81a0685ee2adce2b7b10d2e6598cb2c08cb27 | Avoid potentially inefficient data access in `View::extract`. | While we already had a fast path to extract data out of `View`s consisting of a single chunk we still would use a potentially inefficient approach when extracting from `View`s over multiple chunks.
This patch uses the same optimized handling for both cases.
Closes #1628. | diff --git a/hilti/runtime/include/types/stream.h b/hilti/runtime/include/types/stream.h
index 8cc0740042..6dc49ca746 100644
--- a/hilti/runtime/include/types/stream.h
+++ b/hilti/runtime/include/types/stream.h
@@ -837,6 +837,9 @@ class UnsafeConstIterator {
}
void _increment(const integer::safe<uint64_t>& ... | 4 | 2 | 1 | [{"id": "G0", "claim": "The rewrite should use unsafeBegin() instead of begin(), since the iterator is only used unsafely.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The loop should use p.chunk() instead of chain->findChunk(), and gaps in the chai... | null |
zeek__spicy__1755 | zeek/spicy | 1,755 | defect | 83bc845b8daf82fa22b783261d4c339627d55c09 | 202246f58e7a36e33dfce29c94c40ce7145793d4 | Add a couple new methods to data types | - **Add `get_optional` method to maps.**
- **Add `to_real` method to `bytes`.**
- **Update some debug baselines.**
| diff --git a/doc/autogen/types/bytes.rst b/doc/autogen/types/bytes.rst
index 6c10d218e6..5da19e1dbc 100644
--- a/doc/autogen/types/bytes.rst
+++ b/doc/autogen/types/bytes.rst
@@ -96,6 +96,13 @@
Interprets the ``bytes`` as representing an binary number encoded with
the given byte order, and converts it into si... | 8 | 7 | 3 | [{"id": "G0", "claim": "Add unit test coverage for the new Map::get_optional, e.g. the given TEST_CASE covering a present key, a missing key, and a Map with optional values.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Consider naming the new map meth... | null |
zeek__spicy__1821 | zeek/spicy | 1,821 | defect | b9b7e50b43ebe6f4cb9f4738f20893e3cf8e077a | 75ddd931dbb18a5d7d88c4d5e48a49ce446dac97 | to_int() ubsan fixes | * Reject empty byte ranges for `to_uint(ByteOrder)`.
* Fix shifting of 32bit value, causing `to_int(ByteOrder)` to return bogus values.
| diff --git a/hilti/runtime/src/tests/bytes.cc b/hilti/runtime/src/tests/bytes.cc
index 8bcd8512ef..4641b4b7a3 100644
--- a/hilti/runtime/src/tests/bytes.cc
+++ b/hilti/runtime/src/tests/bytes.cc
@@ -366,6 +366,7 @@ TEST_CASE("toInt") {
CHECK_EQ("100"_b.toInt(2), 4);
CHECK_EQ("-100"_b.toInt(2), -4);
... | 4 | 4 | 2 | [{"id": "G0", "claim": "The `CHECK_THROWS_WITH_AS(\"\"_b.toInt(16), ...)` line added to the toUInt test is duplicated from the toInt test and should be dropped from the toUInt test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The throws in the binary... | null |
zeek__spicy__1885 | zeek/spicy | 1,885 | defect | fdb8faf2382666e014168cc065c53e4ff66c8ea0 | 510cbd42620eeeba1589d12369d946681acbd5d7 | Associate source code locations with current fiber instead of current thread. | This fixes potential location mix-ups when switching between fibers.
Note that we still need a context-wide fallback location as well
because we're not always running inside a fiber.
I ran a performance comparison before/after and couldn't measure a
difference. Looks like using TLS storage was a case of premature
opti... | diff --git a/hilti/runtime/include/context.h b/hilti/runtime/include/context.h
index a42b81386e..7f695e0913 100644
--- a/hilti/runtime/include/context.h
+++ b/hilti/runtime/include/context.h
@@ -44,7 +44,7 @@ struct Context {
*/
resumable::Handle* resumable = nullptr;
- /** Context-specific state for f... | 1 | 1 | 0 | [{"id": "G0", "claim": "The setLocation doc comment should have a blank comment line between the description and the @param tag (apply the reviewer's suggestion block).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
zeek__spicy__1946 | zeek/spicy | 1,946 | defect | 2d0ce5308073f973152149edcbde276d9f22a7d0 | 40b3a7011af8f5c0cd44e612aa36677f0d31c7c5 | Add `bytes` decoding from UTF-16 | Closes #1788. | diff --git a/.gitmodules b/.gitmodules
index b85a7cf220..dc10059cc1 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -37,3 +37,6 @@
[submodule "3rdparty/any"]
path = 3rdparty/any
url = https://github.com/thelink2012/any.git
+[submodule "3rdparty/utfcpp"]
+ path = 3rdparty/utfcpp
+ url = https://github.com/nemtrif/utf... | 9 | 8 | 5 | [{"id": "G0", "claim": "The `Charset` enums in `hilti.hlt` and `spicy.spicy` are missing `UTF16BE`, so UTF-16 big-endian cannot be selected from HILTI or Spicy code.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Catching the generic `utf8::exceptio... | null |
zeek__spicy__2104 | zeek/spicy | 2,104 | defect | 563000bd9f76845f497deba4676c5bd7395ade13 | c0deba12b29842c022172db3ee73dddc8e6a1d37 | Random cleanup | I got enough little things randomly accumulating that figured I'd get it off my plate
The `auto op` change was caught by local warnings, but I thought that would've been fixed by #2037
And a weird one here was the copyright change - I thought that was fixed by e8200c9 but it skipped that file
tl;dr: the robots... | diff --git a/hilti/toolchain/include/ast/operator-registry.h b/hilti/toolchain/include/ast/operator-registry.h
index deff03313e..b532296395 100644
--- a/hilti/toolchain/include/ast/operator-registry.h
+++ b/hilti/toolchain/include/ast/operator-registry.h
@@ -120,7 +120,7 @@ class Registry {
* operator available under... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request fixed only some copyright headers, and the reviewer asks to update tests/Scripts/license-header.py to check the new format and fix the remaining files that still have old-style headers.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}... | null |
zeek__spicy__2105 | zeek/spicy | 2,105 | defect | 563000bd9f76845f497deba4676c5bd7395ade13 | a83371e4be08fff9153ec79fba302019ab5f16d9 | Allow registering multiple modules in the same scope. | In 2ac6fa1 we switched to dynamically
injecting scopes for libraries. This assumed that
`Library::currentScope` was called exactly once per collection of
inputs, but this is not the case if there are multiple modules in such a
collection which each need to register. `Library::currentScope` was
called once per modu... | diff --git a/hilti/runtime/include/library.h b/hilti/runtime/include/library.h
index ee87ffec90..4e66048f6a 100644
--- a/hilti/runtime/include/library.h
+++ b/hilti/runtime/include/library.h
@@ -116,6 +116,15 @@ class Library {
*/
static uint64_t currentScope();
+ /**
+ * Detect whether we are curre... | 4 | 3 | 2 | [{"id": "G0", "claim": "The scope value should not be a hash in one case and a meaningful sequential value in the other; skip this rework of currentScope.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Centralize the scope-setting logic in a runtime Libr... | null |
zeek__spicy__2220 | zeek/spicy | 2,220 | defect | 7d135aeb1b49d8aac4381a73e002442e0f792e13 | ff0af08020e3541a6994442cf97905b2a82afc15 | Support coercion from empty list to struct. | - **Support coercion from empty list to struct.**
- **Fix ambiguous C++ constructors for generated struct.**
Closes https://github.com/zeek/spicy/issues/2197. | diff --git a/hilti/runtime/include/types/struct.h b/hilti/runtime/include/types/struct.h
index f01315bf0d..eb19854ec4 100644
--- a/hilti/runtime/include/types/struct.h
+++ b/hilti/runtime/include/types/struct.h
@@ -18,6 +18,18 @@ struct hasParameters {};
namespace struct_ {
+/**
+ * Tag for struct constructors rec... | 6 | 5 | 1 | [{"id": "G0", "claim": "Instead of the special tag that gets passed around, the struct constructors could just be made `explicit` more often, which seems to fix the C++ error without the extra tagging complexity.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
zeek__spicy__224 | zeek/spicy | 224 | defect | dd02405a0be662fd4ef3689326f0da201b29963c | de164f5933c34f4d577a8ccd785d286b72fba13e | Fix generation of escaped C++ string literals. | Turns out we can't just encode non-printable characters as \xNN
because C++ compilers look for more than 2 digits when decoding
"\x...". Now using octal \NNN instead, that's always 3 digits.
Closes #217. | diff --git a/hilti/include/base/util.h b/hilti/include/base/util.h
index 69452e6425..d424ca4e22 100644
--- a/hilti/include/base/util.h
+++ b/hilti/include/base/util.h
@@ -408,6 +408,15 @@ using hilti::rt::escapeBytes;
using hilti::rt::escapeUTF8;
using hilti::rt::expandEscapes;
+/**
+ * Wrapper for `escapeBytes` th... | 3 | 2 | 0 | [{"id": "G0", "claim": "The \"(without the quotes)\" note in the new escapeBytesForCxx @return documentation is confusing and should be dropped, leaving \"@return escaped std::string\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new escape... | null |
zeek__spicy__2281 | zeek/spicy | 2,281 | defect | 1bc708e2c56e37a78321ad1f5f4850070dc31fbd | ae6c4cc5e99301e06fcdf0e97bb801ec6113f84c | Add compile-time validation of regular expressions. | So far we would catch pattern errors only at runtime. Now we report
the following at compile time if it can be statically determined:
- Patterns that don't compile (e.g., due to syntax errors)
- Use of `$N` referring to a capture group that exceeds the number a pattern defines.
- Use of `$N` with a regular expres... | diff --git a/3rdparty/justrx b/3rdparty/justrx
index 79e5545c94..90cd1104a7 160000
--- a/3rdparty/justrx
+++ b/3rdparty/justrx
@@ -1 +1 @@
-Subproject commit 79e5545c946aa0a7e2e0cbfc8e087ce396da9c34
+Subproject commit 90cd1104a797972e6ce984c614ab318308da9326
diff --git a/hilti/runtime/include/types/regexp.h b/hilti/run... | 1 | 1 | 0 | [{"id": "G0", "claim": "The plural suffix in the capture-group-index error message should also add the 's' when the defined number of groups is 0, i.e. use (*captures != 1) instead of (*captures > 1).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zeek__spicy__2293 | zeek/spicy | 2,293 | defect | be5112da2077a0b7872b8d793032e2d6a2c899ac | 2aafc09b15bb0100a9f3d6a1f2ec8b8000747fbf | Move further string usages over to our custom class. | Fine-tuning for the Zeek integration.
- **Make our strings hashable.**
- **Move further string usages over to our custom class.**
| diff --git a/hilti/runtime/include/types/port.h b/hilti/runtime/include/types/port.h
index 65a5d9141c..9898ed0a00 100644
--- a/hilti/runtime/include/types/port.h
+++ b/hilti/runtime/include/types/port.h
@@ -6,6 +6,7 @@
#include <hilti/rt/extension-points.h>
#include <hilti/rt/types/address.h>
+#include <hilti/rt/ty... | 4 | 1 | 0 | [{"id": "G0", "claim": "In the adl to_string overloads (Port, MIMEType, ParserPort) the explicit round-trip through hilti::rt::String and back is unnecessary and the code should keep the direct conversion, as suggested.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"i... | null |
zeek__spicy__356 | zeek/spicy | 356 | defect | d4a38234d7bd9b5a288b1db630dbc6b7148d3b1b | 7f53ce464af4843d590dd768ffc93904106b8731 | Fix binary regex matching | We have some signed vs unsigned mismatches in JRX. | diff --git a/3rdparty/justrx/src/ccl.c b/3rdparty/justrx/src/ccl.c
index 2a959154d9..0e35f8ee5b 100644
--- a/3rdparty/justrx/src/ccl.c
+++ b/3rdparty/justrx/src/ccl.c
@@ -483,9 +483,9 @@ void ccl_print(jrx_ccl* ccl, FILE* file)
else {
set_for_each(char_range, ccl->ranges, r)
{
- fprint... | 6 | 5 | 0 | [{"id": "G0", "claim": "The debug fprintf should also fix the format specifiers for `ms->state` and `assertions`, which are unsigned but still printed with `%d`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment explaining what the manual... | null |
zeek__spicy__491 | zeek/spicy | 491 | defect | abd410f6cbb3398d4f1c1890871cb2ccdf3694db | 5862988d4138a4f9610d3331163c01505decf621 | Stream reimplementation | First 3 commits are just small stuff that came up during development. Final patch is the main change. | diff --git a/hilti/CMakeLists.txt b/hilti/CMakeLists.txt
index dfcb016c78..aa1c321368 100644
--- a/hilti/CMakeLists.txt
+++ b/hilti/CMakeLists.txt
@@ -299,6 +299,7 @@ add_executable(hilti-rt-tests
src/rt/tests/integer.cc
src/rt/tests/interval.cc
src/rt/tests/iterator.cc
+... | 24 | 11 | 2 | [{"id": "G0", "claim": "Could we add more IntrusivePtr tests (e.g. copy-construction AdoptRef from NewRef and vice versa, copy construction with conversion-compatible but different wrapped types to catch slicing, and a check of cast_intrusive)?", "category": "testing", "verdict": "supported", "priority": "P2", "scope":... | null |
zeek__spicy__725 | zeek/spicy | 725 | defect | 42c63b6cf71ff1c2cc053618cd4ff5869f81a5a8 | 0a6d090ca67f03bd100e5a115a55005fc88bcea2 | Add support for shared unit contexts with lifetime determined by host application. | This introduces a new unit property for public unit types:
%context = <type>;
The unit's new `context()` method will then return a value of type
`<type>&` (i.e, a reference to an instance of the given type). This will
be initialized with a reference to a default-constructed instance of the
type.
What ma... | diff --git a/doc/autogen/types/unit.rst b/doc/autogen/types/unit.rst
index c847016505..78e876e013 100644
--- a/doc/autogen/types/unit.rst
+++ b/doc/autogen/types/unit.rst
@@ -16,6 +16,11 @@
Filters can be connected only before a unit's parsing begins. The
latest possible point is from inside the target unit's... | 14 | 7 | 2 | [{"id": "G0", "claim": "There is a bug that makes Spicy reject the __context__ assignments used in the description's example, which the author needs to look into.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "Change the syntax for accessing a unit's c... | null |
zeek__zeek__2401 | zeek/zeek | 2,401 | defect | 19ba30d77a6e3a799d56894fa13afd0a51c670d5 | 663b5e49f6e65aca342409a49d7809c3db83435f | Include in Jan's AF_PACKET plugin as builtin plugin | This has come up a few times and the motivation is mainly better "first timer"
experience with Zeek. Concretely, if one wants to run a Zeek cluster with
multiple workers and reasonable load balancing on Linux, AF_PACKET is a decent
start. Without AF_PACKET support being built into Zeek, however, a new user's
next e... | diff --git a/.gitmodules b/.gitmodules
index b43d81ffad3..eb9b22b79b5 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -67,3 +67,6 @@
[submodule "auxil/filesystem"]
path = auxil/filesystem
url = https://github.com/gulrak/filesystem.git
+[submodule "auxil/zeek-af_packet-plugin"]
+ path = auxil/zeek-af_packet-plugin
+ ... | 3 | 2 | 1 | [{"id": "G0", "claim": "The plugin repository should be migrated ('graduated') from Jan's personal namespace into the Zeek organization before this PR is merged, with the submodule pointing at the migrated repo.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
zeek__zeek__2416 | zeek/zeek | 2,416 | defect | 5389ad69f87f3a2533005b59cf55108d0b6de97b | 75524864f21bf897fedd6da7099f10fe46dc56d9 | plugins: Reject dynamic plugins matching names of built-in ones | This goes the hard-exit on conflicts route as IMO it provides better messaging that something is wrong, rather than defaulting to something the user may not expect.
Fixes #2403 | diff --git a/src/plugin/Manager.cc b/src/plugin/Manager.cc
index 6fb1f03fb53..7ade91f981a 100644
--- a/src/plugin/Manager.cc
+++ b/src/plugin/Manager.cc
@@ -164,6 +164,8 @@ bool Manager::ActivateDynamicPluginInternal(const std::string& name, bool ok_if_
dynamic_plugin_map::iterator m = dynamic_plugins.find(util::st... | 2 | 2 | 0 | [{"id": "G0", "claim": "Move the `util::strtolower(name)` call above the loop over all plugins so it is not recomputed on every iteration.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the comment typo \"report an error an let\" so it reads \"r... | null |
zeek__zeek__2722 | zeek/zeek | 2,722 | defect | 252fb581e7ec242c3faeded524ec3246ade99995 | ae9d4540e25b217feb24176afc04b77fe967e383 | Initial set of static analysis fixes from PVS-Studio | I recently got a license for [PVS-Studio](https://pvs-studio.com/en/pvs-studio/?utm_source=github&utm_medium=organic&utm_campaign=open_source) for the Zeek project. This PR is the first of a set of changes fixing the findings from their analyzer. | diff --git a/README.md b/README.md
index 0b7489ae2f9..3dc7234680f 100644
--- a/README.md
+++ b/README.md
@@ -109,3 +109,13 @@ License
Zeek comes with a BSD license, allowing for free use with virtually no
restrictions. You can find it [here](https://github.com/zeek/zeek/blob/master/COPYING).
+
+
+Tooling
+-------
+... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new README Tooling section could list more tools such as clang-tidy, flake8 and pylint, and say \"We use\" instead of \"Zeek uses\" so it also covers surrounding tools.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rob... | null |
zeek__zeek__2866 | zeek/zeek | 2,866 | defect | 33090d7a274815d12da8f383e1e3e5fcff67a228 | 8b0a53a385f11d66e30edc7f5ad166144ff16fb9 | iomanager: Collect all sources with zero timeouts as ready | Previously, if two iosources returned 0.0 as their timeout, only one of them would be considered ready. An always ready source therefore may starve other ready ones due to this and minimally this behavior seems surprising.
Offline pcap sources are always ready and return 0.0 for GetNextTimeout() (unless in pseudo-re... | diff --git a/src/iosource/Manager.cc b/src/iosource/Manager.cc
index 61e6b5df07e..a408df04f02 100644
--- a/src/iosource/Manager.cc
+++ b/src/iosource/Manager.cc
@@ -175,6 +175,14 @@ void Manager::FindReadySources(ReadySources* ready)
}
}
+ // Another source with a zero timeout that hasn't been added. Jus... | 2 | 1 | 0 | [{"id": "G0", "claim": "In FindReadySources the zero-timeout branch is redundant with the zero-timeout handling later, so the whole if statement could be simplified to 'if (timeout == -1 || (next > 0 && next < timeout))' as timwoj suggested.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "in... | null |
zeek__zeek__2883 | zeek/zeek | 2,883 | defect | 7c92a58e05a3049446fcc530e899ac1d3eae029d | fa08a04b9cd25ea48036bc64ec80c4ec9b095998 | Add JavaScript support when libnode is available | zeek.on('zeek_init', () => {
console.log('Hello, Zeek!');
});
For interaction with external systems and HTTP APIs, JavaScript and the
Node.js ecosystem beat Zeek script. Make it more easily accessible by
including ZeekJS with Zeek directly.
When a recent enough libnode version is found on the ... | diff --git a/.cirrus.yml b/.cirrus.yml
index b63b0c4d3e4..8e35ed183a1 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -254,7 +254,6 @@ ubuntu2210_task:
dockerfile: ci/ubuntu-22.10/Dockerfile
<< : *RESOURCES_TEMPLATE
<< : *CI_TEMPLATE
- << : *SKIP_TASK_ON_PR
ubuntu22_task:
container:
diff --git a/.gitm... | 6 | 6 | 1 | [{"id": "G0", "claim": "The pull request also needs a documentation update for the new JavaScript support.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new ZEEKJS plugin path should be added with list(APPEND) instead of string(APPEND), which... | null |
zeek__zeek__2972 | zeek/zeek | 2,972 | defect | 3f0eee5d9d17b45b71895da25301c1e19ec36a75 | 1715028986224fbb497731c919d3642758a3906c | Propagate zeek-version.h skip via CMake properties | Add a define for `ZEEK_CONFIG_SKIP_VERSION_H` to static plugins as well as to dynamic plugins that we build alongside Zeek. When including `zeek-config.h` with this macro defined, the header skips including `zeek-version.h`.
For static plugins, we always define `ZEEK_CONFIG_SKIP_VERSION_H`.
For dynamic plugins, w... | diff --git a/cmake b/cmake
index 6fd9b7405a2..600bb015c0d 160000
--- a/cmake
+++ b/cmake
@@ -1 +1 @@
-Subproject commit 6fd9b7405a2ee5c62e1a4d70ee47da8ca8bacb9a
+Subproject commit 600bb015c0d5029c228a16bf052bd30c6af9ee10
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 64f0577e429..408bc4a9442 100644
--- a/sr... | 2 | 2 | 2 | [{"id": "G0", "claim": "The decision to skip zeek-version.h should follow in-tree vs out-of-tree plugins rather than static vs dynamic: in-tree builtin plugins should skip it, while out-of-tree builtin plugins pulled in via --include-plugins (ZEEK_DIST) and dynamic plugins must still include it.", "category": "design",... | null |
zeek__zeek__3397 | zeek/zeek | 3,397 | defect | 1aa9de28110a9f930e0296f4cb815926996102bc | ac219ac452ef494f9ebe63cc6a561168dc288324 | Fix unsafe and inefficient uses of copy_string | Add a new overload to `copy_string` that takes the input characters plus size. The new overload avoids inefficient scanning of the input for the null terminator in cases where we know the size beforehand. Furthermore, this overload *must* be used when dealing with input character sequences that may have no null termina... | diff --git a/src/Debug.cc b/src/Debug.cc
index 63004431719..574a6b85265 100644
--- a/src/Debug.cc
+++ b/src/Debug.cc
@@ -174,7 +174,8 @@ int TraceState::LogTrace(const char* fmt, ...)
if ( ! loc.filename )
{
- loc.filename = util::copy_string("<no filename>");
+ static constexpr const char str[] = "<no filenam... | 3 | 2 | 0 | [{"id": "G0", "claim": "ReporterMessage (and likewise DebugMessage) should store msg as a std::string instead of a copy_string-allocated char*, which would leverage short-string optimization, avoid a heap allocation for small messages and remove the need for the destructor.", "category": "maintainability", "verdict": "... | null |
zeek__zeek__3643 | zeek/zeek | 3,643 | defect | 8b214862c5f517909639b2634a02342361fe0d1a | 5ede79eb5229940fd293a1ad516168b906dd9471 | Add a method to register an event handler to a std::function via C++ | While working on the telemetry work, I realized that I was adding two events that simply called a BIF method so I could do all of the handling in C++. That seemed very off to me, in that I couldn't add an event handler from C++ that just called a C++ method directly. This PR adds a way to register such event handlers. | diff --git a/src/EventRegistry.cc b/src/EventRegistry.cc
index 93a58443314..d930977ef3b 100644
--- a/src/EventRegistry.cc
+++ b/src/EventRegistry.cc
@@ -158,6 +158,15 @@ EventGroupPtr EventRegistry::LookupGroup(EventGroupKind kind, std::string_view n
return nullptr;
}
+bool EventRegistry::Register(std::string_v... | 5 | 4 | 0 | [{"id": "G0", "claim": "The new EventRegistry::Register() overload should not live on the registry — the registry is for looking up handlers, its behavior disagrees with the existing Register() method that actually installs a handler, and if wanted at all it should be a helper/convenience function outside EventRegistry... | null |
zeek__zeek__4297 | zeek/zeek | 4,297 | defect | 0b590c575e7b78bd7f456f6377e3733de4801f8e | a51add14758a875eb9a5e89b673b4e473897035c | Quick follow-ups for storage framework merge | These are few quick follow-up items from the storage framework merge yesterday:
- Add `libhiredis-dev` to the set of packages installed for the generate-docs workflow. Otherwise, the Redis docs don't get included because the backend doesn't get built.
- Remove installing `expected-lite` for plugins, which was break... | diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml
index 34d36f3387f..9fbfff54253 100644
--- a/.github/workflows/generate-docs.yml
+++ b/.github/workflows/generate-docs.yml
@@ -56,6 +56,7 @@ jobs:
g++ \
gcc \
git \
+ libhiredis-dev \
... | 10 | 8 | 0 | [{"id": "G0", "claim": "DBG_LOG should be made thread-safe so that a whole line is output at once when called from a separate thread, as the expiration thread does.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The commit title is misleading and ... | null |
zeek__zeek__4333 | zeek/zeek | 4,333 | defect | f0ccd5c7f8bf1b87ef3ba5c10d73e752e5e45668 | aa85ceffb70459adf7eeaf4adcb43dd28232921a | Improve and fix enum identifiers, types and vals | 1) Associated an "enum identifier" with its EnumVal such that it becomes possible to lookup, e.g., the "Conn::LOG" identifier and directly get its EnumVal via `GetVal()`.
2) Prevent ShallowClone() of an EnumType within `add_type()`. See the commit message, but essentially that resulted in enum identifiers not having... | diff --git a/scripts/base/frameworks/broker/main.zeek b/scripts/base/frameworks/broker/main.zeek
index 805f1f1e6c5..5a6da813c41 100644
--- a/scripts/base/frameworks/broker/main.zeek
+++ b/scripts/base/frameworks/broker/main.zeek
@@ -207,24 +207,26 @@ export {
PEER_INVALID = 3,
## Remote peer not listening.
PEE... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new PEER_DISCONNECT_DURING_HANDSHAKE lines use spaces instead of tabs and extra spaces before the value 5, unlike the surrounding enum entries — switch them to tabs and remove the padding.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id... | null |
zeek__zeek__4499 | zeek/zeek | 4,499 | defect | cef63e871ee93b4365932f304f96f381d5f43b2d | 5dc863f97d2aa9da216f4178aa97c0e3cc434498 | Custom event metadata - part 2 | * Attempt to remove `ts` from cluster APIs
* Add generic metadata support to the broker serializer in the cluster subsystem
* Update Backend and broker/Manager to process all metadata, not just timestamps
* Change some behavior for missing remote network timestamp metadata
* Keep it unset by default, but allow th... | diff --git a/NEWS b/NEWS
index c713bcb14a9..bb7d660b602 100644
--- a/NEWS
+++ b/NEWS
@@ -24,9 +24,26 @@ Breaking Changes
a small overhead when enabled. There's not enough users of network timestamp
metadata to justify the complexity of treating it separate.
+- The ``current_event_time()`` builtin function as we... | 26 | 21 | 2 | [{"id": "G0", "claim": "The want_network_timestamp condition in both Enqueue() overloads should be restructured so that each source is gated by its own flag as suggested, and the accompanying comment seems outdated.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
zeek__zeek__4680 | zeek/zeek | 4,680 | defect | 07a1c6b699082ce0a9bd30d5083694cb888caa47 | de2f7db326e3c657292005986b40ac67225e27a1 | Coverity cleanup | This fixes a large number of Coverity findings, trying to get down to a limited number of open findings on there. | diff --git a/auxil/gen-zam b/auxil/gen-zam
index b129f9f4977..56a6db00b88 160000
--- a/auxil/gen-zam
+++ b/auxil/gen-zam
@@ -1 +1 @@
-Subproject commit b129f9f4977af4405724f869cdff0cd9b3dbddd9
+Subproject commit 56a6db00b887c79d26f303676677cb490d1c296d
diff --git a/src/main.cc b/src/main.cc
index 5c0da86cff0..509d5251e... | 3 | 1 | 0 | [{"id": "G0", "claim": "The catch handler in main() should exit with 1 rather than exit(-1), or possibly abort() to get a coredump.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "util::split() could take the input line by const& instead of by value ... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.