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

ST3 Package fails entirely with compilation error on initial installation. #13

Closed
robfrawley opened this issue Apr 1, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@robfrawley
Copy link

Describe the bug
A clear and concise description of what the bug is.

After installing CodeTime on a brand-new installation of Windows and Sublime Text 3, the plugin fails compilation and errors out.

ISSUE TYPE

  • Bug Report

Steps to reproduce

  1. Install ST3
  2. Install Package Control (using build-in installation command from ST3)
  3. Install this package (the CodeTime package)
  4. Open the console to see the compilation error.

Expected behavior
A clear and concise description of what you expected to happen.

I expect the package to not fail compilation and instead run.

ACTUAL RESULTS

reloading settings Packages/User/Package Control.sublime-settings
ignored packages updated to: ["Vintage"]
reloading plugin CodeTime.Software
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 125, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.3/importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 1199, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "C:\Users\robfr\AppData\Roaming\Sublime Text 3\Installed Packages\CodeTime.sublime-package\Software.py", line 14, in <module>
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 1199, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "C:\Users\robfr\AppData\Roaming\Sublime Text 3\Installed Packages\CodeTime.sublime-package\lib/SoftwareOffline.py", line 116
    if not timeData:
    ^
IndentationError: expected an indented block
reloading settings Packages/CodeTime/Software.sublime_settings
reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context
Add any other context about the problem here.


@robfrawley robfrawley added the bug Something isn't working label Apr 1, 2020
@robfrawley robfrawley changed the title Plugin fails entirely with compilation error on initial installation. ST3 Package fails entirely with compilation error on initial installation. Apr 1, 2020
@joshuacheng
Copy link
Contributor

The patch for this has been pushed to release now, thanks for pointing that out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants