Comments (8)
Ok, let's do one problem at a time.
First one
It might be because the Sublime Text 3's version of python is prior to 3.4
(more info), although it's weird since I'm not using any class... I'll have to think about it.
Can you give me more info about how you got that? do you have this error every time you use this command? Could you try revert to a fresh state and install only FileManager and check if you have the same error?
Second one
Please raise another issue with details (how to get that, the context)..
Thanks for your time anyway 👍
from filemanager.
also see some strange big item in context menu
from filemanager.
I reset my sublime text install only package control and FileManager
sublime version: 3126
python version: 3.5.2
when I open existing file all works fine
but when I press ctrl+n (create new file) then set syntax to javascript then paste some code and select some part and press right click I get the following error
Traceback (most recent call last):
File "/sublime_text_3/sublime_plugin.py", line 755, in description_
return self.description(**args)
File "FMcommands.create_from_selection in /home/username/.config/sublime-text-3/Installed Packages/FileManager.sublime-package", line 117, in description
File "FMcommands.create_from_selection in /home/username/.config/sublime-text-3/Installed Packages/FileManager.sublime-package", line 114, in get_path
File "./python3.3/posixpath.py", line 151, in dirname
AttributeError: 'NoneType' object has no attribute 'rfind'
from filemanager.
I see the problem, but there's something that I'm still missing...
The problem is that you're file isn't saved. Yet, to create a file you need the file_name because the url is relative to it.
What I don't understand is how you're able to call it, since if the file isn't saved (view.file_name()
is None
), the option isn't displayed.
Note 1: Sublime Text has it's own version of Python (and I which it was at least python 3.5, but anyway), as you can see in the traceback (File "./python3.3/posixpath.py", line 151, in dirname
).
Note 2: could you install PackageResourceViewer and extract FileManager, you'll get better traceback, which will help me find the problem quicker 🙂
Thanks for your time again, I really appreciate it! 👍
from filemanager.
I try PackageResourceViewer but after extracting it gives me the same error as I mention bellow
Traceback (most recent call last):
File "/opt/sublime_text/sublime_plugin.py", line 755, in description_
return self.description(**args)
File "FMcommands.create_from_selection in /home/username/.config/sublime-text-3/Installed Packages/FileManager.sublime-package", line 117, in description
File "FMcommands.create_from_selection in /home/username/.config/sublime-text-3/Installed Packages/FileManager.sublime-package", line 114, in get_path
File "./python3.3/posixpath.py", line 151, in dirname
AttributeError: 'NoneType' object has no attribute 'rfind'
I think python 3.3 comes from here
from filemanager.
Did you extracted FileManager
? You should be able to find it under Packages
(Preference → Browse Packages)
When you have your unsaved file opened, could you paste print(view.file_name())
in the console and tell me what you get? (you should get None
)
from filemanager.
Yes I extract FileManager and it put files to .config/sublime-text-3/Packages
but I didn't see any other output
>>> print(view.file_name())
None
from filemanager.
I'm guessing that was a problem with the is_visible
method on the command. There's a manual check now, and I can't reproduce this. So, I'm going to close this. Feel free to reopen if that is still happening to you 🙂
from filemanager.
Related Issues (20)
- [Feature Request] Add edit files without any layout setting HOT 4
- FileManager shouldn't create so many commands HOT 2
- Remove .sublime folder HOT 1
- Alpha ST4 - Duplicate Rename entries on menu HOT 6
- Test tab completion logic
- Document tips and tricks
- [help wanted] Remove useless things. Make this package intuitive. HOT 3
- Refresh side bar checking view settings instead of FileManager settings
- Copy relative path function outputs a string starting with "/" HOT 5
- How to accept an intermediate path completion? HOT 6
- stopped working for me HOT 8
- Duplicate chokes on non-ascii files HOT 1
- folder selection is not working
- [Bug] Sidebar missing entries when file is open HOT 1
- conflict of hotkey "alt+n" HOT 2
- Cannot move files to different directories
- can not duplicate the file to a new directory HOT 3
- Definign index number in preferences does not seem to change the default
- Remove so many features
- Getting frivolous infinite loop messages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filemanager.