Open Tijeni opened 5 years ago
i dont have verify/Compile menu ...
Hi Tijeni, Have you solved this problem? I meet the same problem.
I have solved this problem.
`def run_build_commands(cmds, msgs): """.""" is_ok = True n = 0 percent = 0
non_blank_msgs = [m for m in msgs if m]
total = len(non_blank_msgs)
for cmd, msg in zip(cmds, msgs):
if msg:
n += 1
percent = n / total * 100
is_ok = run_build_command(percent, cmd, msg)
if not is_ok:
break
return is_ok`
The error msg tell us that the 'percent' is a local variable, so we need to declare the variable in the function.
UnboundLocalError: local variable 'percent' referenced before assignment
I have solved this problem.
def run_build_commands(cmds, msgs): """.""" is_ok = True n = 0 percent = 0 non_blank_msgs = [m for m in msgs if m] total = len(non_blank_msgs) for cmd, msg in zip(cmds, msgs): if msg: n += 1 percent = n / total * 100 is_ok = run_build_command(percent, cmd, msg) if not is_ok: break return is_ok
The error msg tell us that the 'percent' is a local variable, so we need to declare the variable in the function.
UnboundLocalError: local variable 'percent' referenced before assignment
Where is that file?
@Pararera
File: /Sublime Text 3/Packages/Stino-Stino-Dev/libs/stino_runtime/__init__.py
at line 1835.
change
def run_build_commands(cmds, msgs):
"""."""
is_ok = True
n = 0
to
def run_build_commands(cmds, msgs):
"""."""
is_ok = True
n = 0
percent = 0
@Pararera
File:
/Sublime Text 3/Packages/Stino-Stino-Dev/libs/stino_runtime/__init__.py
at line 1835.change
def run_build_commands(cmds, msgs): """.""" is_ok = True n = 0
to
def run_build_commands(cmds, msgs): """.""" is_ok = True n = 0 percent = 0
A bit late, but better ever than never. Thanks.
Hi, i dont know why my Teensy 3.2 dont want eat my sketch ... Step 3 Start building pending for ever and in my console:
osx 10.13.6
thank for your help.
T