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

ST4 install library fail #329

Open
tablatronix opened this issue Jun 22, 2021 · 5 comments
Open

ST4 install library fail #329

tablatronix opened this issue Jun 22, 2021 · 5 comments

Comments

@tablatronix
Copy link

tablatronix commented Jun 22, 2021

Exception in thread Thread-35:
Traceback (most recent call last):
  File "./python3.3/threading.py", line 901, in _bootstrap_inner
  File "./python3.3/threading.py", line 858, in run
  File "/Users/.../Library/Application Support/Sublime Text 3/Packages/Deviot (Arduino IDE)/libraries/libraries.py", line 126, in download_list
    quick_panel(self.quick_list, self.library_install_async)
  File "/Users/.../Library/Application Support/Sublime Text 3/Packages/Deviot (Arduino IDE)/libraries/quick_panel.py", line 19, in quick_panel
    window.show_quick_panel(items, callback, flags, index)
  File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime.py", line 728, in show_quick_panel
    item_tuples.append((item[0], "\x1f".join(item[1:])))
TypeError: sequence item 1: expected str instance, int found

tuple expects strings, ID is int

This is a possible workaround fix

    def quicked(self, source_list):
        """Quick panel List
...
            quick_list.append([info, description, str(id)])

        self.quick_list = quick_list
@tablatronix
Copy link
Author

another issue

generating syntax summary
Exception in thread Thread-17:
Traceback (most recent call last):
  File "./python3.3/threading.py", line 901, in _bootstrap_inner
  File "./python3.3/threading.py", line 858, in run
  File "/Users/shawn/Library/Application Support/Sublime Text/Packages/Deviot (Arduino IDE)/libraries/libraries.py", line 120, in download_list
    self.quicked(response_list['items'])
  File "/Users/shawn/Library/Application Support/Sublime Text/Packages/Deviot (Arduino IDE)/libraries/libraries.py", line 143, in quicked
    frameworks += framework + ' '
TypeError: unsupported operand type(s) for +: 'dict' and 'str'

@tablatronix
Copy link
Author

In ST4 there seems to be an issue with passing in the pagination items

@siddhpant
Copy link

I changed the offending line in quick_panel.py to below and it worked:

    window.show_quick_panel([[str(i) for i in item] for item in items],
                            callback, flags, index)

@tablatronix
Copy link
Author

tablatronix commented Nov 4, 2022

Thanks, I have not PR anything because this project is dead. But I post issues here for posterity

here is my fork, i try to submit hacks, I need to properly fix some stuff when i have time, some stuff is just turned off..

https://github.com/tablatronix/Deviot/commits/st4

@siddhpant
Copy link

siddhpant commented Nov 4, 2022

Thanks, I have not PR anything because this project is dead. But I post issues here for posterity

here is my fork, i try to submit hacks, I need to properly fix some stuff when i have time, some stuff is just turned off..

https://github.com/tablatronix/Deviot/commits/st4

Thanks. I will refer to it for fixes.

Maybe you should rebase on the develop branch instead of branching from master. master (and hence your branch) is 157 necrocommits behind.

nvm, just saw it was merged.

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