Home Download Buy Blog Forum Support

Dev Build 3031

Re: Dev Build 3031

Postby skuroda on Sat May 04, 2013 9:28 pm

Overriding package files leads to failures when loading.

To reproduce:
1. Override HTML/html.sublime-snippet. Content shouldn't matter.
2. Restart the editor.

Upon restart, the following occurs
Code: Select all
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "X/importlib/__init__.py", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1522, in _find_and_load_unlocked
ImportError: No module named 'HTML.encode_html_entities'
reloading plugin HTML.html_completions
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "X/importlib/__init__.py", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1522, in _find_and_load_unlocked
ImportError: No module named 'HTML.html_completions'


Tested in W7 x64
skuroda
 
Posts: 693
Joined: Fri Oct 05, 2012 8:11 am

Re: Dev Build 3031

Postby tito on Mon May 06, 2013 3:43 am

Can you please fix set_viewport_position, this is really damaging a great plugin, a setting to allow disable the set_viewport_position that the editor does when loading a view would be very welcome. Also, an API method to know if a view is a TRANSIENT view, would be welcome too.. thanks.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 990
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Dev Build 3031

Postby FichteFoll on Mon May 13, 2013 11:16 am

@tito: `view.is_scratch()`? With a combination of is_scratch(), is_dirty() and file_name() you can at least determine all views that are actual views EXCEPT for newly created empty and unmodified views. See also: viewtopic.php?f=6&t=11716&p=48146#p48146
FichteFoll
 
Posts: 624
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany

Re: Dev Build 3031

Postby tito on Fri May 17, 2013 10:38 am

come on FichteFoll ..

give a simple view.is_transient().. can't be that hard..
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 990
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Previous

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 31 guests