question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

find_use broken in last release

See original GitHub issue

After auto-update the package to new release 2.0.1 I can’t use find_use command. On Sublime startup in console log prints this error:


reloading plugin PackageResourceViewer.package_resources
reloading plugin PHP Companion.PHP Companion
Traceback (most recent call last):
  File "/opt/sublime_text/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 "/opt/sublime_text/sublime_plugin.py", line 1199, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "/home/hxss/.config/sublime-text-3/Installed Packages/PHP Companion.sublime-package/PHP Companion.py", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "/opt/sublime_text/sublime_plugin.py", line 1199, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "/home/hxss/.config/sublime-text-3/Installed Packages/PHP Companion.sublime-package/php_companion/commands/expand_fqcn_command.py", line 6, in <module>
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "/opt/sublime_text/sublime_plugin.py", line 1199, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "/home/hxss/.config/sublime-text-3/Installed Packages/PHP Companion.sublime-package/php_companion/utils.py", line 86
    _path = normalize_to_system_style_path(_path)
                                                ^

When I call find_use nothing happen.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Corben78commented, Feb 5, 2020

Just realized the same issue. Last line before the next plugin is loaded says: TabError: inconsistent use of tabs and spaces in indentation

edit: oh, just read you released an update. Do you know how long packagecontrol.io needs to see it?

edit2: but I can confirm that (manually) replacing the tabs with spaces before _path = normalize_to_system_style_path(_path) (on 2 lines) fixes the issue

0reactions
ThibaudDaucecommented, Feb 12, 2020

Ok so it’s me 😄 I will try to debug that. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Humanity's broken risk perception is reversing global progress
Humanity's broken risk perception is reversing global progress in a 'spiral of self-destruction', finds new UN report. Press Releases.
Read more >
Remothered Releases Recap Regarding Upcoming Release
Remothered: Broken Porcelain will be launching on October 13th. FOr more information, check out their website by clicking here.
Read more >
Use the Kusava to break the seal on the Barsam Flower ...
All 3/3 Use the Kusava to break the seal on the Barsam Flower Genshin Impact walkthrough. Leave a comment if you can't find...
Read more >
Broken Piano - Pianobook
Distorted, tape recorded, broken and all around ugly. ... The samples are indeed several years old but the processed version for this instrument...
Read more >
Material Design Icons (Community) - Figma
Browse, find, use icons from MaterialDesignIcons.com right from inside Figma ... 4000+ icons from MaterialDesignIcons.com • Always latest icons.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found