ST3: Console Error

I’m not sure what problems this might be causing, but I noticed this error occasionally popping up in the ST3 console and it seems to be coming from Corona Editor or an ST3 function invoked by ST3:

  Traceback (most recent call last):   File "/Applications/Sublime Text.app/Contents/MacOS/sublime\_plugin.py", line 358, in on\_query\_completions     res = callback.on\_query\_completions(v, prefix, locations)   File "completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package", line 204, in on\_query\_completions   File "completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package", line 118, in find\_completions   File "completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package", line 79, in setupFuzzyMatch   File "completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package", line 40, in setPattern   File "X/re.py", line 214, in compile   File "X/functools.py", line 258, in wrapper   File "X/re.py", line 274, in \_compile   File "X/sre\_compile.py", line 493, in compile   File "X/sre\_parse.py", line 729, in parse sre\_constants.error: unbalanced parenthesis

I’m using Corona Editor 0.8.9

I’m not sure what problems this might be causing, but I noticed this error occasionally popping up in the ST3 console and it seems to be coming from Corona Editor or an ST3 function invoked by ST3:

  Traceback (most recent call last):   File “/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py”, line 358, in on_query_completions     res = callback.on_query_completions(v, prefix, locations)   File “completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package”, line 204, in on_query_completions   File “completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package”, line 118, in find_completions   File “completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package”, line 79, in setupFuzzyMatch   File “completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package”, line 40, in setPattern   File “X/re.py”, line 214, in compile   File “X/functools.py”, line 258, in wrapper   File “X/re.py”, line 274, in _compile   File “X/sre_compile.py”, line 493, in compile   File “X/sre_parse.py”, line 729, in parse sre_constants.error: unbalanced parenthesis

I’m using Corona Editor 0.8.9

I am seeing similar errors near the debugger, I suspected that is why the debugger isn’t working.

I’m not sure why Package Control isn’t used anymore (other than it was never setup to properly update).

The version on Package Control is old, you need to go to GitHub and manually download the latest version and install it.

Mine is a bit different, but I am using a new version where Debugger is broken.  I suspect this error is why:

reloading plugin CoronaSDK-SublimeText-master.debugger

Traceback (most recent call last):

  File “/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py”, line 73, in reload_plugin

    m = importlib.import_module(modulename)

  File “X/importlib/__init__.py”, line 88, in import_module

  File “<frozen importlib._bootstrap>”, line 1577, in _gcd_import

  File “<frozen importlib._bootstrap>”, line 1558, in _find_and_load

  File “<frozen importlib._bootstrap>”, line 1525, in _find_and_load_unlocked

  File “<frozen importlib._bootstrap>”, line 586, in _check_name_wrapper

  File “<frozen importlib._bootstrap>”, line 1023, in load_module

  File “<frozen importlib._bootstrap>”, line 1004, in load_module

  File “<frozen importlib._bootstrap>”, line 562, in module_for_loader_wrapper

  File “<frozen importlib._bootstrap>”, line 869, in _load_module

  File “<frozen importlib._bootstrap>”, line 313, in _call_with_frames_removed

  File “/Users/cspence/Library/Application Support/Sublime Text 3/Packages/CoronaSDK-SublimeText-master/debugger.py”, line 39, in <module>

    debugFP = open(os.path.normpath(_corona_utils.PACKAGE_DIR+"/…/User/CoronaEditor.log"), “w”, 1)

FileNotFoundError: [Errno 2] No such file or directory: ‘User/CoronaEditor.log’

reloading plugin CoronaSDK-SublimeText-master.run_project

plugins loaded

+++++++++++++++ corona_utils.Init() ++++++++++++++

I’m not sure what problems this might be causing, but I noticed this error occasionally popping up in the ST3 console and it seems to be coming from Corona Editor or an ST3 function invoked by ST3:

  Traceback (most recent call last):   File “/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py”, line 358, in on_query_completions     res = callback.on_query_completions(v, prefix, locations)   File “completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package”, line 204, in on_query_completions   File “completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package”, line 118, in find_completions   File “completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package”, line 79, in setupFuzzyMatch   File “completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package”, line 40, in setPattern   File “X/re.py”, line 214, in compile   File “X/functools.py”, line 258, in wrapper   File “X/re.py”, line 274, in _compile   File “X/sre_compile.py”, line 493, in compile   File “X/sre_parse.py”, line 729, in parse sre_constants.error: unbalanced parenthesis

I’m using Corona Editor 0.8.9

I think this is caused by a particular completion but I haven’t tracked down exactly which one it is (I’ll need to escape some parens in the completion text correctly to make the fuzzy matching work correctly).  The only issue I think this would cause is a failure to perform certain completions but as I haven’t reproduced the issue yet I’m not sure.

The Debugger is in alpha test at the moment so there are a few bugs (and you have to figure out how to get it installed).  This particular one (which is due to some debugging being left turned on) should be fixed by creating an empty file called ~/Library/Application Support/Sublime Text 3/Packages/User/CoronaEditor.log …  let me know how it goes (it has more hours in ST2 than ST3 so expect an adventure).

When the debugger is ready for prime time it will appear as an automatic update.

I have the file User/CoronaEditor.log already.

Auto updates haven’t worked for me, I reported them a few times on GitHub and to Walter.  

Everyone who I have spoke to who has the plugin hasn’t been auto updated either.

This is incorrect advice.  The version in Package Control is the official release.  The version at the tip in Github is the version currently being tested internally.  If you are comfortable figuring out how to install it manually and are willing to live with the instability of the bleeding edge, you are welcome to try it.  If you want stability use the version supplied by Package Control.

Ok, I thought it was being recommended to use GitHub as Package Control version doesn’t update.  Only way I can update it is uninstall it and download it again from Package Control to see if there is a new version. 

Clearly there’s some sort of issue with updating via Package Control but everyone I’ve asked gets updates just fine.  When the next version is released we’ll pay particular attention to such issues since there’s no way to debug this without a new release.

I use a lot of plugins (about 10) and they all upgrade just fine.  Corona only updated once, when it was called Corona SDK  and was switched to Corona Editor.  It caused some issues since it changed names.  I since uninstalled them all.  I uninstall Corona Editor about once a week and redownload to see if there is a new version.  Seems the quickest way to check.

I’ve checked with 3-4 other people and they have the same problem.  I only have one version of Corona Editor installed.  Right now I removed the plugin from Package Control and installed the Git Hub version as I thought that was the latest.

I’m not sure what problems this might be causing, but I noticed this error occasionally popping up in the ST3 console and it seems to be coming from Corona Editor or an ST3 function invoked by ST3:

  Traceback (most recent call last):   File “/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py”, line 358, in on_query_completions     res = callback.on_query_completions(v, prefix, locations)   File “completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package”, line 204, in on_query_completions   File “completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package”, line 118, in find_completions   File “completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package”, line 79, in setupFuzzyMatch   File “completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package”, line 40, in setPattern   File “X/re.py”, line 214, in compile   File “X/functools.py”, line 258, in wrapper   File “X/re.py”, line 274, in _compile   File “X/sre_compile.py”, line 493, in compile   File “X/sre_parse.py”, line 729, in parse sre_constants.error: unbalanced parenthesis

I’m using Corona Editor 0.8.9

I am seeing similar errors near the debugger, I suspected that is why the debugger isn’t working.

I’m not sure why Package Control isn’t used anymore (other than it was never setup to properly update).

The version on Package Control is old, you need to go to GitHub and manually download the latest version and install it.

Mine is a bit different, but I am using a new version where Debugger is broken.  I suspect this error is why:

reloading plugin CoronaSDK-SublimeText-master.debugger

Traceback (most recent call last):

  File “/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py”, line 73, in reload_plugin

    m = importlib.import_module(modulename)

  File “X/importlib/__init__.py”, line 88, in import_module

  File “<frozen importlib._bootstrap>”, line 1577, in _gcd_import

  File “<frozen importlib._bootstrap>”, line 1558, in _find_and_load

  File “<frozen importlib._bootstrap>”, line 1525, in _find_and_load_unlocked

  File “<frozen importlib._bootstrap>”, line 586, in _check_name_wrapper

  File “<frozen importlib._bootstrap>”, line 1023, in load_module

  File “<frozen importlib._bootstrap>”, line 1004, in load_module

  File “<frozen importlib._bootstrap>”, line 562, in module_for_loader_wrapper

  File “<frozen importlib._bootstrap>”, line 869, in _load_module

  File “<frozen importlib._bootstrap>”, line 313, in _call_with_frames_removed

  File “/Users/cspence/Library/Application Support/Sublime Text 3/Packages/CoronaSDK-SublimeText-master/debugger.py”, line 39, in <module>

    debugFP = open(os.path.normpath(_corona_utils.PACKAGE_DIR+"/…/User/CoronaEditor.log"), “w”, 1)

FileNotFoundError: [Errno 2] No such file or directory: ‘User/CoronaEditor.log’

reloading plugin CoronaSDK-SublimeText-master.run_project

plugins loaded

+++++++++++++++ corona_utils.Init() ++++++++++++++

I’m not sure what problems this might be causing, but I noticed this error occasionally popping up in the ST3 console and it seems to be coming from Corona Editor or an ST3 function invoked by ST3:

  Traceback (most recent call last):   File “/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py”, line 358, in on_query_completions     res = callback.on_query_completions(v, prefix, locations)   File “completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package”, line 204, in on_query_completions   File “completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package”, line 118, in find_completions   File “completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package”, line 79, in setupFuzzyMatch   File “completions in /Users/tap32/Library/Application Support/Sublime Text 3/Installed Packages/Corona Editor.sublime-package”, line 40, in setPattern   File “X/re.py”, line 214, in compile   File “X/functools.py”, line 258, in wrapper   File “X/re.py”, line 274, in _compile   File “X/sre_compile.py”, line 493, in compile   File “X/sre_parse.py”, line 729, in parse sre_constants.error: unbalanced parenthesis

I’m using Corona Editor 0.8.9

I think this is caused by a particular completion but I haven’t tracked down exactly which one it is (I’ll need to escape some parens in the completion text correctly to make the fuzzy matching work correctly).  The only issue I think this would cause is a failure to perform certain completions but as I haven’t reproduced the issue yet I’m not sure.

The Debugger is in alpha test at the moment so there are a few bugs (and you have to figure out how to get it installed).  This particular one (which is due to some debugging being left turned on) should be fixed by creating an empty file called ~/Library/Application Support/Sublime Text 3/Packages/User/CoronaEditor.log …  let me know how it goes (it has more hours in ST2 than ST3 so expect an adventure).

When the debugger is ready for prime time it will appear as an automatic update.

I have the file User/CoronaEditor.log already.

Auto updates haven’t worked for me, I reported them a few times on GitHub and to Walter.  

Everyone who I have spoke to who has the plugin hasn’t been auto updated either.

This is incorrect advice.  The version in Package Control is the official release.  The version at the tip in Github is the version currently being tested internally.  If you are comfortable figuring out how to install it manually and are willing to live with the instability of the bleeding edge, you are welcome to try it.  If you want stability use the version supplied by Package Control.

Ok, I thought it was being recommended to use GitHub as Package Control version doesn’t update.  Only way I can update it is uninstall it and download it again from Package Control to see if there is a new version. 

Clearly there’s some sort of issue with updating via Package Control but everyone I’ve asked gets updates just fine.  When the next version is released we’ll pay particular attention to such issues since there’s no way to debug this without a new release.

I use a lot of plugins (about 10) and they all upgrade just fine.  Corona only updated once, when it was called Corona SDK  and was switched to Corona Editor.  It caused some issues since it changed names.  I since uninstalled them all.  I uninstall Corona Editor about once a week and redownload to see if there is a new version.  Seems the quickest way to check.

I’ve checked with 3-4 other people and they have the same problem.  I only have one version of Corona Editor installed.  Right now I removed the plugin from Package Control and installed the Git Hub version as I thought that was the latest.

Same error here.