Home Download Buy Blog Forum Support

[BUG] enter key problem

[BUG] enter key problem

Postby oriceon on Wed Jul 13, 2011 6:09 am

Code: Select all
<?php
?><!DOCTYPE >


Try to press enter key after php tag is closed. It didn`t work. Only if you have a space between ?> and doctype
oriceon
 
Posts: 56
Joined: Tue Jun 14, 2011 6:06 am

Re: [BUG] enter key problem

Postby bizoo on Wed Jul 13, 2011 6:26 am

Stange, work fine for me (version: 2080 windows x64 channel: dev)
Do you have any plugin installed ?
bizoo
 
Posts: 888
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: [BUG] enter key problem

Postby oriceon on Wed Jul 13, 2011 6:36 am

ZenCoding, i`ll reinstall editor.
oriceon
 
Posts: 56
Joined: Tue Jun 14, 2011 6:06 am

Re: [BUG] enter key problem

Postby bizoo on Wed Jul 13, 2011 6:49 am

Just tried on another instance of ST2 with ZenCoding and hit the issue with this error:
Code: Select all
Traceback (most recent call last):
  File ".\sublime_plugin.py", line 249, in run_
  File ".\sublimezen.py", line 120, in wrapper
  File ".\sublimezenplugin.py", line 180, in run
  File ".\zencoding\__init__.py", line 75, in run_action
  File ".\zencoding\actions\basic.py", line 307, in insert_formatted_newline
TypeError: 'NoneType' object is unsubscriptable

Look like a bug in ZenCoding, you better raise this issue to the ZenCoding post topic.
bizoo
 
Posts: 888
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: [BUG] enter key problem with ZenCoding

Postby bizoo on Wed Jul 13, 2011 7:02 am

A quick fix:
In the file:
\Sublime Text 2\Packages\ZenCoding\zencoding\actions\basic.py

change line 307 from:
Code: Select all
if pair[0] and pair[1] and pair[0].type == 'tag' and pair[0].end == caret_pos and pair[1].start == caret_pos:

to:
Code: Select all
if pair and pair[0] and pair[1] and pair[0].type == 'tag' and pair[0].end == caret_pos and pair[1].start == caret_pos:


sublimator will probably resolve this issue quickly.
bizoo
 
Posts: 888
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: [BUG] enter key problem

Postby oriceon on Wed Jul 13, 2011 7:23 am

Good. Thanks.
oriceon
 
Posts: 56
Joined: Tue Jun 14, 2011 6:06 am


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 18 guests