Finding in Windows #3

ltribolet opened this Issue Apr 10, 2013 · 5 comments


None yet

2 participants



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\", line 531, in run_
  File "C:\Users\luc.tribolet\Desktop\ST3\Data\Packages\PHP Companion\", line 79, in run
    self.namespaces = find_symbol(symbol, view.window())
  File "C:\Users\luc.tribolet\Desktop\ST3\Data\Packages\PHP Companion\", line 25, in find_symbol
    with open(file[0], "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 ;-)

@erichard erichard closed this Apr 16, 2013

You're welcome. Plugins like this one are essentials I think :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment