Project

Profile

Help

Bug #63

closed

Multiline macros seem to bug

Added by Vincent Le Goff over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
SharpScript
Sprint/Milestone:
% Done:

100%

Company:
-
Contact person:
-
Additional contact persons:
-

Description

When creating macros with multiple lines, everything works fine. But when the world is loaded the next time CocoMUD starts, there is an error:

Traceback (most recent call last):
  File "cocomud.py", line 53, in <module>
    window.panel.CreateClient()
  File "C:\Users\Vincent\src\cocomud\src\ui\window.py", line 385, in CreateClient
    world.load()
  File "C:\Users\Vincent\src\cocomud\src\world.py", line 99, in load
    self.sharp_engine.execute(content, variables=False)
  File "C:\Users\Vincent\src\cocomud\src\sharp\engine.py", line 84, in execute
    exec(instruction, globals, locals)
  File "<string>", line 1
    macro(u'F8', u'
                  ^
SyntaxError: EOL while scanning string literal

Added by Vincent Le Goff over 7 years ago

Revision f0893206 | View on GitHub | diff

Fix #63: Multiline macros seem to bug

Actions #1

Updated by Vincent Le Goff over 7 years ago

  • Status changed from Open to Closed
  • Assignee set to Vincent Le Goff
  • % Done changed from 0 to 100

Fixed in commit f089320618d0364852666d167b959739d289359f.
In fact, every SharpScript instruction on multiple lines had this problem, but it was hard to find out, since the SharpEngine.feed() method behaved as expected.

Please register to edit this issue

Also available in: Atom PDF Tracking page