![]() How do I avoid this? I tried creating a Packages/User/Python.sublime-settings file, with the following in it, but that didn't help. And even more so when it hits at the end of a long build process. Technical Support CapnJish June 27, 2018, 5:29pm 1 Hi, I’m brand new to programming and trying to get python3 to run in Sublime Text 3 on my MacBook Pro. Investing in your text editor skill set will not only improve the quality of the code you write and cut down on silly errors, but increase the speed and. This is extremely irritating as there is a) no indication of what caused the problem and b) it can happy at any time on any file that has been edited at some point. Finding related issues and PRs Tools for validating playbooks Other. Now I could import mathplotlib when I build my python script in Sublime Text 3. ![]() This has only happened since the past 2 or 3 months and I never had this problem before, so I assume it was a recent change in Sublime that occasionally mangles either the tab vs. When multiple sheets are selected, this flag will cause the opened file to replace the most recently used sheet with the file being opened Added the flag sublime.WANTEVENT for use with showquickpanel. That "changes the file" which now shows as changed and will request a save if closed. Added sublime.CLEARTORIGHT and sublime.SEMITRANSIENT for use with openfile() Added the flag sublime.REPLACEMRU for use with openfile(). Code used to check python binary location: import sys, os print os.path.dirname(sys.executable) Edit2: Fixed this by hardlinking to the right python binary in Python. Inspecting the file in the editor does not show an indentation issue and I suspect a tab got sneaked in somehow.Ĭlicking at the bottom right of the window, Spaces, next to Python which indicates the source language, allows me to pick Convert indentation to spaces. Edit: Damn, this doesnt work for python, just for PYTHONPATH, when I try it, it still gives the wrong python. Every so often I will randomly get an IndentationError: unexpected indent message on a previously working Python file. I’ve tried using the default python build system (which I assume runs python 2.7 because that is pre-installed on my Mac) and the result is the same.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |