Coder Social home page Coder Social logo

Comments (8)

math2001 avatar math2001 commented on June 8, 2024 1

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.

unknownuser88 avatar unknownuser88 commented on June 8, 2024

also see some strange big item in context menu
b1

from filemanager.

unknownuser88 avatar unknownuser88 commented on June 8, 2024

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.

math2001 avatar math2001 commented on June 8, 2024

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.

unknownuser88 avatar unknownuser88 commented on June 8, 2024

ezgif com-video-to-gif 2

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

screenshot from 2017-03-09 13-54-09

from filemanager.

math2001 avatar math2001 commented on June 8, 2024

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.

unknownuser88 avatar unknownuser88 commented on June 8, 2024

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.

math2001 avatar math2001 commented on June 8, 2024

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 🙂

and self.view.file_name() is not None

from filemanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.