You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In VS Code, using rust-analyzer, cyclical dev-dependencies break IDE features including "clicking" on items to go to them, getting type & docstring information, finding references and implementations etc.
the real issue here is that cargo even allows this kind of cycle
That issue has a lot of useful back-and-forth on the impact of cycles in such tests - including compilation time. Regardless, the point here is that development with rust-analyzer won't work for the cycled items in the crates with the cycle.
For example, I can't get any information on the following symbols:
use datafusion_ext::errors::ExtensionError;use datafusion_ext::functions::{FuncParamValue,TableFuncContextProvider};use datasources::bson::table::bson_streaming_table;use datasources::common::url::{DatasourceUrl,DatasourceUrlType};use datasources::object_store::generic::GenericStoreAccess;
in the file crates/sqlbuiltins/src/functions/table/bson.rs, and the bson_streaming_table function is left without a highlight
The cycle:
sqlbuiltins has items that depend on catalog (datasources, datafusion_ext)
In VS Code, using rust-analyzer, cyclical dev-dependencies break IDE features including "clicking" on items to go to them, getting type & docstring information, finding references and implementations etc.
According to
rust-analyzer
That issue has a lot of useful back-and-forth on the impact of cycles in such tests - including compilation time. Regardless, the point here is that development with rust-analyzer won't work for the cycled items in the crates with the cycle.
For example, I can't get any information on the following symbols:
in the file
crates/sqlbuiltins/src/functions/table/bson.rs
, and thebson_streaming_table
function is left without a highlightThe cycle:
sqlbuiltins has items that depend on catalog (datasources, datafusion_ext)
catalog
depends onmetastore
for tests:glaredb/crates/catalog/Cargo.toml
Line 22 in 779e304
glaredb/crates/catalog/src/client.rs
Line 558 in 779e304
metastore
depends onsqlbuiltins
glaredb/crates/metastore/src/database.rs
Lines 31 to 40 in 779e304
The full output from
rust-analyzer
is here:The text was updated successfully, but these errors were encountered: