Skip to content

Commit

Permalink
kinda support 2/3 of annotation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dours committed Sep 14, 2022
1 parent 99ec19f commit 7dab35f
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 15 deletions.
8 changes: 8 additions & 0 deletions transpiler/src/main/eo/preface/xmyArray.eo
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
+alias xfakeclasses preface.xfakeclasses
+alias stdout org.eolang.io.stdout
+alias sprintf org.eolang.txt.sprintf
+alias xAssertionError preface.xAssertionError

[] > xmyArray
[initValue] > ap
Expand Down Expand Up @@ -130,6 +131,13 @@
stackUp.forward ((goto (xStopIteration.ap.@)).result)
stackUp.forward (return (value.get (pos)))
123
[] > xsetAtIndex
[self key val] > ap
[stackUp] > @
seq > @
stdout "xsetAtIndex not supported for array\n"
stackUp.forward (goto (xAssertionError.ap.@))
0
[] > x__iter__
[self] > ap
[stackUp] > @
Expand Down
32 changes: 23 additions & 9 deletions transpiler/src/main/eo/preface/xmyMap.eo
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
+alias mkCopy preface.mkCopy
+alias pair preface.pair
+alias xmyArray preface.xmyArray
+alias xAssertionError preface.xAssertionError

[] > xmyMap
[value] > wrapper
Expand Down Expand Up @@ -38,6 +39,20 @@
i.write (i.plus 1)
stdout "get left the loop\n"
0
[key] > get
memory 0 > i
cage 0 > result
seq > @
(i.lt (value.length)).while
[unused]
seq > @
if.
(value.get i).value.fst.eq key
result.write ((value.get i).value.snd)
0
i.write (i.plus 1)
0
result
[] > xget-internal
[key] > ap
[stackUp] > @
Expand Down Expand Up @@ -90,15 +105,14 @@
self.value.write (tmp.copy.with (wrapper (pair ((kv.copy)) ((vv.copy)))))
stackUp.forward (return 0)
123
[key val] > set-at-index
(goto ((x__contains__.ap self key).@)).result.if > @
0
seq > @
mkCopy (self.value) > tmp
mkCopy (key) > kv
mkCopy (val) > vv
self.value.write (tmp.copy.with (wrapper (pair ((kv.copy)) ((vv.copy)))))
123
[] > xsetAtIndex
[self key val] > ap
[stackUp] > @
(goto ((x__contains__.ap self key).@)).result.if > @
seq
stdout "NOT IMPLEMENTED\n"
stackUp.forward (goto (xAssertionError.ap.@))
stackUp.forward (goto ((xadd.ap self key val).@))
[] > xappend
[self key] > ap
[stackUp] > @
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ object Transpile {
val rmAssert = GenericStatementPasses.procStatement(SimplifyAssert.apply)(rmWith._1, rmWith._2)
debugPrinter(rmAssert._1, "afterRmAssert")
val rmAnnot = GenericStatementPasses.procStatement(SimplifyAnnotation.simplify)(rmAssert._1, rmAssert._2)
debugPrinter(rmAnnot._1, "afterRmAssertAnnot")
debugPrinter(rmAnnot._1, "afterRmAnnot")
val preRmExcepts = GenericStatementPasses.procStatement(SimplifyExceptions.preSimplifyExcepts)(rmAnnot._1, rmAnnot._2)
debugPrinter(preRmExcepts._1, "afterRmExcepts")
val rmExcepts = GenericStatementPasses.procStatement(SimplifyExceptions.simplifyExcepts)(preRmExcepts._1, preRmExcepts._2)
Expand All @@ -66,8 +66,8 @@ object Transpile {
debugPrinter(simIf._1, "afterSimplifyIf")
val simAssList = GenericStatementPasses.procStatement(SimplifyAssignmentList.apply)(simIf._1, simIf._2)
debugPrinter(simAssList._1, "simplifyAssList")
val simAss2Index = GenericStatementPasses.procStatement(SimplifyAssignmentList.apply)(simAssList._1, simAssList._2)
debugPrinter(simAssList._1, "simplifyAss2Index")
val simAss2Index = GenericStatementPasses.procStatement(SimplifyAssigmentToIndex.simplify)(simAssList._1, simAssList._2)
debugPrinter(simAss2Index._1, "simplifyAss2Index")
val simCompr = GenericStatementPasses.procExprInStatement((SimplifyComprehension.apply))(simAss2Index._1, simAss2Index._2)
debugPrinter(simCompr._1, "afterSimplifyCollectionComprehension")
val simForAgain = GenericStatementPasses.procStatement(SimplifyFor.apply)(simCompr._1, simCompr._2)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
enabled: False
enabled: True
python: |
def test():
class Cls:
pass
x = 111
y = 11
c = Cls()
c.x: int = 0 # Annotates c.x with int.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
enabled: False
enabled: True
python: |
def test():
d = {}
Expand Down

1 comment on commit 7dab35f

@0pdd
Copy link
Member

@0pdd 0pdd commented on 7dab35f Sep 14, 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/0pdd20220914-13-1ptubij/Z2l0QGdpdGh1Yi5jb206cG9seXN0YXQvcHkyZW8uZ2l0 && pdd -v -f /tmp/20220914-20996-1gt065f [1]: + set -e + set -o pipefail + cd /tmp/0pdd20220914-13-1ptubij/Z2l0QGdpdGh1Yi5jb206cG9seXN0YXQvcHkyZW8uZ2l0 + pdd -v -f...

Please, copy and paste this stack trace to GitHub:

UserError
set -x && set -e && set -o pipefail && cd /tmp/0pdd20220914-13-1ptubij/Z2l0QGdpdGh1Yi5jb206cG9seXN0YXQvcHkyZW8uZ2l0 && pdd -v -f /tmp/20220914-20996-1gt065f [1]:
+ set -e
+ set -o pipefail
+ cd /tmp/0pdd20220914-13-1ptubij/Z2l0QGdpdGh1Yi5jb206cG9seXN0YXQvcHkyZW8uZ2l0
+ pdd -v -f /tmp/20220914-20996-1gt065f

My version is 0.21.3
Ruby version is 2.7.5 at x86_64-linux
Reading from root dir /tmp/0pdd20220914-13-1ptubij/Z2l0QGdpdGh1Yi5jb206cG9seXN0YXQvcHkyZW8uZ2l0
Reading runEO/pom.xml ...
Reading .gitignore ...
Reading README.md ...
Reading Dockerfile ...
Reading transpiler/pom.xml ...
Reading transpiler/src/main/eo/preface/xmyMap.eo ...
Reading transpiler/src/main/eo/preface/continue.eo ...
Reading transpiler/src/main/eo/preface/pair.eo ...
Reading transpiler/src/main/eo/preface/xfakeclasses.eo ...
Reading transpiler/src/main/eo/preface/xValueError.eo ...
Reading transpiler/src/main/eo/preface/xBaseException.eo ...
Reading transpiler/src/main/eo/preface/xmap.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/xfilter.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/ConcatStringLiteral.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/SimplifyComprehension.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/ExtractAllCalls.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/SimplifyFor.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/AddExplicitConstructionOfCollection.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/SimplifyExceptions.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/PrefixIdentsWithX.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/ComputeAccessibleIdents.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/SimplifyIf.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/SimplifyAssert.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/SimplifyAssignmentList.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/MarkUnsupportedConstructions.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/PrintEO.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/GenericStatementPasses.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/SimplifyWith.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/AddExplicitSelfToMethodCalls.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/GenericExpressionPasses.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/Common.scala ...
Reading transpiler/src/main/scala/org/polystat/py2eo/transpiler/AnalysisSupport.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:518:in `process_request'
/app/0pdd.rb:355: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.