CudaText: [SQL Tools] Works much slower than Sublime version

Each time I use a command from that plugin (for example, Select connection), I have this error in the python log:

Init: cuda_sqltools
SQL Tools: Error parsing C:\APPLIS\cudatext\settings\cuda_sqltools_settings.json
SQL Tools: Error parsing C:\APPLIS\cudatext\settings\cuda_sqltools_savedqueries.json
SQL Tools: Error parsing C:\APPLIS\cudatext\settings\cuda_sqltools_connections.json
SQL Tools: Plugin loaded
Traceback (most recent call last):
  File "C:\APPLIS\cudatext\py\cuda_sqltools\__init__.py", line 303, in __init__
    self.on_start(None)
  File "C:\APPLIS\cudatext\py\cuda_sqltools\__init__.py", line 308, in on_start
    ST.bootstrap()
  File "C:\APPLIS\cudatext\py\cuda_sqltools\__init__.py", line 172, in bootstrap
    ST.connectionList = getConnections()
  File "C:\APPLIS\cudatext\py\cuda_sqltools\__init__.py", line 83, in getConnections
    options = connections.get('connections', {})
AttributeError: 'NoneType' object has no attribute 'get'
ERROR: Exception in CudaText for importing cuda_sqltools: AttributeError: 'NoneType' object has no attribute 'get'

I have checked the 3 files with online validators, and there are correct.

cuda_sqltools_savedqueries.json:

{
}

cuda_sqltools_settings.json:

{
    "expand_to": "paragraph",
    "show_result_on_window": false,
    "focus_on_result": false,
    "clear_output": false,
    "thread_timeout": 60,
    "use_streams": false,
    "history_size": 100,
    "show_records":
    {
        "limit": 50
    },
    "debug": true
}

As you can see, I activated the debug mode too. But I can’t see any log anywhere. How could I help you gather more info?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 48 (25 by maintainers)

Most upvoted comments

Once the 3 PR merged, you can close this issue. Thank you all for your work on this. 👍

And, I almost forgot, happy new year to everyone!