Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Update error output
Browse files Browse the repository at this point in the history
  • Loading branch information
deekerno committed Jul 12, 2023
1 parent 949a727 commit 759329e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 140 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ error[E0433]: failed to resolve: use of undeclared crate or module `fuel`
|
help: there is a crate or module with a similar name
|
33 | header: fuels::Header {
32 | header: fuels::Header {
| ~~~~~

error[E0433]: failed to resolve: use of undeclared crate or module `fuel`
Expand All @@ -25,7 +25,7 @@ error[E0433]: failed to resolve: use of undeclared crate or module `fuel`
|
help: there is a crate or module with a similar name
|
45 | transactions: vec![fuels::TransactionData {
44 | transactions: vec![fuels::TransactionData {
| ~~~~~

error[E0433]: failed to resolve: use of undeclared crate or module `fuel`
Expand All @@ -36,7 +36,7 @@ error[E0433]: failed to resolve: use of undeclared crate or module `fuel`
|
help: there is a crate or module with a similar name
|
49 | fuels::Receipt::Call {
48 | fuels::Receipt::Call {
| ~~~~~

error[E0433]: failed to resolve: use of undeclared crate or module `fuel`
Expand All @@ -47,7 +47,7 @@ error[E0433]: failed to resolve: use of undeclared crate or module `fuel`
|
help: there is a crate or module with a similar name
|
60 | fuels::Receipt::ReturnData {
59 | fuels::Receipt::ReturnData {
| ~~~~~

error[E0422]: cannot find struct, variant or union type `SomeEvent` in this scope
Expand All @@ -64,8 +64,6 @@ error[E0412]: cannot find type `BlockData` in this scope
|
help: consider importing one of these items
|
2 + use fuel_indexer_plugin::prelude::BlockData;
|
2 + use fuel_indexer_types::fuel::BlockData;
|
2 + use fuel_indexer_utils::plugin::prelude::BlockData;
Expand All @@ -79,8 +77,6 @@ error[E0422]: cannot find struct, variant or union type `BlockData` in this scop
|
help: consider importing one of these items
|
2 + use fuel_indexer_plugin::prelude::BlockData;
|
2 + use fuel_indexer_types::fuel::BlockData;
|
2 + use fuel_indexer_utils::plugin::prelude::BlockData;
Expand All @@ -94,20 +90,18 @@ error[E0433]: failed to resolve: use of undeclared crate or module `fuel`
|
help: there is a crate or module with a similar name
|
46 | status: fuels::TransactionStatus::default(),
45 | status: fuels::TransactionStatus::default(),
| ~~~~~
help: consider importing one of these items
|
2 + use fuel_indexer_plugin::prelude::fuel::TransactionStatus;
|
2 + use fuel_indexer_types::fuel::TransactionStatus;
|
2 + use fuel_indexer_utils::plugin::prelude::fuel::TransactionStatus;
|
help: if you import `TransactionStatus`, refer to it directly
|
46 - status: fuel::TransactionStatus::default(),
46 + status: TransactionStatus::default(),
45 - status: fuel::TransactionStatus::default(),
45 + status: TransactionStatus::default(),
|

error[E0433]: failed to resolve: use of undeclared type `Transaction`
Expand All @@ -118,15 +112,14 @@ error[E0433]: failed to resolve: use of undeclared type `Transaction`
|
help: consider importing one of these items
|
2 + use fuel_indexer_plugin::prelude::fuel::Transaction;
|
2 + use fuel_indexer_types::fuel::Transaction;
|
2 + use fuel_indexer_utils::plugin::prelude::fuel::Transaction;
|
2 + use fuels::prelude::Transaction;
|
and 2 other candidates
2 + use fuels_types::transaction::Transaction;
|

error[E0425]: cannot find function `serialize` in this scope
--> ../fuel-indexer-tests/trybuild/fail_if_attribute_abi_arg_includes_invalid_type.rs
Expand All @@ -138,8 +131,6 @@ help: consider importing one of these items
|
2 + use fuel_indexer_lib::utils::serialize;
|
2 + use fuel_indexer_plugin::serialize;
|
2 + use fuel_indexer_utils::plugin::serialize;
|

Expand All @@ -149,10 +140,10 @@ error[E0425]: cannot find function `handle_events` in this scope
| handle_events(ptr, len);
| ^^^^^^^^^^^^^ not found in this scope

error: unused import: `fuels::types::traits::Tokenizable`
error: unused import: `traits::Tokenizable`
--> ../fuel-indexer-tests/trybuild/fail_if_attribute_abi_arg_includes_invalid_type.rs
|
| use fuels::types::traits::Tokenizable;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| use fuels::core::{codec::ABIEncoder, traits::Tokenizable};
| ^^^^^^^^^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= note: `-D unused-imports` implied by `-D warnings`
Original file line number Diff line number Diff line change
Expand Up @@ -4,88 +4,14 @@ error: custom attribute panicked
| #[indexer(manifest = "packages/fuel-indexer-tests/trybuild/bad_simple_wasm_graphql.yaml")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: message: Bad schema.: ParseError(Syntax { message: " --> 1:1\n |\n1 | namespace: test_namespace\n | ^---\n |\n = expected type_system_definition", start: Pos(1:1), end: None })

error[E0433]: failed to resolve: use of undeclared crate or module `fuel`
--> ../fuel-indexer-tests/trybuild/fail_if_attribute_schema_arg_is_invalid.rs
|
| header: fuel::Header {
| ^^^^ use of undeclared crate or module `fuel`
|
help: there is a crate or module with a similar name
|
32 | header: fuels::Header {
| ~~~~~

error[E0433]: failed to resolve: use of undeclared crate or module `fuel`
--> ../fuel-indexer-tests/trybuild/fail_if_attribute_schema_arg_is_invalid.rs
|
| transactions: vec![fuel::TransactionData {
| ^^^^ use of undeclared crate or module `fuel`
|
help: there is a crate or module with a similar name
|
45 | transactions: vec![fuels::TransactionData {
| ~~~~~

error[E0433]: failed to resolve: use of undeclared crate or module `fuel`
--> ../fuel-indexer-tests/trybuild/fail_if_attribute_schema_arg_is_invalid.rs
|
| fuel::Receipt::Call {
| ^^^^ use of undeclared crate or module `fuel`
|
help: there is a crate or module with a similar name
|
49 | fuels::Receipt::Call {
| ~~~~~

error[E0433]: failed to resolve: use of undeclared crate or module `fuel`
--> ../fuel-indexer-tests/trybuild/fail_if_attribute_schema_arg_is_invalid.rs
|
| fuel::Receipt::ReturnData {
| ^^^^ use of undeclared crate or module `fuel`
|
help: there is a crate or module with a similar name
|
60 | fuels::Receipt::ReturnData {
| ~~~~~
= help: message: Failed to parse GraphQL schema.: ParseError(Syntax { message: " --> 1:1\n |\n1 | namespace: test_namespace\n | ^---\n |\n = expected type_system_definition", start: Pos(1:1), end: None })

error[E0422]: cannot find struct, variant or union type `SomeEvent` in this scope
--> ../fuel-indexer-tests/trybuild/fail_if_attribute_schema_arg_is_invalid.rs
|
| let s = SomeEvent {
| ^^^^^^^^^ not found in this scope

error[E0412]: cannot find type `BlockData` in this scope
--> ../fuel-indexer-tests/trybuild/fail_if_attribute_schema_arg_is_invalid.rs
|
| let data: Vec<BlockData> = vec![BlockData {
| ^^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
2 + use fuel_indexer_plugin::prelude::BlockData;
|
2 + use fuel_indexer_types::fuel::BlockData;
|
2 + use fuel_indexer_utils::plugin::prelude::BlockData;
|

error[E0422]: cannot find struct, variant or union type `BlockData` in this scope
--> ../fuel-indexer-tests/trybuild/fail_if_attribute_schema_arg_is_invalid.rs
|
| let data: Vec<BlockData> = vec![BlockData {
| ^^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
2 + use fuel_indexer_plugin::prelude::BlockData;
|
2 + use fuel_indexer_types::fuel::BlockData;
|
2 + use fuel_indexer_utils::plugin::prelude::BlockData;
|

error[E0433]: failed to resolve: use of undeclared type `Consensus`
--> ../fuel-indexer-tests/trybuild/fail_if_attribute_schema_arg_is_invalid.rs
|
Expand All @@ -94,37 +20,13 @@ error[E0433]: failed to resolve: use of undeclared type `Consensus`
|
help: consider importing one of these items
|
2 + use fuel_indexer_plugin::prelude::fuel::Consensus;
2 + use crate::fuel::Consensus;
|
2 + use fuel_indexer_types::fuel::Consensus;
|
2 + use fuel_indexer_utils::plugin::prelude::fuel::Consensus;
|

error[E0433]: failed to resolve: use of undeclared crate or module `fuel`
--> ../fuel-indexer-tests/trybuild/fail_if_attribute_schema_arg_is_invalid.rs
|
| status: fuel::TransactionStatus::default(),
| ^^^^ use of undeclared crate or module `fuel`
|
help: there is a crate or module with a similar name
|
47 | status: fuels::TransactionStatus::default(),
| ~~~~~
help: consider importing one of these items
|
2 + use fuel_indexer_plugin::prelude::fuel::TransactionStatus;
|
2 + use fuel_indexer_types::fuel::TransactionStatus;
|
2 + use fuel_indexer_utils::plugin::prelude::fuel::TransactionStatus;
|
help: if you import `TransactionStatus`, refer to it directly
|
47 - status: fuel::TransactionStatus::default(),
47 + status: TransactionStatus::default(),
|

error[E0433]: failed to resolve: use of undeclared type `Transaction`
--> ../fuel-indexer-tests/trybuild/fail_if_attribute_schema_arg_is_invalid.rs
|
Expand All @@ -133,41 +35,32 @@ error[E0433]: failed to resolve: use of undeclared type `Transaction`
|
help: consider importing one of these items
|
2 + use fuel_indexer_plugin::prelude::fuel::Transaction;
2 + use crate::fuel::Transaction;
|
2 + use fuel_indexer_types::fuel::Transaction;
|
2 + use fuel_indexer_utils::plugin::prelude::fuel::Transaction;
|
2 + use fuels::prelude::Transaction;
|
and 2 other candidates
and 1 other candidate

error[E0425]: cannot find function `serialize` in this scope
error[E0063]: missing field `producer` in initializer of `fuel_indexer_utils::prelude::BlockData`
--> ../fuel-indexer-tests/trybuild/fail_if_attribute_schema_arg_is_invalid.rs
|
| let mut bytes = serialize(&data);
| ^^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
2 + use fuel_indexer_lib::utils::serialize;
|
2 + use fuel_indexer_plugin::serialize;
|
2 + use fuel_indexer_utils::plugin::serialize;
|
| let data: Vec<BlockData> = vec![BlockData {
| ^^^^^^^^^ missing `producer`

error[E0425]: cannot find function `handle_events` in this scope
--> ../fuel-indexer-tests/trybuild/fail_if_attribute_schema_arg_is_invalid.rs
|
| handle_events(ptr, len);
| ^^^^^^^^^^^^^ not found in this scope

error: unused import: `types::traits::Tokenizable`
error: unused import: `traits::Tokenizable`
--> ../fuel-indexer-tests/trybuild/fail_if_attribute_schema_arg_is_invalid.rs
|
| use fuels::{core::abi_encoder::ABIEncoder, types::traits::Tokenizable};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
| use fuels::core::{codec::ABIEncoder, traits::Tokenizable};
| ^^^^^^^^^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= note: `-D unused-imports` implied by `-D warnings`

0 comments on commit 759329e

Please sign in to comment.