Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python menu item missing #34

Closed
facelessuser opened this issue Apr 24, 2012 · 10 comments
Closed

Python menu item missing #34

facelessuser opened this issue Apr 24, 2012 · 10 comments

Comments

@facelessuser
Copy link
Contributor

In Tools > SublimeREPL the Python entry is missing. I have no idea what the problem is yet; I have tried looking at it a copule of times with no luck. It seems that the Python menu looks okay, yet it is still not showing (maybe some other child entry is bad and causing issues).

It does this on my Windows 64 at work, and my Mac at home. I have tried reinstalling SublimeREPL and it has made no difference.

@wuub
Copy link
Owner

wuub commented Apr 24, 2012

Try running Command Palette > SublimeREPL: Python and let me know if it's there.

@ghost ghost assigned wuub Apr 24, 2012
@facelessuser
Copy link
Contributor Author

Ahh, at work I run Python from a different location, so I have created a separate launcher for that.

You are right, Python is not in the command palette. That must be why it is not showing up. It used to, did something change on the REPL end?

@wuub
Copy link
Owner

wuub commented Apr 24, 2012

Can you try it on fresh portable version of ST2?

Edit: I want to know if it's a system/platform OR a ST configuration problem.

@facelessuser
Copy link
Contributor Author

Will do. I will report back when I try it at work today.

@facelessuser
Copy link
Contributor Author

Yeah, the portable version showed the menu just fine. This is very odd. Especially since it is happening on two separate platforms. I guess it could be related to another plugin messing up the menu (common on both systems), but there is never any debug output form ST2 about bad menu files. What is even more odd, is that it specifically only affects the Python menu entry.

@facelessuser
Copy link
Contributor Author

My standard install refuses to show the Python entry. But if I rename the SublimeREPL/config/Python to anything else it works. This is very odd. It seems for some reason it gets ignored when the name is Python, but if I put an "s" (or anything for that matter) on the end Pythons it starts working.

@facelessuser
Copy link
Contributor Author

I found the common thread. On all of my systems, I use a custom Python language and I disable the default language in Sublime Settings. But what it appears that ST2 does is disable all subfolders in any plugin containing the same name.

I know this is a specific request, but this could happen in the future with any plugin. Is it possible to have a more unique folder name for the repl folders?

example:

REPL_python

The chances of another plugin using a similar name would be greatly reduced.

@wuub
Copy link
Owner

wuub commented Apr 24, 2012

Changing directory names would definitely fix your problem, but can render some of the following useless:

 "command": "run_existing_window_command", "args":
        {
            "id": "repl_python_pdb",
            "file": "config/Python/Main.sublime-menu"
        }

Obviously I can update files in default SublimeREPL installation, but some people used this scheme to create custom keybindings.

Let me think about it for a bit and I'll let you know.

@wuub
Copy link
Owner

wuub commented May 28, 2012

In 1.0.40 you will be able to place custom SublimeREPL configs (both new and updating defaults) in User/SublimeREPL/config/.... Simple copy and trivial changes to Main.sublime-menu of Python to Python-custom will fix your problem w/o affecting other users.

@wuub wuub closed this as completed May 28, 2012
@facelessuser
Copy link
Contributor Author

Cool, thanks, for addressing this. I know it is kind of a pain for to come up with solutions for cases like this, but it is very much appreciated. I will give it a try today.

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

No branches or pull requests

2 participants