arakashic / chromatica.nvim

Clang based syntax highlighting for Neovim
MIT License
299 stars 17 forks source link

Chromatica broke after python 3.8 update. #77

Closed Iskustvo closed 4 years ago

Iskustvo commented 4 years ago

Chromatica stopped working after python package update(to version 3.8.0-1).

This was the error:

AttributeError: module 'time' has no attribute 'clock'

Quick internet search showed that this is the reason for the error:

The function time.clock() has been removed, after having been deprecated since Python 3.3: use time.perf_counter() or time.process_time() instead, depending on your requirements, to have well-defined behavior. (Contributed by Matthias Bussonnier in bpo-36895.)

As stated, I changed clock() with perf_counter() and it fixed the issue. I don't know if this is the proper fix or not, so I decided to open it as an issue.