Giter Site home page Giter Site logo

swdotcom / swdc-sublime Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 5.0 17.35 MB

Track your programming activity in real-time in Sublime Text

Home Page: https://www.software.com/sublime-text

License: Apache License 2.0

Python 100.00%
keystrokes package-control productivity productivity-timer sublime-plugin sublime-text time-tracking

swdc-sublime's People

Contributors

ajinkz avatar bjacobson26 avatar brettmstevens7 avatar geoffstevens8 avatar joshuacheng avatar mmclead avatar o4sw avatar pbstriker38 avatar xavluiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swdc-sublime's Issues

Package does not work (maybe just on Windows?)

Describe the bug
I've been unable to log in at all.
The README says:

Create an account to keep track of your coding data and unlock access to advanced data visualizations in the Code Time dashboard and web app. You can customize your profile, such as your work hours and office type, for advanced time tracking. You can also connect Outlook or Google Calendar to visualize your code time vs. meetings in a single calendar.

Registering an account also lets you connect multiple code editors on multiple devices using the same email account. Your code time data will sync automatically across your devices.

Open Code Time by navigating to Tools > Code Time > Show Tree View. Click Sign up to create a new account, or click Log in to sign into an existing account.

But the option "Tools > Code Time > Show Tree View" option does not do anything at all and I only get this traceback right after trying to use it:

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text\Lib\python33\sublime_plugin.py", line 1494, in run_
    return self.run(edit)
  File "C:\Users\Jakub\AppData\Roaming\Sublime Text 3\Installed Packages\CodeTime.sublime-package\lib/TreePanel.py", line 55, in run
  File "C:\Users\Jakub\AppData\Roaming\Sublime Text 3\Installed Packages\CodeTime.sublime-package\lib/TreePanel.py", line 60, in showTree
  File "C:\Users\Jakub\AppData\Roaming\Sublime Text 3\Installed Packages\CodeTime.sublime-package\lib/TreePanel.py", line 153, in create_tree
KeyError: 'averageDailyCodeTimeMinutes'

Also, I'm getting this traceback too, on plugin load:

Traceback (most recent call last):
  File "C:\Users\Jakub\AppData\Roaming\Sublime Text 3\Installed Packages\CodeTime.sublime-package\lib/CommonUtil.py", line 48, in getHostname
    return socket.gethostname()
NameError: global name 'socket' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text\Lib\python33\sublime_plugin.py", line 528, in on_api_ready
    plc()
  File "C:\Users\Jakub\AppData\Roaming\Sublime Text 3\Installed Packages\CodeTime.sublime-package\Software.py", line 447, in plugin_loaded
    initializeUser()
  File "C:\Users\Jakub\AppData\Roaming\Sublime Text 3\Installed Packages\CodeTime.sublime-package\Software.py", line 464, in initializeUser
    result = createAnonymousUser()
  File "C:\Users\Jakub\AppData\Roaming\Sublime Text 3\Installed Packages\CodeTime.sublime-package\lib/SoftwareHttp.py", line 143, in createAnonymousUser
    hostname = getHostname()
  File "C:\Users\Jakub\AppData\Roaming\Sublime Text 3\Installed Packages\CodeTime.sublime-package\lib/CommonUtil.py", line 50, in getHostname
    return os.uname().nodename
AttributeError: 'module' object has no attribute 'uname'

And I get these in logs:

error POSTing to /user_encrypted_data for value: SOME HASH VALUE HERE

ISSUE TYPE

  • Bug Report

Steps to reproduce

  1. Install and load the package on Windows
  2. See the logs (Ctrl+`)

Expected behavior
I was expecting to be able to log in and use the package.

ACTUAL RESULTS
I can't use the package per the description above;

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

Desktop (please complete the following information):

  • OS: Windows
  • Plugin version: CodeTime v2.5.7

Additional context
N/A

ST3 Package fails entirely with compilation error on initial installation.

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.


Console Always Print Error Info

Describe the bug
Console always print error info.

plugins loaded
Error reading package info: [Errno 20] Not a directory: '/Users/***/Library/Application Support/Sublime Text 3/Installed Packages/CodeTime.sublime-package/lib/../package.json'
Error reading package info: [Errno 20] Not a directory: '/Users/***/Library/Application Support/Sublime Text 3/Installed Packages/CodeTime.sublime-package/lib/../package.json'
Code Time: Loaded v2.2.1 of package name: CodeTime

ISSUE TYPE

  • Bug Report

Steps to reproduce

  1. Open Sublime Text
  2. Show Console
  3. See error info

Desktop (please complete the following information):

  • OS: macOS
  • Plugin version: Code Time v2.2.1

ST3 + Windows 10 failing to install peroperly

This is a fresh install of ST3 on Windows 10. It fails with the following error

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 196, in load_module
    m.plugin_loaded()
  File "C:\Users\vj\AppData\Roaming\Sublime Text 3\Installed Packages\CodeTime.sublime-package\Software.py", line 357, in plugin_loaded
    initializeUser()
  File "C:\Users\vj\AppData\Roaming\Sublime Text 3\Installed Packages\CodeTime.sublime-package\Software.py", line 390, in initializeUser
    result = createAnonymousUser()
  File "C:\Users\vj\AppData\Roaming\Sublime Text 3\Installed Packages\CodeTime.sublime-package\lib/SoftwareUtil.py", line 333, in createAnonymousUser
    plugin_uuid = getPluginUuid()
  File "C:\Users\vj\AppData\Roaming\Sublime Text 3\Installed Packages\CodeTime.sublime-package\lib/CommonUtil.py", line 89, in getPluginUuid
    jsonObj["plugin_uuid"] = value
NameError: global name 'value' is not defined

bug(windows): unexpected windows after each action

1. Summary

I get unexpected windows, where I wrote any symbol in Sublime Text. It makes it difficult to work.

2. Steps to reproduce

I reproduce the problem in a version of Sublime Text without plugins and user settings.

I register my account in https://app.software.com/ → I install Software in Sublime Text via Package Control → I restart Sublime Text → I connected:

Connect

I wrote any text in any file type → I get actual behavior, not expected.

3. Expected behavior

Nothing prevents work in Sublime Text.

4. Actual behavior

Actual

After each key pressing I get some windows with path to Git in title bar:

Git windows

Sublime Text console output:

Software.com: Requesting [GET: api.software.com/sessions?from=1546722000&summary=true]
C:\Users\SashaChernykh\.software\data.json file not found
Software.com: KPM incremented
Software.com: KPM incremented
Software.com: KPM incremented
Software.com: KPM incremented
Software.com: KPM incremented
Software.com: KPM incremented
Software.com: KPM incremented
Software.com: Requesting [GET: api.software.com/sessions?from=1546722000&summary=true]

5. Environment

  • Windows 10 Enterprise LTSB 64-bit EN
  • Sublime Text Version 3.1.1, Build 3176 Portable
  • git version 2.20.1.windows.1
  • Sublime Text Software 0.4.9

Thanks.

Show Tree Mode not showing in Code Time menu

Describe the bug
A clear and concise description of what the bug is.
The Code Time menu doesn't show the Show Tree Mode menu on Sublime Text.
ISSUE TYPE

  • Bug Report

Steps to reproduce

I don't know about this yet

Expected behavior
A clear and concise description of what you expected to happen.
Should display the Show Tree Mode menu on the Code Time menu in Sublime Text, like this image below.
image

ACTUAL RESULTS

Didn't show the Show Tree Mode menu on the Code Time menu in Sublime Text.

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot 2023-03-25 at 11 52 31 PM

Desktop (please complete the following information):

  • OS: [e.g. macOS] MacOS 13.2
  • Plugin version [e.g. Code Time v1.2.1] v2.6.5

Additional context
Add any other context about the problem here.

AttributeError: 'bool' object has no attribute 'get'

After I logged in nothing changes.

Clicking in the Log In option in the tools menu with the console open gives me the following message:
File "/opt/sublime_text/sublime_plugin.py", line 1072, in run_
return self.run(edit)
File "/home/tecnologia/.config/sublime-text-3/Installed Packages/CodeTime.sublime-package/Software.py", line 290, in run
File "/home/tecnologia/.config/sublime-text-3/Installed Packages/CodeTime.sublime-package/lib/SoftwareUtil.py", line 305, in launchLoginUrl
File "/home/tecnologia/.config/sublime-text-3/Installed Packages/CodeTime.sublime-package/lib/SoftwareUtil.py", line 289, in refetchUserStatusLazily
File "/home/tecnologia/.config/sublime-text-3/Installed Packages/CodeTime.sublime-package/lib/SoftwareUtil.py", line 509, in getUserStatus
File "/home/tecnologia/.config/sublime-text-3/Installed Packages/CodeTime.sublime-package/lib/SoftwareUtil.py", line 472, in updateSessionUserInfo
AttributeError: 'bool' object has no attribute 'get'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.