Coder Social home page Coder Social logo

rust_ltspice_parser's People

Contributors

tyde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rust_ltspice_parser's Issues

Panic when reading RAW file

Good Morning!

I am an engineer trying to use the library to create a documentation tool that integrates Typst & LTSpice.

When I try using the code from the example this is what I'm getting:

DEBUG Processing simulation: "simulation/simulation.raw"
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: FromUtf8Error { bytes: [0, 0, 0, 0, 0, 0, 0, 240, 63, 0, 0, 72, 66, 8, 140, 32, 63, 32, 74, 77, 62, 36, 247, 77, 62, 24, 17, 78, 62, 189, 95, 78, 62, 175, 162, 76, 62, 117, 162, 76, 62, 53, 163, 76, 62, 208, 65, 54, 25, 120, 46, 135, 25, 247, 35, 143, 28, 89, 217, 0, 51, 89, 217, 0, 51, 31, 24, 102, 56, 42, 34, 18, 56, 10], error: Utf8Error { valid_up_to: 7, error_len: Some(1) } }', C:\Users\ricca\OneDrive\Documents\Rust\Documentation\lib\ltspice\src/lib.rs:298:44
stack backtrace: [...]

Apparently the thread panics when reading the raw file description. I don't know enough about the raw file standard to fix this myself. Also, is there any way we could bump the dependencies up a bit?

By the way, thank you very much for developing this library, it seems to be very useful ;)

EDIT:

  • Apparently this is due to the fact that I have used a µ in my simulation, causing the file to be encoded in utf-16. I will try to update the parser.

Freundlichen Grüßen,
Riccardo

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.