Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wagnered opened this issue Apr 11, 2021 · 3 comments
Open

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

wagnered opened this issue Apr 11, 2021 · 3 comments

Comments

@wagnered
Copy link

$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.

@wagnered
Copy link
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

@wagnered wagnered reopened this Apr 12, 2021
@wagnered
Copy link
Author

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

@artfulrobot
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants