Giter Site home page Giter Site logo

Comments (12)

tehrengruber avatar tehrengruber commented on July 18, 2024 1

Nevermind :-) I will still keep this ticket open because the returning None is not what should happen.

For the matrix/vector you use in the screenshot you should probably use a statically sized type because its way faster for small matrices. This is because many optimizations are only possible, when the size is known at compile time.

from lldb-eigen-data-formatter.

tehrengruber avatar tehrengruber commented on July 18, 2024

No that should work. What type of matrix did you print?

from lldb-eigen-data-formatter.

js1972 avatar js1972 commented on July 18, 2024

Any of the eigen stuff.... for example:

  #include "Eigen/Dense"
  using Eigen::MatrixXd;

  P_ = MatrixXd(5, 5);
  P_ << 1, 0, 0, 0, 0,
        0, 1, 0, 0, 0,
        0, 0, 1, 0, 0,
        0, 0, 0, 1, 0,
        0, 0, 0, 0, 1;

From the lldb prompt in CLion I enter print P_ and it just responds with "None".

Here is an actual output:
image

Appreciate your help. Thx.

from lldb-eigen-data-formatter.

js1972 avatar js1972 commented on July 18, 2024

image
I should also add that I installed as per the readme and can see the .lldinit file, etc.

from lldb-eigen-data-formatter.

tehrengruber avatar tehrengruber commented on July 18, 2024

Indeed the installation of the plugin worked. Therefore you only see None instead of the default output from lldb, because some exception occurs in the plugin. Usually the plugin should fallback to the lldbs default printer in that case, which for whatever reason does not work. I have to check this on an OS X machine the upcoming days, because on my linux machine everything works as expected.

from lldb-eigen-data-formatter.

tehrengruber avatar tehrengruber commented on July 18, 2024

Ok so the problem here is that the matrices you are trying to debug are of dynamic size, which this plugin does not support right now. There is however a pull request implementing this: #2 which works, but has some problems.
Since I have a new plugin in development that supports not only viewing, but also editing I'm not going to fix this, but feel free to just switch to the branch of the pull request.

from lldb-eigen-data-formatter.

js1972 avatar js1972 commented on July 18, 2024

Thankyou for that info. I saw the pull request but as I'm a newbie to eigen I didn't even know I was using dynamic matrices all the time. ;-) Looking forward to the update and will test the pull request. Really appreciate your help.

from lldb-eigen-data-formatter.

js1972 avatar js1972 commented on July 18, 2024

Excellent. By keeping this open I'll be alerted to updates ;-)
Off-topic but do you notice CLion gives heaps of compiler syntax warnings on Eigen code as well?

from lldb-eigen-data-formatter.

js1972 avatar js1972 commented on July 18, 2024

Update... Tried pull request 2 it it fails everywhere... Will stick to cout for now. ;-)

from lldb-eigen-data-formatter.

chrisdembia avatar chrisdembia commented on July 18, 2024

I would love to use this plugin but I'm having the same issue (I need to use dynamic sizes). Thanks for this useful tool.

from lldb-eigen-data-formatter.

fantaosha avatar fantaosha commented on July 18, 2024

This bug might be partially fixed. Please have a look at https://github.com/fantaosha/LLDB-Eigen-Data-Formatter

from lldb-eigen-data-formatter.

tehrengruber avatar tehrengruber commented on July 18, 2024

I've added support for dynamically sized matrices today (see 7a07dc1). Feel free to give it a try.

from lldb-eigen-data-formatter.

Related Issues (5)

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.