TypeError: 'int' object has no attribute '__getitem__'

Ninja IDE: 3.0+r929~ubuntu14.04.1

Currently: Ninja IDE fails to start with the following error:


Traceback (most recent call last):
  File "/usr/bin/ninja-ide", line 34, in <module>
    ninja_ide.setup_and_run()
  File "/usr/share/ninja-ide/ninja_ide/__init__.py", line 72, in setup_and_run
    core.run_ninja()
  File "/usr/share/ninja-ide/ninja_ide/core/core.py", line 56, in run_ninja
    gui.start_ide(app, filenames, projects_path, extra_plugins, linenos)
  File "/usr/share/ninja-ide/ninja_ide/gui/__init__.py", line 220, in start_ide
    current_file, recent_files)
  File "/usr/share/ninja-ide/ninja_ide/gui/ide.py", line 491, in load_session_files_projects
    line, col = fileData[1][0], fileData[1][1]
TypeError: 'int' object has no attribute '__getitem__'
</module>

I could not quickly see what the issue is here, but at a guess something is getting a file-handle (an integer) rather than a file-object.

该提问来源于开源项目:ninja-ide/ninja-ide

查看全部
weixin_39969257
weixin_39969257
2020/11/23 02:09
  • 点赞
  • 收藏
  • 回答
    私信

4个回复