Project

Profile

Help

Bug #63

Multiline macros seem to bug

Added by Vincent Le Goff almost 3 years ago. Updated almost 3 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

Associated revisions

Revision f0893206 (diff) View on GitHub
Added by Vincent Le Goff almost 3 years ago

Fix #63: Multiline macros seem to bug

History

#1 Updated by Vincent Le Goff almost 3 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