GithubHelp home page GithubHelp logo

dkb-to-ynab's People

Contributors

martinth avatar

Stargazers

 avatar

Watchers

 avatar  avatar

dkb-to-ynab's Issues

Update needed? 27: dkb_to_ynab::RecordError::AmountFormat

Hi,
does the tool still work? I get the following error:
(btw I needed to cargo update because of the new rust version)

RUST_BACKTRACE=1 cargo run ./src/123456789.csv test
Compiling libc v0.2.40
Compiling ansi_term v0.11.0
Compiling rustc-serialize v0.3.24
Compiling byteorder v0.5.3
Compiling vec_map v0.8.0
Compiling bitflags v1.0.1
Compiling strsim v0.7.0
Compiling unicode-width v0.1.4
Compiling num-traits v0.2.2
Compiling atty v0.2.8
Compiling time v0.1.39
Compiling textwrap v0.9.0
Compiling clap v2.31.2
Compiling num-integer v0.1.36
Compiling num-iter v0.1.35
Compiling num v0.1.42
Compiling chrono v0.2.25
Compiling csv v0.14.7
Compiling dkb-to-ynab v0.1.0 (file:///Users/XX/dev/ynab/dkb-to-ynab)
warning: unused std::result::Result which must be used
--> src/main.rs:175:5
|
175 | writer.write(OUTPUT_HEADER.into_iter());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_must_use)] on by default

warning: unused std::result::Result which must be used
--> src/main.rs:198:13
|
198 | write_output_csv(lines, options.value_of("OUTPUT").unwrap());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Finished dev [unoptimized + debuginfo] target(s) in 17.24 secs
 Running `target/debug/dkb-to-ynab ./src/123456789.csv test`

thread 'main' panicked at 'called Result::unwrap() on an Err value: Decode("Could not convert bytes 'FromUtf8Error { bytes: [220, 98, 101, 114, 119, 101, 105, 115, 117, 110, 103], error: Utf8Error { valid_up_to: 0, error_len: Some(1) } }' to UTF-8.")', libcore/result.rs:945:5
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::sys_common::backtrace::_print
at libstd/sys_common/backtrace.rs:71
2: std::panicking::default_hook::{{closure}}
at libstd/sys_common/backtrace.rs:59
at libstd/panicking.rs:380
3: std::panicking::default_hook
at libstd/panicking.rs:396
4: std::panicking::begin_panic
at libstd/panicking.rs:576
5: std::panicking::begin_panic
at libstd/panicking.rs:537
6: std::panicking::try::do_call
at libstd/panicking.rs:521
7: std::panicking::try::do_call
at libstd/panicking.rs:497
8: <core::ops::range::Range as core::fmt::Debug>::fmt
at libcore/panicking.rs:71
9: core::result::unwrap_failed
at /Users/travis/build/rust-lang/rust/src/libcore/macros.rs:23
10: <core::result::Result<T, E>>::unwrap
at /Users/travis/build/rust-lang/rust/src/libcore/result.rs:782
11: dkb_to_ynab::read_input_csv::{{closure}}
at src/main.rs:162
12: core::ops::function::impls::<impl core::ops::function::FnOnce for &'a mut F>::call_once
at /Users/travis/build/rust-lang/rust/src/libcore/ops/function.rs:271
13: <core::option::Option>::map
at /Users/travis/build/rust-lang/rust/src/libcore/option.rs:404
14: <core::iter::Map<I, F> as core::iter::iterator::Iterator>::next
at /Users/travis/build/rust-lang/rust/src/libcore/iter/mod.rs:1309
15: <alloc::vec::Vec>::extend_desugared
at /Users/travis/build/rust-lang/rust/src/liballoc/vec.rs:1921
16: <alloc::vec::Vec as alloc::vec::SpecExtend<T, I>>::spec_extend
at /Users/travis/build/rust-lang/rust/src/liballoc/vec.rs:1818
17: <alloc::vec::Vec as alloc::vec::SpecExtend<T, I>>::from_iter
at /Users/travis/build/rust-lang/rust/src/liballoc/vec.rs:1813
18: <alloc::vec::Vec as core::iter::traits::FromIterator>::from_iter
at /Users/travis/build/rust-lang/rust/src/liballoc/vec.rs:1713
19: core::iter::iterator::Iterator::collect
at /Users/travis/build/rust-lang/rust/src/libcore/iter/iterator.rs:1303
20: dkb_to_ynab::read_input_csv
at src/main.rs:161
21: dkb_to_ynab::main
at src/main.rs:196
22: std::rt::lang_start::{{closure}}
at /Users/travis/build/rust-lang/rust/src/libstd/rt.rs:74
23: std::panicking::try::do_call
at libstd/rt.rs:59
at libstd/panicking.rs:479
24: panic_unwind::dwarf::eh::read_encoded_pointer
at libpanic_unwind/lib.rs:102
25: rust_panic
at libstd/panicking.rs:458
at libstd/panic.rs:358
at libstd/rt.rs:58
26: std::rt::lang_start
at /Users/travis/build/rust-lang/rust/src/libstd/rt.rs:74
27: dkb_to_ynab::RecordError::AmountFormat

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.