Giter Club home page Giter Club logo

kickstart-substrate's Issues

Error: The template.toml is missing

when i use the command
kickstart https://github.com/sacha-l/kickstart-substrate

An error occurred

Error: The template.toml is missing ```

error[E0107]: missing generics for struct `tera::Context`

I am getting the following error when I run cargo install kickstart

โžœ  cargo install kickstart
.....
   Compiling tera v1.14.0
   Compiling kickstart v0.3.0
error[E0107]: missing generics for struct `tera::Context`
  --> /Users/brunogalvao/.cargo/registry/src/github.com-1ecc6299db9ec823/kickstart-0.3.0/src/generation.rs:66:19
   |
66 |         context: &Context,
   |                   ^^^^^^^ expected 1 generic argument
   |
note: struct defined here, with 1 generic parameter: `S`
  --> /Users/brunogalvao/.cargo/registry/src/github.com-1ecc6299db9ec823/tera-1.14.0/src/context.rs:57:12
   |
57 | pub struct Context<S: ContextSafety> {
   |            ^^^^^^^ -
help: add missing generic argument
   |
66 |         context: &Context<S>,
   |                   ~~~~~~~~~~

For more information about this error, try `rustc --explain E0107`.
error: could not compile `kickstart` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `kickstart v0.3.0`, intermediate artifacts can be found at `/var/folders/9m/t_xjg1_j4lxfj0d9j508yfx40000gp/T/cargo-install31egCy`

Caused by:
  build failed

The template misses some replacements

After scaffolding, the project won't build.
This is due to the template missing 3 replacements from:

pallet-template

to

pallet-{{pallet_name}}

I can build the project after this fix.

no matching package named node-template-runtime found

Description

rust-analyzer failed to load workspace: Failed to read Cargo metadata from Cargo.toml file ../kitties/Cargo.toml, cargo 1.58.0 (f01b232bc 2022-01-19): Failed to run "cargo" "metadata" "--format-version" "1" "--manifest-path" "../kitties/Cargo.toml" "--filter-platform" "x86_64-unknown-linux-gnu": cargo metadata exited with an error: error: no matching package named node-template-runtime found location searched: ../kitties/runtime required by package node-kitties v4.0.0-dev (../kitties/node)

Pop up Errors at this part in ../node/Cargo.toml

[dependencies.node-kitties-runtime]
path = '../runtime'
version = '4.0.0-dev'

node-kitties-runtime: Error: Command failed: git --no-pager --git-dir="~/.cargo/registry/index/github.com-1ecc6299db9ec823/.git" show origin/HEAD:no/de/node-kitties-runtime
fatal: path 'no/de/node-kitties-runtime' does not exist in 'origin/HEAD'

Steps to Reproduce

Follow the tutorial on https://docs.substrate.io/tutorials/v3/kitties/pt1/

After using the kickstart command, type in "kitties" and "kitties"...

Expected vs. Actual Behavior

VS Code plugin rust-analyzer and pop up shows above error

Environment

VS Code the latest
rust-analyzer v0.3.933
Linux Mint the latest
Rust 1.58.1

Logs, Errors or Screenshots

See above

Additional Information

none

duplicate key: substrate-build-script-utils for key build-dependencies

Description

rust-analyzer failed to load workspace: Failed to read Cargo metadata from Cargo.toml file ../kitties/Cargo.toml, cargo 1.58.0 (f01b232bc 2022-01-19): Failed to run "cargo" "metadata" "--format-version" "1" "--manifest-path" "../kitties/Cargo.toml" "--filter-platform" "x86_64-unknown-linux-gnu": cargo metadata exited with an error: error: failed to load manifest for workspace member ../kitties/node Caused by: failed to parse manifest at ../kitties/node/Cargo.toml Caused by: could not parse input as TOML Caused by: duplicate key: substrate-build-script-utils for key build-dependencies at line 70 column 1

inside my ../kitties/node/Cargo.toml
those two below seem to have conflict...
Line 19:

[build-dependencies.substrate-build-script-utils]
git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest'
version = '3.0.0'

Line 67:

[build-dependencies]
substrate-build-script-utils = { version = "3.0.0", git = "https://github.com/paritytech/substrate.git", tag = "devhub/latest" }

Steps to Reproduce

Follow the tutorial on https://docs.substrate.io/tutorials/v3/kitties/pt1/

After using the kickstart command, type in "kitties" and "kitties"...

Expected vs. Actual Behavior

VS Code plugin rust-analyzer shows above error

Environment

VS Code the latest
rust-analyzer v0.3.933
Linux Mint the latest
Rust 1.58.1

Logs, Errors or Screenshots

See above

Additional Information

none

rust-analyzer failed node-kitties-runtime is not a dependency

Description

rust-analyzer failed to load workspace: Failed to read Cargo metadata from Cargo.toml file ../kitties/Cargo.toml, cargo 1.58.0 (f01b232bc 2022-01-19): Failed to run "cargo" "metadata" "--format-version" "1" "--manifest-path" "../kitties/Cargo.toml" "--filter-platform" "x86_64-unknown-linux-gnu": cargo metadata exited with an error: error: failed to load manifest for workspace member ../kitties/node Caused by: failed to parse manifest at ../kitties/node/Cargo.toml Caused by: feature runtime-benchmarks includes node-kitties-runtime/runtime-benchmarks, but node-kitties-runtime is not a dependency

Steps to Reproduce

Follow the tutorial on https://docs.substrate.io/tutorials/v3/kitties/pt1/

After using the kickstart command, type in "kitties" and "kitties"...

Expected vs. Actual Behavior

VS Code plugin rust-analyzer and pop up shows above error

Environment

VS Code the latest
rust-analyzer v0.3.933
Linux Mint the latest
Rust 1.58.1

Logs, Errors or Screenshots

See above

Additional Information

none

Request: Clarify applicable source code license

kickstart-substrate is a really helpful tool and expanding on it could help a lot of beginner projects. Thank you for your contributions!

Description

Kickstart is licensed under the MIT License and the Substrate template it bootstraps is under the Unlicense relying on GPLv3/Apache+MIT components, so far the licensing chain is almost clear.

A clarification on the licensing of the kickstart-substrate would help complete that licensing chain.

Proposed Solution

  • Clarification in comments
  • A commit containing a LICENSE file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.