I've an issue when I'm using PHP Companion in Windows. When I hit the F5 key it does find the right file but oddly it can't open it :
Here's an exemple with Laravel when I'm looking for Route class.
Traceback (most recent call last):
File "C:\Users\luc.tribolet\Desktop\ST3\sublime_plugin.py", line 531, in run_
File "C:\Users\luc.tribolet\Desktop\ST3\Data\Packages\PHP Companion\PHPCompanion.py", line 79, in run
self.namespaces = find_symbol(symbol, view.window())
File "C:\Users\luc.tribolet\Desktop\ST3\Data\Packages\PHP Companion\PHPCompanion.py", line 25, in find_symbol
with open(file, "r+b") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/C/wamp/www/subdomains/laravel-develop/vendor/laravel/framework/src/Illuminate/Routing/Route.php'
The destination is absolutely correct but it can't open it.
Any ideas ?
I think it's a path conversion problem but I can't figure out how to make it work in Python.
Curiously ST succeed to open the file when I pass the exact same string to the window.open_file() method...
I will ask the sublime text forum for more information. I keep you in touch.
Thank you :)
I've pushed a workaround in the fix-path-in-windows branch.
It works on my Windows machine but I need to test against Linux before merging to master.
Ok it seems to work on both platforms. Fixed since 86fe98c.
Thanks for helping me make this plugin better ;-)
You're welcome. Plugins like this one are essentials I think :)