Skip to content

Commit

Permalink
Merge pull request #362 from polystat/moreTestsTmp
Browse files Browse the repository at this point in the history
More tests
  • Loading branch information
dours authored Aug 11, 2022
2 parents 331838d + 3f3e97e commit d25555e
Show file tree
Hide file tree
Showing 16 changed files with 94 additions and 25 deletions.
3 changes: 3 additions & 0 deletions transpiler/src/main/eo/preface/pybool.eo
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
[] > as-string
value.as-string > @

[] > as-bool
pybool value > @

[] > force
value.write val > @

Expand Down
10 changes: 10 additions & 0 deletions transpiler/src/main/eo/preface/pyint.eo
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
pyint (value.pow (x.value))
p.fst.pow (p.snd)

[] > bitwise-not
pyint ((value.as-bytes.not).as-int) > @

[x] > and
fakeclasses.convert (pyint value) x > p
seq > @
Expand Down Expand Up @@ -226,6 +229,13 @@
[] > force
value.write val > @

[] > xto-int
[] > apply
[stackUp] > @
seq > @
stackUp.forward (return (pyint value))
123

seq > @
stdout (sprintf "dataizing value %d\n" value)
value
Expand Down
35 changes: 35 additions & 0 deletions transpiler/src/main/eo/preface/pystring.eo
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
+alias fakeclasses preface.fakeclasses
+alias xmyArray preface.xmyArray
+alias xStopIteration preface.xStopIteration
+alias xValueError preface.xValueError

[value] > pystring

Expand All @@ -27,6 +28,9 @@
[] > as-string
pystring value > @

[] > as-bool
pybool ((value.length.eq 0).not) > @

[] > force
value > @

Expand Down Expand Up @@ -74,6 +78,37 @@
[stackUp] > @
stackUp.forward (return iter) > @

[] > xto-int
[] > apply
[stackUp] > @
(* "0" "1" "2" "3" "4" "5" "6" "7" "8" "9") > digits
[s] > to-digit
memory 0 > result
seq > @
while.
((result.lt 10).and (((digits.get result).eq s).not))
[unused]
seq > @
stdout (sprintf "result %d\n" result)
result.write (result.plus 1)
0
result
memory 0 > result
memory TRUE > input-is-correct
memory 0 > i
seq > @
(i.lt (value.length)).while
[unused]
value.slice i 1 > x
to-digit x > dig
seq > @
input-is-correct.write (input-is-correct.and (dig.lt 10))
result.write ((result.times 10).plus dig)
i.write (i.plus 1)
123
stackUp.forward (input-is-correct.if (return (pyint value)) ((goto (xValueError.apply.@)).result))
123

seq > @
stdout (sprintf "dataizing value %s\n" value)
value
4 changes: 2 additions & 2 deletions transpiler/src/main/eo/preface/xint.eo
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
+package preface
+alias fakeclasses preface.fakeclasses
+alias return preface.return
+alias goto org.eolang.goto

[] > xint
fakeclasses.pyIntClass > @
[x] > apply
[stackUp] > @
seq > @
stackUp.forward (return x)
stackUp.forward (goto (x.xto-int.apply.@))
123
18 changes: 18 additions & 0 deletions transpiler/src/main/eo/preface/xmyArray.eo
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,24 @@
self.value.write (tmp.copy.with (x.with-value (tmpx.copy)))
stackUp.forward (return 0)
123
[] > xremove
[self what] > apply
[stackUp] > @
memory FALSE > removed
(goto ((xmyArray.apply (*)).@)).result > accum
memory 0 > i
seq > @
(i.lt (self.value.length)).while
[unused]
self.value.get i > x
seq > @
((x.eq what).value.and (removed.not)).if
removed.write TRUE
(goto ((accum.xappend.apply accum x).@)).result
i.write (i.plus 1)
self.value.write (accum.value)
stackUp.forward (return 0)
123
[] > xclear
[self] > apply
[stackUp] > @
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ object PrintEO {

def unop(t: Unops.T): String = t match {
case Unops.Minus => ".neg"
case Unops.Neg => ".unsupported"
case Unops.Neg => ".bitwise-not"
case Unops.LNot => ".not"
case Unops.Plus => ""
}
Expand Down Expand Up @@ -107,7 +107,7 @@ object PrintEO {
case CallIndex(isCall, whom, args, _) if !isCall && args.size == 1 =>
orb + e(whom) + ".get " + e(args(0)._2) + crb
case Field(whose, name, _) => orb + e(whose) + "." + name + crb
case Cond(cond, yes, no, _) => orb + e(cond) + ".if " + e(yes) + space + e(no) + crb
case Cond(cond, yes, no, _) => orb + e(cond) + ".as-bool.if " + e(yes) + space + e(no) + crb
case CallIndex(true, whom, args, _) =>
"((" + e(whom) + crb + ".apply" +
// todo: empty arg list hack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import org.polystat.py2eo.parser.Expression.{
Field, GeneratorComprehension, Ident, Parameter, Slice, Star, T, isLiteral
}
import org.polystat.py2eo.parser.Statement.{
AugAssign, Assign, Break, ClassDef, Decorators, FuncDef, IfSimple, NonLocal, Pass,
Raise, Return, Suite, Try, While, Continue
AnnAssign, AugAssign, Assign, Break, ClassDef, Decorators,
FuncDef, IfSimple, NonLocal, Pass, Raise, Return, Suite, Try,
While, Continue
}

object PrintLinearizedMutableEOWithCage {
Expand Down Expand Up @@ -89,7 +90,7 @@ object PrintLinearizedMutableEOWithCage {
}
val callInit = init match {
case None => ""
case Some(_) => s" (goto ((result.x__init__.apply pResult $consArgs).@))"
case Some(_) => s" ((goto ((result.x__init__.apply pResult $consArgs).@)).result)"
}
val decorates = bases.headOption.map(_._2)
"write." :: indent(
Expand Down Expand Up @@ -131,6 +132,8 @@ object PrintLinearizedMutableEOWithCage {
)
case NonLocal(_, _) => List()
case f: FuncDef => "write." :: indent(f.name :: printFun(List(), f))
case AnnAssign(lhs, rhsAnn, Some(rhs), ann) =>
printSt(Assign(List(lhs, rhs), ann.pos))
case AugAssign(op, lhs, rhs, ann) =>
List(s"(${pe(lhs)}).${augop(op)} (${pe(rhs)})")
case Assign(List(lhs, rhs@Expression.Binop(op, _, _, _)), ann) if
Expand Down Expand Up @@ -189,15 +192,15 @@ object PrintLinearizedMutableEOWithCage {
case IfSimple(cond, yes, no, _) =>
val stsY = printSt(yes)
val stsN = printSt(no)
pe(cond) + ".if" :: indent("seq" :: indent(stsY :+ "(pybool TRUE)")) ++ indent("seq" :: indent(stsN :+ "(pybool TRUE)"))
pe(cond) + ".as-bool.if" :: indent("seq" :: indent(stsY :+ "(pybool TRUE)")) ++ indent("seq" :: indent(stsN :+ "(pybool TRUE)"))
case While(cond, body, Some(Pass(_)), _) =>
"write." :: indent(
"tmp" ::
"goto" :: indent(
"[stackUp]" :: indent(
"seq > @" :: indent(
(
pe(cond) + ".while" :: indent(
pe(cond) + ".as-bool.while" :: indent(
"[unused]" ::
indent(
"cage 0 > tmp" ::
Expand Down Expand Up @@ -306,7 +309,7 @@ object PrintLinearizedMutableEOWithCage {
"seq > @" :: indent(
("stdout \"" + f.name + "\\n\"") ::
f.args.map(parm => s"${parm.name}.<") ++
(printSt(f.body) :+ "123")
(printSt(f.body) :+ "stackUp.forward (return 0)" :+ "123")
)
)
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
enabled: False
enabled: True
python: |
def cond2():
b = 2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
enabled: False
enabled: True
python: |
def unaryInvert():
a = 2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
enabled: False
enabled: True
python: |
def for_try_else_continue_break():
items = [1, 2, 3, 4, 5, 6, 7, "hello", 100, 200, 300, 400]
Expand All @@ -17,4 +17,4 @@ python: |
else:
res.append(800)
return res == [1, 2, 3, 4, 5, 6, 7]
return res == [1, 2, 3, 4, 5, 6, 7]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
enabled: False
enabled: True
python: |
def while_try_else_continue_break():
items = [1, 2, 3, 4, 5, 6, 7, "hello", 100, 200, 300, 400]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
enabled: False
enabled: True
python: |
def for_try_else_break():
items = [1, 2, 3, 4, 5, 6, 7, "hello", 1, 2, 3, 4]
Expand All @@ -12,4 +12,4 @@ python: |
else:
res.remove(100)
return res == [1, 2, 3, 4, 5, 6, 7, 100]
return res == [1, 2, 3, 4, 5, 6, 7, 100]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
enabled: False
enabled: True
python: |
def for_try_else_continue1():
items = [1, 2, 3, 4, 5, 6, 7, "hello", 100, 200, 300, 400]
Expand All @@ -10,5 +10,5 @@ python: |
continue
else:
res.remove(100)
return res == [1, 2, 3, 4, 5, 6, 7, 200, 300, 400]
return res == [1, 2, 3, 4, 5, 6, 7, 200, 300, 400]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
enabled: False
enabled: True
python: |
def check():
a: Int = 5
Expand All @@ -10,4 +10,4 @@ python: |
a = 1
print("Hi!")
return a == 1
return a == 1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
enabled: False
enabled: True
python: |
def check():
a = 5
b = 17
c = a + b
return c == a + b
return c == a + b
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
enabled: False
enabled: True
python: |
def nonLocal():
x = 0
Expand Down

1 comment on commit d25555e

@0pdd
Copy link
Member

@0pdd 0pdd commented on d25555e Aug 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't able to retrieve PDD puzzles from the code base and submit them to github. If you think that it's a bug on our side, please submit it to yegor256/0pdd:

set -x && set -e && set -o pipefail && cd /tmp/0pdd20220811-14-1d5e8pl/Z2l0QGdpdGh1Yi5jb206cG9seXN0YXQvcHkyZW8uZ2l0 && pdd -v -f /tmp/20220811-30204-1wh7agv [1]: + set -e + set -o pipefail + cd /tmp/0pdd20220811-14-1d5e8pl/Z2l0QGdpdGh1Yi5jb206cG9seXN0YXQvcHkyZW8uZ2l0 + pdd -v -f...

Please, copy and paste this stack trace to GitHub:

UserError
set -x && set -e && set -o pipefail && cd /tmp/0pdd20220811-14-1d5e8pl/Z2l0QGdpdGh1Yi5jb206cG9seXN0YXQvcHkyZW8uZ2l0 && pdd -v -f /tmp/20220811-30204-1wh7agv [1]:
+ set -e
+ set -o pipefail
+ cd /tmp/0pdd20220811-14-1d5e8pl/Z2l0QGdpdGh1Yi5jb206cG9seXN0YXQvcHkyZW8uZ2l0
+ pdd -v -f /tmp/20220811-30204-1wh7agv

My version is 0.21.3
Ruby version is 2.7.5 at x86_64-linux
Reading from root dir /tmp/0pdd20220811-14-1d5e8pl/Z2l0QGdpdGh1Yi5jb206cG9seXN0YXQvcHkyZW8uZ2l0
Reading runEO/pom.xml ...
Reading .gitignore ...
Reading README.md ...
Reading Dockerfile ...
Reading transpiler/pom.xml ...
Reading transpiler/src/main/eo/preface/continue.eo ...
Reading transpiler/src/main/eo/preface/fakeclasses.eo ...
Reading transpiler/src/main/eo/preface/xValueError.eo ...
Reading transpiler/src/main/eo/preface/xiter.eo ...
Reading transpiler/src/main/eo/preface/pyfloat.eo ...
Reading transpiler/src/main/eo/preface/xTypeError.eo ...
Reading transpiler/src/main/eo/preface/pyint.eo ...
Reading transpiler/src/main/eo/preface/xZeroDivisionError.eo ...
Reading transpiler/src/main/eo/preface/break.eo ...
Reading transpiler/src/main/eo/preface/xrange.eo ...
Reading transpiler/src/main/eo/preface/xAssertionError.eo ...
Reading transpiler/src/main/eo/preface/xsum.eo ...
Reading transpiler/src/main/eo/preface/pycomplex.eo ...
Reading transpiler/src/main/eo/preface/pybool.eo ...
Reading transpiler/src/main/eo/preface/raiseNothing.eo ...
Reading transpiler/src/main/eo/preface/xlist.eo ...
Reading transpiler/src/main/eo/preface/newUID.eo ...
Reading transpiler/src/main/eo/preface/xmyArray.eo ...
Reading transpiler/src/main/eo/preface/raiseEmpty.eo ...
Reading transpiler/src/main/eo/preface/mkCopy.eo ...
Reading transpiler/src/main/eo/preface/xlen.eo ...
Reading transpiler/src/main/eo/preface/xstr.eo ...
Reading transpiler/src/main/eo/preface/xint.eo ...
Reading transpiler/src/main/eo/preface/xStopIteration.eo ...
Reading transpiler/src/main/eo/preface/pystring.eo ...
Reading transpiler/src/main/eo/preface/return.eo ...
Reading transpiler/src/main/eo/my-array.eo ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/PrintLinearizedMutableEOWithCage.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/Main.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/Transpile.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/FindBadConstructs.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/SimpleAnalysis.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/ExpressionPasses.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/ClosureWithCage.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/StatementPasses.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/PrintEO.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/Common.scala ...
Reading transpiler/src/main/java/org/polystat/py2eo/transpiler/dummy.java ...
Reading transpiler/src/main/python/inheritance.py ...
Reading transpiler/src/main/python/C3.py ...
Reading transpiler/src/main/python/closureRuntime.py ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/django-pom.xml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/eo/map-tests.eo ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_abstract_numbers.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_userstring.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_symtable.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_class.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_imghdr.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_uuid.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_cmd.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_index.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_smtpd.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_dict_version.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_rlcompleter.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_random.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_fileio.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_urllib2net.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_funcattrs.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_quopri.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_types.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_bool.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_codecencodings_cn.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_flufl.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_univnewlines.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_pyexpat.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_colorsys.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_compile.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_coroutines.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_linecache.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_gc.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_site.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_platform.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_property.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_functools.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_int_literal.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_audioop.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_asyncgen.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_pulldom.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_modulefinder.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_typechecks.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_unpack.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_pkgutil.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_fstring.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_with.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_userlist.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_threading_local.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_context.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_webbrowser.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_asyncore.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/README.md ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_metaclass.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_csv.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_thread.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_codecmaps_jp.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_struct.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_http_cookies.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_fractions.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_pwd.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_syslog.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_codecencodings_iso2022.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_pickletools.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_genericpath.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_asynchat.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_xdrlib.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_locale.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_codeop.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_mailbox.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_timeout.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_bufio.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_httpservers.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_dict.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_decorators.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_grp.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_imaplib.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_bigmem.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_posix.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_sndhdr.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_aifc.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_wave.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_re.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_httplib.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_codecencodings_hk.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_keywordonlyarg.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_poll.yaml ...
Reading transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_smtplib.yaml ...
ERROR: transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_smtplib.yaml; PDD::Error at transpiler/src/test/resources/org/polystat/py2eo/transpiler/testParserPrinter/test_smtplib.yaml:1122: TODO must have a leading space to become a puzzle, as this page explains: https://github.com/cqfn/pdd#how-to-format
If you can't understand the cause of this issue or you don't know how to fix it, please submit a GitHub issue, we will try to help you: https://github.com/cqfn/pdd/issues. This tool is still in its beta version and we will appreciate your feedback. Here is where you can find more documentation: https://github.com/cqfn/pdd/blob/master/README.md.
Exit code is 1

/app/objects/git_repo.rb:73:in `rescue in block in xml'
/app/objects/git_repo.rb:70:in `block in xml'
/app/vendor/ruby-2.7.5/lib/ruby/2.7.0/tempfile.rb:291:in `open'
/app/objects/git_repo.rb:69:in `xml'
/app/objects/puzzles.rb:41:in `deploy'
/app/objects/jobs/job.rb:38:in `proceed'
/app/objects/jobs/job_starred.rb:32:in `proceed'
/app/objects/jobs/job_recorded.rb:31:in `proceed'
/app/objects/jobs/job_emailed.rb:33:in `proceed'
/app/objects/jobs/job_commiterrors.rb:33:in `proceed'
/app/objects/jobs/job_detached.rb:48:in `exclusive'
/app/objects/jobs/job_detached.rb:36:in `block in proceed'
/app/objects/jobs/job_detached.rb:36:in `fork'
/app/objects/jobs/job_detached.rb:36:in `proceed'
/app/0pdd.rb:519:in `process_request'
/app/0pdd.rb:356:in `block in <top (required)>'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1686:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1686:in `block in compile!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1023:in `block (3 levels) in route!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1042:in `route_eval'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1023:in `block (2 levels) in route!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1071:in `block in process_route'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1069:in `catch'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1069:in `process_route'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1021:in `block in route!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1018:in `each'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1018:in `route!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1140:in `block in dispatch!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1112:in `block in invoke'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1112:in `catch'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1112:in `invoke'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1135:in `dispatch!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:949:in `block in call!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1112:in `block in invoke'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1112:in `catch'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1112:in `invoke'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:949:in `call!'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:938:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.2/lib/rack/protection/xss_header.rb:18:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.2/lib/rack/protection/path_traversal.rb:16:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.2/lib/rack/protection/json_csrf.rb:26:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.2/lib/rack/protection/base.rb:50:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.2/lib/rack/protection/base.rb:50:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-protection-2.2.2/lib/rack/protection/frame_options.rb:31:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.4/lib/rack/logger.rb:17:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.4/lib/rack/common_logger.rb:38:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:255:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:248:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.4/lib/rack/head.rb:12:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.4/lib/rack/method_override.rb:24:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:218:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1993:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1553:in `block in call'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1769:in `synchronize'
/app/vendor/bundle/ruby/2.7.0/gems/sinatra-2.2.2/lib/sinatra/base.rb:1553:in `call'
/app/vendor/bundle/ruby/2.7.0/gems/rack-2.2.4/lib/rack/handler/webrick.rb:95:in `service'
/app/vendor/ruby-2.7.5/lib/ruby/2.7.0/webrick/httpserver.rb:140:in `service'
/app/vendor/ruby-2.7.5/lib/ruby/2.7.0/webrick/httpserver.rb:96:in `run'
/app/vendor/ruby-2.7.5/lib/ruby/2.7.0/webrick/server.rb:307:in `block in start_thread'

Please sign in to comment.