Skip to content

VdebugEval! Can't get values of array at depth > 1 #503

Open

Description

@wagnered

$apics = $data['flac']['PICTURE'];

The statement :VdebugEval! $apicsreports a type of "$apics[0] = (array[10])" with no values.
The statement :VdebugEval! $apics[0] gives the error "AttributeError: 'NoneType' object has no attribute 'isdigit'".

if I explicitely request a value :VdebugEval! $apic[0]['description'] the value will be displayed with no errors.

result of Issuing request for info from array with depth = 1:

$dimensions = (array [2])
\
⬦ $dimensions['width'] = (int) 640
|
⬦ $dimensions['height'] = (int) 640
/

Vdebug version 2.0.0
Python version 3.9.3
vim version 8.1.2269
Ubuntu version 'focal' prooted distribution for running on Android 10 (unrooted)
xdebug.var_display_max_depth = -1 (1023)

Could a config setting change be required? Maybe with Python?

I am Working with metadata from flac files provided by the getID3 php library. Data could include utf-16 encoded values.

Activity

  1. wagnered commented on Apr 11, 2021

    @wagnered
    Author

    I was wrong about Vorbis comments. According to to xiph.org specs, the encoding must be utf8. So evidently, the FLAC files were either corrupted or improperly encoded.

    I confirmed that the FLAC files were the problem by examining an mp3 file with Vdebug while stepping through the code, so I will close this issue.

    Vdebug is a great vim plugin. Along with the ALE plugin, I have a very effective IDE with only 3 gb ram on a Samsung tablet.

    Thanks

  2. wagnered commented on Apr 12, 2021

    @wagnered
    Author

    I repeated the testwith the mp3 file. On second attempt to reproduce , it also didplayed the same AttributeError.

  3. artfulrobot commented on Aug 13, 2021

    @artfulrobot

    I get this error when trying to inspect most variables (occasionally it works, haven't figured out the pattern, though!)

    - [ERROR] {Fri 13 2021 08:16:26} An error occured: <class 'AttributeError'>                                                                                                                                        
    Traceback (most recent call last):                                                                                                                                                                                 
      File "/home/rich/.local/share/nvim/plugged/vdebug/python3/vdebug/event.py", line 784, in dispatch_event                                                                                                          
        Dispatcher.events[name](self.__session_handler).run(*args)                                                                                                                                                     
      File "/home/rich/.local/share/nvim/plugged/vdebug/python3/vdebug/event.py", line 411, in run                                                                                                                     
        self.ui.windows.watch().accept_renderer(rend)                                                                                                                                                                  
      File "/home/rich/.local/share/nvim/plugged/vdebug/python3/vdebug/ui/vimui.py", line 619, in accept_renderer                                                                                                      
        self.write(renderer.render())                                                                                                                                                                                  
      File "/home/rich/.local/share/nvim/plugged/vdebug/python3/vdebug/ui/vimui.py", line 910, in render                                                                                                               
        properties = self.response.get_context()                                                                                                                                                                       
      File "/home/rich/.local/share/nvim/plugged/vdebug/python3/vdebug/dbgp.py", line 150, in get_context                                                                                                              
        self.create_properties(EvalProperty(c, code, self.api.language))                                                                                                                                               
    AttributeError: 'NoneType' object has no attribute 'isdigit'                    
    

    It also blows up if I try to get back to the context window:

    :python debugger.get_context()
    Error detected while processing function provider#python#Call:                                                                                                                                                     
    line   18:                                                                                                                                                                                                         
    Error invoking 'python_execute' on channel 19 (python2-script-host):                                                                                                                                               
    Traceback (most recent call last):                                                                                                                                                                                 
      File "<string>", line 1, in <module>                                                                                                                                                                             
    NameError: name 'debugger' is not defined 
    

    Is this related?

    I'm on nvim 0.5.0 and vdebug 2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions