ribot / SublimeAndroidImport

A Sublime Text 2/3 plugin which automatically adds imports from the Android SDK.
30 stars 6 forks source link

FileNotFoundError in Sublime Text 3 #9

Closed BobG1983 closed 10 years ago

BobG1983 commented 10 years ago

Heya,

When I install AndroidImport through package control on Sublime Text 3, I get the following error:

Traceback (most recent call last): File "C:\Users\bob.gardner\Dropbox\Development\sublime\sublime_plugin.py", line 147, in create_textcommands cmds.append(class(view)) File "android_import in C:\Users\bob.gardner\Dropbox\Development\sublime\Data\Installed Packages\AndroidImport.sublime-package", line 14, in init FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\bob.gardner\Dropbox\Development\sublime\Data\Installed Packages\AndroidImport.sublime-package/classes.txt'

Also, my tools menu looks as follow:

image

I'll probably take a look at this myself, but it might be faster if someone else does, simply because I'm entirely new to Python and Plugin development.

matt-oakes commented 10 years ago

Interesting... Could you let me know what files you see when you do:

1) Go to Browse Packages 2) Go to the Installed Packages folder 3) Make a copy of the Android Imports file and change the file extension to zip 4) Unzip the files contents

matt-oakes commented 10 years ago

Actually this looks like a problem with how the package system has changed in ST3. It used to just be a folder but with the move to the zip file the code to access the classes.txt file inside my package doesn't work.

I'll have to fix that at some point. Unfortunately I'm new to Python and plugin development too.