Advertisement
Guest User

Untitled

a guest
Jun 16th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.54 KB | None | 0 0
  1. Dependencies are satisfied
  2. Building: tfweb
  3. Warning: Zlib is deprecated, use Compress::Zlib
  4. Error target tfweb failed to compile:
  5. In /usr/share/crystal/src/log/entry.cr:42:27
  6.  
  7.  42 | getter timestamp = Time.local
  8. ^----
  9. Error: instantiating 'Time.class#local()'
  10.  
  11.  
  12. In /usr/share/crystal/src/time.cr:361:49
  13.  
  14.  361 | def self.local(location : Location = Location.local) : Time
  15. ^----
  16. Error: instantiating 'Time::Location.class#local()'
  17.  
  18.  
  19. In /usr/share/crystal/src/time/location.cr:320:38
  20.  
  21.  320 | class_property(local : Location) { load_local }
  22. ^---------
  23. Error: instantiating 'load_local()'
  24.  
  25.  
  26. In /usr/share/crystal/src/time/location.cr:339:44
  27.  
  28.  339 | if localtime = Crystal::System::Time.load_localtime
  29. ^-------------
  30. Error: instantiating 'Crystal::System::Time:Module#load_localtime()'
  31.  
  32.  
  33. In /usr/share/crystal/src/crystal/system/unix/time.cr:58:14
  34.  
  35.  58 | ::File.open(LOCALTIME) do |file|
  36. ^---
  37. Error: instantiating 'File.class#open(String)'
  38.  
  39.  
  40. In /usr/share/crystal/src/file.cr:627:12
  41.  
  42.  627 | file = new filename, mode, perm, encoding, invalid
  43. ^--
  44. Error: instantiating 'new(String, String, File::Permissions, Nil, Nil)'
  45.  
  46.  
  47. In /usr/share/crystal/src/file.cr:112:5
  48.  
  49.  112 | new(filename, fd, blocking: true, encoding: encoding, invalid: invalid)
  50. ^--
  51. Error: instantiating 'new(String, Int32)'
  52.  
  53.  
  54. In /usr/share/crystal/src/file.cr:81:11
  55.  
  56.  81 | private def initialize(@path, fd, blocking = false, encoding = nil, invalid = nil)
  57. ^------------
  58. Error: instantiating 'GC:Module#add_finalizer(File)'
  59.  
  60.  
  61. In /usr/share/crystal/src/gc/boehm.cr:155:5
  62.  
  63.  155 | add_finalizer_impl(object)
  64. ^-----------------
  65. Error: instantiating 'add_finalizer_impl(File)'
  66.  
  67.  
  68. In /usr/share/crystal/src/gc/boehm.cr:164:33
  69.  
  70.  164 | ->(obj, data) { obj.as(T).finalize },
  71. ^-------
  72. Error: instantiating 'File#finalize()'
  73.  
  74.  
  75. In /usr/share/crystal/src/io/file_descriptor.cr:139:5
  76.  
  77.  139 | close rescue nil
  78. ^----
  79. Error: instantiating 'close()'
  80.  
  81.  
  82. In /usr/share/crystal/src/io/buffered.cr:236:5
  83.  
  84.  236 | flush if @out_count > 0
  85. ^----
  86. Error: instantiating 'flush()'
  87.  
  88.  
  89. In /usr/share/crystal/src/io/buffered.cr:228:5
  90.  
  91.  228 | unbuffered_write(Slice.new(out_buffer, @out_count)) if @out_count > 0
  92. ^---------------
  93. Error: instantiating 'unbuffered_write(Slice(UInt8))'
  94.  
  95.  
  96. In /usr/share/crystal/src/crystal/system/unix/file_descriptor.cr:21:5
  97.  
  98.  21 | evented_write(slice, "Error writing file") do |slice|
  99. ^------------
  100. Error: instantiating 'evented_write(Slice(UInt8), String)'
  101.  
  102.  
  103. In /usr/share/crystal/src/io/evented.cr:72:7
  104.  
  105.  72 | loop do
  106. ^---
  107. Error: instantiating 'loop()'
  108.  
  109.  
  110. In /usr/share/crystal/src/io/evented.cr:72:7
  111.  
  112.  72 | loop do
  113. ^---
  114. Error: instantiating 'loop()'
  115.  
  116.  
  117. In /usr/share/crystal/src/io/evented.cr:80:13
  118.  
  119.  80 | wait_writable
  120. ^------------
  121. Error: instantiating 'wait_writable()'
  122.  
  123.  
  124. In /usr/share/crystal/src/io/evented.cr:144:3
  125.  
  126.  144 | def wait_writable(timeout = @write_timeout)
  127. ^------------
  128. Error: instantiating 'wait_writable((Time::Span | Nil))'
  129.  
  130.  
  131. In /usr/share/crystal/src/io/evented.cr:145:5
  132.  
  133.  145 | wait_writable(timeout: timeout) { |err| raise err }
  134. ^------------
  135. Error: instantiating 'wait_writable()'
  136.  
  137.  
  138. In /usr/share/crystal/src/io/evented.cr:153:24
  139.  
  140.  153 | Crystal::Scheduler.reschedule
  141. ^---------
  142. Error: instantiating 'Crystal::Scheduler.class#reschedule()'
  143.  
  144.  
  145. In /usr/share/crystal/src/crystal/scheduler.cr:44:30
  146.  
  147.  44 | Thread.current.scheduler.reschedule
  148. ^---------
  149. Error: instantiating 'Crystal::Scheduler#reschedule()'
  150.  
  151.  
  152. In /usr/share/crystal/src/crystal/scheduler.cr:144:5
  153.  
  154.  144 | loop do
  155. ^---
  156. Error: instantiating 'loop()'
  157.  
  158.  
  159. In /usr/share/crystal/src/crystal/scheduler.cr:144:5
  160.  
  161.  144 | loop do
  162. ^---
  163. Error: instantiating 'loop()'
  164.  
  165.  
  166. In /usr/share/crystal/src/crystal/scheduler.cr:147:20
  167.  
  168.  147 | runnable.resume
  169. ^-----
  170. Error: instantiating 'Fiber#resume()'
  171.  
  172.  
  173. In /usr/share/crystal/src/fiber.cr:197:24
  174.  
  175.  197 | Crystal::Scheduler.resume(self)
  176. ^-----
  177. Error: instantiating 'Crystal::Scheduler.class#resume(Fiber)'
  178.  
  179.  
  180. In /usr/share/crystal/src/crystal/scheduler.cr:48:30
  181.  
  182.  48 | Thread.current.scheduler.resume(fiber)
  183. ^-----
  184. Error: instantiating 'Crystal::Scheduler#resume(Fiber)'
  185.  
  186.  
  187. In /usr/share/crystal/src/crystal/scheduler.cr:91:5
  188.  
  189.  91 | validate_resumable(fiber)
  190. ^-----------------
  191. Error: instantiating 'validate_resumable(Fiber)'
  192.  
  193.  
  194. In /usr/share/crystal/src/crystal/scheduler.cr:111:7
  195.  
  196.  111 | fatal_resume_error(fiber, "tried to resume a dead fiber")
  197. ^-----------------
  198. Error: instantiating 'fatal_resume_error(Fiber, String)'
  199.  
  200.  
  201. In /usr/share/crystal/src/crystal/scheduler.cr:128:5
  202.  
  203.  128 | exit 1
  204. ^---
  205. Error: instantiating 'exit(Int32)'
  206.  
  207.  
  208. In /usr/share/crystal/src/kernel.cr:483:36
  209.  
  210.  483 | status = Crystal::AtExitHandlers.run status
  211. ^--
  212. Error: instantiating 'Crystal::AtExitHandlers:Module#run(Int32)'
  213.  
  214.  
  215. In /usr/share/crystal/src/crystal/at_exit_handlers.cr:9:3
  216.  
  217.  9 | def self.run(status, exception = nil)
  218. ^--
  219. Error: instantiating 'run(Int32, Nil)'
  220.  
  221.  
  222. In /usr/share/crystal/src/crystal/at_exit_handlers.cr:16:89
  223.  
  224.  16 | Crystal::System.print_error "Error running at_exit handler: %s\n", handler_ex.message || ""
  225. ^------
  226. Error: instantiating 'Exception+#message()'
  227.  
  228.  
  229. In lib/crinja/src/runtime/context.cr:233:40
  230.  
  231.  233 | "Tag cycle exception #{@type}. #{super}"
  232. ^----
  233. Error: instantiating 'super()'
  234.  
  235.  
  236. In lib/crinja/src/error.cr:5:12
  237.  
  238.  5 | String.build do |io|
  239. ^----
  240. Error: instantiating 'String.class#build()'
  241.  
  242.  
  243. In /usr/share/crystal/src/string.cr:271:21
  244.  
  245.  271 | String::Builder.build(capacity) do |builder|
  246. ^----
  247. Error: instantiating 'String::Builder.class#build(Int32)'
  248.  
  249.  
  250. In /usr/share/crystal/src/string.cr:271:21
  251.  
  252.  271 | String::Builder.build(capacity) do |builder|
  253. ^----
  254. Error: instantiating 'String::Builder.class#build(Int32)'
  255.  
  256.  
  257. In lib/crinja/src/error.cr:5:12
  258.  
  259.  5 | String.build do |io|
  260. ^----
  261. Error: instantiating 'String.class#build()'
  262.  
  263.  
  264. In lib/crinja/src/error.cr:17:17
  265.  
  266.  17 | io << c.message
  267. ^------
  268. Error: instantiating 'Exception+#message()'
  269.  
  270.  
  271. In lib/crinja/src/arguments.cr:109:10
  272.  
  273.  109 | "#{super} (called: #{callee}#{arg})"
  274. ^----
  275. Error: instantiating 'super()'
  276.  
  277.  
  278. In lib/crinja/src/error.cr:5:12
  279.  
  280.  5 | String.build do |io|
  281. ^----
  282. Error: instantiating 'String.class#build()'
  283.  
  284.  
  285. In /usr/share/crystal/src/string.cr:271:21
  286.  
  287.  271 | String::Builder.build(capacity) do |builder|
  288. ^----
  289. Error: instantiating 'String::Builder.class#build(Int32)'
  290.  
  291.  
  292. In /usr/share/crystal/src/string.cr:271:21
  293.  
  294.  271 | String::Builder.build(capacity) do |builder|
  295. ^----
  296. Error: instantiating 'String::Builder.class#build(Int32)'
  297.  
  298.  
  299. In lib/crinja/src/error.cr:5:12
  300.  
  301.  5 | String.build do |io|
  302. ^----
  303. Error: instantiating 'String.class#build()'
  304.  
  305.  
  306. In lib/crinja/src/error.cr:17:17
  307.  
  308.  17 | io << c.message
  309. ^------
  310. Error: instantiating 'Exception+#message()'
  311.  
  312.  
  313. In lib/crinja/src/error.cr:156:39
  314.  
  315.  156 | "#{variable_name} is undefined. #{super}"
  316. ^----
  317. Error: instantiating 'super()'
  318.  
  319.  
  320. In lib/crinja/src/error.cr:5:12
  321.  
  322.  5 | String.build do |io|
  323. ^----
  324. Error: instantiating 'String.class#build()'
  325.  
  326.  
  327. In /usr/share/crystal/src/string.cr:271:21
  328.  
  329.  271 | String::Builder.build(capacity) do |builder|
  330. ^----
  331. Error: instantiating 'String::Builder.class#build(Int32)'
  332.  
  333.  
  334. In /usr/share/crystal/src/string.cr:271:21
  335.  
  336.  271 | String::Builder.build(capacity) do |builder|
  337. ^----
  338. Error: instantiating 'String::Builder.class#build(Int32)'
  339.  
  340.  
  341. In lib/crinja/src/error.cr:5:12
  342.  
  343.  5 | String.build do |io|
  344. ^----
  345. Error: instantiating 'String.class#build()'
  346.  
  347.  
  348. In lib/crinja/src/error.cr:17:17
  349.  
  350.  17 | io << c.message
  351. ^------
  352. Error: instantiating 'Exception+#message()'
  353.  
  354.  
  355. In lib/crinja/src/error.cr:5:12
  356.  
  357.  5 | String.build do |io|
  358. ^----
  359. Error: instantiating 'String.class#build()'
  360.  
  361.  
  362. In /usr/share/crystal/src/string.cr:271:21
  363.  
  364.  271 | String::Builder.build(capacity) do |builder|
  365. ^----
  366. Error: instantiating 'String::Builder.class#build(Int32)'
  367.  
  368.  
  369. In /usr/share/crystal/src/string.cr:271:21
  370.  
  371.  271 | String::Builder.build(capacity) do |builder|
  372. ^----
  373. Error: instantiating 'String::Builder.class#build(Int32)'
  374.  
  375.  
  376. In lib/crinja/src/error.cr:5:12
  377.  
  378.  5 | String.build do |io|
  379. ^----
  380. Error: instantiating 'String.class#build()'
  381.  
  382.  
  383. In lib/crinja/src/error.cr:30:9
  384.  
  385.  30 | highlight_source_code(io)
  386. ^--------------------
  387. Error: instantiating 'highlight_source_code(String::Builder)'
  388.  
  389.  
  390. In lib/crinja/src/error.cr:39:3
  391.  
  392.  39 | def highlight_source_code(io, lines_before = 2, lines_after = 2)
  393. ^--------------------
  394. Error: instantiating 'highlight_source_code(String::Builder, Int32, Int32)'
  395.  
  396.  
  397. In lib/crinja/src/error.cr:51:28
  398.  
  399.  51 | (start_line..end_line).each do |i|
  400. ^---
  401. Error: instantiating 'Range(Int32, Int32)#each()'
  402.  
  403.  
  404. In lib/crinja/src/error.cr:51:28
  405.  
  406.  51 | (start_line..end_line).each do |i|
  407. ^---
  408. Error: instantiating 'Range(Int32, Int32)#each()'
  409.  
  410.  
  411. In lib/crinja/src/error.cr:53:10
  412.  
  413.  53 | io.printf " %*d | ", linowidth, i
  414. ^-----
  415. Error: instantiating 'String::Builder#printf(String, Int32, Int32)'
  416.  
  417.  
  418. In /usr/share/crystal/src/io.cr:265:5
  419.  
  420.  265 | printf format_string, args
  421. ^-----
  422. Error: instantiating 'printf(String, Tuple(Int32, Int32))'
  423.  
  424.  
  425. In /usr/share/crystal/src/io.cr:270:68
  426.  
  427.  270 | String::Formatter(typeof(args)).new(format_string, args, self).format
  428. ^-----
  429. Error: instantiating 'String::Formatter(Tuple(Int32, Int32))#format()'
  430.  
  431.  
  432. In /usr/share/crystal/src/string/formatter.cr:21:9
  433.  
  434.  21 | consume_percent
  435. ^--------------
  436. Error: instantiating 'consume_percent()'
  437.  
  438.  
  439. In /usr/share/crystal/src/string/formatter.cr:39:7
  440.  
  441.  39 | consume_type flags
  442. ^-----------
  443. Error: instantiating 'consume_type(String::Formatter::Flags)'
  444.  
  445.  
  446. In /usr/share/crystal/src/string/formatter.cr:175:11
  447.  
  448.  175 | private def consume_type(flags, arg = nil, arg_specified = false)
  449. ^-----------
  450. Error: instantiating 'consume_type(String::Formatter::Flags, Nil, Bool)'
  451.  
  452.  
  453. In /usr/share/crystal/src/string/formatter.cr:178:7
  454.  
  455.  178 | char flags, arg, arg_specified
  456. ^---
  457. Error: instantiating 'char(String::Formatter::Flags, Nil, Bool)'
  458.  
  459.  
  460. In /usr/share/crystal/src/string/formatter.cr:207:5
  461.  
  462.  207 | pad 1, flags if flags.left_padding?
  463. ^--
  464. Error: instantiating 'pad(Int32, String::Formatter::Flags)'
  465.  
  466.  
  467. In /usr/share/crystal/src/string/formatter.cr:309:11
  468.  
  469.  309 | @io << padding_char
  470. ^-
  471. Error: instantiating 'IO+#<<(Char)'
  472.  
  473.  
  474. In /usr/share/crystal/src/io.cr:175:9
  475.  
  476.  175 | obj.to_s self
  477. ^---
  478. Error: instantiating 'Char#to_s(IO+)'
  479.  
  480.  
  481. In /usr/share/crystal/src/char.cr:773:12
  482.  
  483.  773 | io.write_utf8 Slice.new(pointerof(byte), 1)
  484. ^---------
  485. Error: instantiating 'IO+#write_utf8(Slice(UInt8))'
  486.  
  487.  
  488. In /usr/share/crystal/src/io.cr:469:15
  489.  
  490.  469 | encoder.write(self, slice)
  491. ^----
  492. Error: instantiating 'IO::Encoder#write(IO+, Slice(UInt8))'
  493.  
  494.  
  495. In /usr/share/crystal/src/io/encoding.cr:42:30
  496.  
  497.  42 | bytes_written &+= io.write(outbuf.to_slice[0, outbuf.size - outbytesleft])
  498. ^----
  499. Error: instantiating 'IO+#write(Slice(UInt8))'
  500.  
  501.  
  502. In /usr/share/crystal/src/compress/zlib/writer.cr:52:5
  503.  
  504.  52 | write_header unless @wrote_header
  505. ^-----------
  506. Error: instantiating 'write_header()'
  507.  
  508.  
  509. In /usr/share/crystal/src/compress/zlib/writer.cr:90:9
  510.  
  511.  90 | @io.write_byte cmf
  512. ^---------
  513. Error: instantiating 'IO+#write_byte(UInt8)'
  514.  
  515.  
  516. In /usr/share/crystal/src/io/buffered.cr:177:14
  517.  
  518.  177 | return super
  519. ^----
  520. Error: instantiating 'super(UInt8)'
  521.  
  522.  
  523. In /usr/share/crystal/src/io.cr:847:5
  524.  
  525.  847 | write Slice.new(pointerof(x), 1)
  526. ^----
  527. Error: instantiating 'write(Slice(UInt8))'
  528.  
  529.  
  530. In /usr/share/crystal/src/io/buffered.cr:141:7
  531.  
  532.  141 | unbuffered_write(slice)
  533. ^---------------
  534. Error: instantiating 'unbuffered_write(Slice(UInt8))'
  535.  
  536.  
  537. In /usr/share/crystal/src/http/server/response.cr:203:9
  538.  
  539.  203 | ensure_headers_written
  540. ^---------------------
  541. Error: instantiating 'ensure_headers_written()'
  542.  
  543.  
  544. In /usr/share/crystal/src/http/server/response.cr:242:30
  545.  
  546.  242 | response.cookies.add_response_headers(response.headers)
  547. ^-------------------
  548. Error: instantiating 'HTTP::Cookies#add_response_headers(HTTP::Headers)'
  549.  
  550.  
  551. In /usr/share/crystal/src/http/cookie.cr:309:42
  552.  
  553.  309 | headers.add("Set-Cookie", cookie.to_set_cookie_header)
  554. ^-------------------
  555. Error: instantiating 'HTTP::Cookie#to_set_cookie_header()'
  556.  
  557.  
  558. In /usr/share/crystal/src/http/cookie.cr:40:14
  559.  
  560.  40 | String.build do |header|
  561. ^----
  562. Error: instantiating 'String.class#build()'
  563.  
  564.  
  565. In /usr/share/crystal/src/string.cr:271:21
  566.  
  567.  271 | String::Builder.build(capacity) do |builder|
  568. ^----
  569. Error: instantiating 'String::Builder.class#build(Int32)'
  570.  
  571.  
  572. In /usr/share/crystal/src/string.cr:271:21
  573.  
  574.  271 | String::Builder.build(capacity) do |builder|
  575. ^----
  576. Error: instantiating 'String::Builder.class#build(Int32)'
  577.  
  578.  
  579. In /usr/share/crystal/src/http/cookie.cr:40:14
  580.  
  581.  40 | String.build do |header|
  582. ^----
  583. Error: instantiating 'String.class#build()'
  584.  
  585.  
  586. In /usr/share/crystal/src/http/cookie.cr:44:37
  587.  
  588.  44 | header << "; expires=#{HTTP.format_time(expires)}" if expires
  589. ^----------
  590. Error: instantiating 'HTTP:Module#format_time(Time)'
  591.  
  592.  
  593. In /usr/share/crystal/src/http/common.cr:366:29
  594.  
  595.  366 | Time::Format::HTTP_DATE.format(time)
  596. ^-----
  597. Error: instantiating 'Time::Format::HTTP_DATE:Module#format(Time)'
  598.  
  599.  
  600. In /usr/share/crystal/src/time/format/custom/http_date.cr:41:14
  601.  
  602.  41 | String.build do |io|
  603. ^----
  604. Error: instantiating 'String.class#build()'
  605.  
  606.  
  607. In /usr/share/crystal/src/string.cr:271:21
  608.  
  609.  271 | String::Builder.build(capacity) do |builder|
  610. ^----
  611. Error: instantiating 'String::Builder.class#build(Int32)'
  612.  
  613.  
  614. In /usr/share/crystal/src/string.cr:271:21
  615.  
  616.  271 | String::Builder.build(capacity) do |builder|
  617. ^----
  618. Error: instantiating 'String::Builder.class#build(Int32)'
  619.  
  620.  
  621. In /usr/share/crystal/src/time/format/custom/http_date.cr:41:14
  622.  
  623.  41 | String.build do |io|
  624. ^----
  625. Error: instantiating 'String.class#build()'
  626.  
  627.  
  628. In /usr/share/crystal/src/time/format/custom/http_date.cr:42:9
  629.  
  630.  42 | format(time, io)
  631. ^-----
  632. Error: instantiating 'format(Time, String::Builder)'
  633.  
  634.  
  635. In /usr/share/crystal/src/time/format/custom/http_date.cr:33:17
  636.  
  637.  33 | formatter.rfc_2822(time_zone_gmt: true, two_digit_day: true)
  638. ^-------
  639. Error: instantiating 'Time::Format::Formatter#rfc_2822()'
  640.  
  641.  
  642. In /usr/share/crystal/src/time/format/custom/rfc_2822.cr:33:9
  643.  
  644.  33 | day_of_month_zero_padded
  645. ^-----------------------
  646. Error: instantiating 'day_of_month_zero_padded()'
  647.  
  648.  
  649. In /usr/share/crystal/src/time/format/formatter.cr:75:7
  650.  
  651.  75 | pad2 time.day, '0'
  652. ^---
  653. Error: instantiating 'pad2(Int32, Char)'
  654.  
  655.  
  656. In /usr/share/crystal/src/time/format/formatter.cr:250:10
  657.  
  658.  250 | io.write_byte padding.ord.to_u8 if value < 10
  659. ^---------
  660. Error: instantiating 'IO+#write_byte(UInt8)'
  661.  
  662.  
  663. In /usr/share/crystal/src/io/buffered.cr:177:14
  664.  
  665.  177 | return super
  666. ^----
  667. Error: instantiating 'super(UInt8)'
  668.  
  669.  
  670. In /usr/share/crystal/src/io.cr:847:5
  671.  
  672.  847 | write Slice.new(pointerof(x), 1)
  673. ^----
  674. Error: instantiating 'write(Slice(UInt8))'
  675.  
  676.  
  677. In /usr/share/crystal/src/io/buffered.cr:148:9
  678.  
  679.  148 | flush
  680. ^----
  681. Error: instantiating 'flush()'
  682.  
  683.  
  684. In /usr/share/crystal/src/io/buffered.cr:229:5
  685.  
  686.  229 | unbuffered_flush
  687. ^---------------
  688. Error: instantiating 'unbuffered_flush()'
  689.  
  690.  
  691. In /usr/share/crystal/src/openssl/ssl/socket.cr:150:13
  692.  
  693.  150 | @bio.io.flush
  694. ^----
  695. Error: instantiating 'IO+#flush()'
  696.  
  697.  
  698. In /usr/share/crystal/src/compress/zlib/writer.cr:68:15
  699.  
  700.  68 | @flate_io.flush
  701. ^----
  702. Error: instantiating 'Compress::Deflate::Writer#flush()'
  703.  
  704.  
  705. In /usr/share/crystal/src/compress/deflate/writer.cr:62:5
  706.  
  707.  62 | consume_output LibZ::Flush::SYNC_FLUSH
  708. ^-------------
  709. Error: instantiating 'consume_output(LibZ::Flush)'
  710.  
  711.  
  712. In /usr/share/crystal/src/compress/deflate/writer.cr:92:5
  713.  
  714.  92 | loop do
  715. ^---
  716. Error: instantiating 'loop()'
  717.  
  718.  
  719. In /usr/share/crystal/src/compress/deflate/writer.cr:92:5
  720.  
  721.  92 | loop do
  722. ^---
  723. Error: instantiating 'loop()'
  724.  
  725.  
  726. In /usr/share/crystal/src/compress/deflate/writer.cr:96:15
  727.  
  728.  96 | @output.write(@buf.to_slice[0, @buf.size - @stream.avail_out])
  729. ^----
  730. Error: instantiating 'IO+#write(Slice(UInt8))'
  731.  
  732.  
  733. In /usr/share/crystal/src/http/web_socket/protocol.cr:63:9
  734.  
  735.  63 | flush(final: false)
  736. ^----
  737. Error: instantiating 'flush()'
  738.  
  739.  
  740. In /usr/share/crystal/src/http/web_socket/protocol.cr:78:18
  741.  
  742.  78 | @websocket.send(
  743. ^---
  744. Error: instantiating 'HTTP::WebSocket::Protocol#send(Slice(UInt8), HTTP::WebSocket::Protocol::Opcode)'
  745.  
  746.  
  747. In /usr/share/crystal/src/http/web_socket/protocol.cr:104:5
  748.  
  749.  104 | write_header(data.size, opcode, flags)
  750. ^-----------
  751. Error: instantiating 'write_header(Int32, HTTP::WebSocket::Protocol::Opcode, HTTP::WebSocket::Protocol::Flags)'
  752.  
  753.  
  754. In /usr/share/crystal/src/http/web_socket/protocol.cr:122:9
  755.  
  756.  122 | @io.write_byte(flags.value | opcode.value)
  757. ^---------
  758. Error: instantiating 'IO+#write_byte(UInt8)'
  759.  
  760.  
  761. In /usr/share/crystal/src/io/stapled.cr:71:13
  762.  
  763.  71 | @writer.write_byte(byte)
  764. ^---------
  765. Error: instantiating 'IO+#write_byte(UInt8)'
  766.  
  767.  
  768. In /usr/share/crystal/src/io.cr:847:5
  769.  
  770.  847 | write Slice.new(pointerof(x), 1)
  771. ^----
  772. Error: instantiating 'write(Slice(UInt8))'
  773.  
  774.  
  775. In /usr/share/crystal/src/http/server/response.cr:86:15
  776.  
  777.  86 | @output.write(slice)
  778. ^----
  779. Error: instantiating 'IO+#write(Slice(UInt8))'
  780.  
  781.  
  782. In /usr/share/crystal/src/compress/gzip/writer.cr:76:16
  783.  
  784.  76 | flate_io = write_header
  785. ^-----------
  786. Error: instantiating 'write_header()'
  787.  
  788.  
  789. In /usr/share/crystal/src/compress/gzip/writer.cr:118:14
  790.  
  791.  118 | header.to_io(@io)
  792. ^----
  793. Error: instantiating 'Compress::Gzip::Header#to_io(IO+)'
  794.  
  795.  
  796. In /usr/share/crystal/src/compress/gzip/header.cr:80:8
  797.  
  798.  80 | io.write_bytes(modification_time.to_unix.to_u32, IO::ByteFormat::LittleEndian)
  799. ^----------
  800. Error: instantiating 'IO+#write_bytes(UInt32, IO::ByteFormat::LittleEndian:Module)'
  801.  
  802.  
  803. In /usr/share/crystal/src/io.cr:865:12
  804.  
  805.  865 | object.to_io(self, format)
  806. ^----
  807. Error: instantiating 'UInt32#to_io(IO+, IO::ByteFormat::LittleEndian:Module)'
  808.  
  809.  
  810. In /usr/share/crystal/src/int.cr:677:12
  811.  
  812.  677 | format.encode(self, io)
  813. ^-----
  814. Error: instantiating 'IO::ByteFormat::LittleEndian:Module#encode(UInt32, IO+)'
  815.  
  816.  
  817. In /usr/share/crystal/src/io/byte_format.cr:123:3
  818.  
  819.  123 | {% for mod in %w(LittleEndian BigEndian) %}
  820. ^
  821. Error: expanding macro
  822.  
  823.  
  824. There was a problem expanding macro 'macro_140318741762720'
  825.  
  826. Called macro defined in /usr/share/crystal/src/io/byte_format.cr:123:3
  827.  
  828.  123 | {% for mod in %w(LittleEndian BigEndian) %}
  829.  
  830. Which expanded to:
  831.  
  832.  > 1 | 
  833.  > 2 |  module LittleEndian
  834.  > 3 | 
  835.  > 4 | 
  836.  > 5 | 
  837.  > 6 |  def self.encode(int : Int8, io : IO) : Int64
  838.  > 7 |  buffer = int.unsafe_as(StaticArray(UInt8, 1))
  839.  > 8 |  buffer.reverse! unless SystemEndian == self
  840.  > 9 |  io.write(buffer.to_slice)
  841.  > 10 |  Int64.new(1)
  842.  > 11 |  end
  843.  > 12 | 
  844.  > 13 |  def self.encode(int : Int8, bytes : Bytes) : Int64
  845.  > 14 |  buffer = int.unsafe_as(StaticArray(UInt8, 1))
  846.  > 15 |  buffer.reverse! unless SystemEndian == self
  847.  > 16 |  buffer.to_slice.copy_to(bytes)
  848.  > 17 |  Int64.new(1)
  849.  > 18 |  end
  850.  > 19 | 
  851.  > 20 |  def self.decode(type : Int8.class, io : IO)
  852.  > 21 |  buffer = uninitialized UInt8[1]
  853.  > 22 |  io.read_fully(buffer.to_slice)
  854.  > 23 |  buffer.reverse! unless SystemEndian == self
  855.  > 24 |  buffer.unsafe_as(Int8)
  856.  > 25 |  end
  857.  > 26 | 
  858.  > 27 |  def self.decode(type : Int8.class, bytes : Bytes)
  859.  > 28 |  buffer = uninitialized UInt8[1]
  860.  > 29 |  bytes.to_slice[0, 1].copy_to(buffer.to_slice)
  861.  > 30 |  buffer.reverse! unless SystemEndian == self
  862.  > 31 |  buffer.unsafe_as(Int8)
  863.  > 32 |  end
  864.  > 33 | 
  865.  > 34 | 
  866.  > 35 | 
  867.  > 36 |  def self.encode(int : UInt8, io : IO) : Int64
  868.  > 37 |  buffer = int.unsafe_as(StaticArray(UInt8, 1))
  869.  > 38 |  buffer.reverse! unless SystemEndian == self
  870.  > 39 |  io.write(buffer.to_slice)
  871.  > 40 |  Int64.new(1)
  872.  > 41 |  end
  873.  > 42 | 
  874.  > 43 |  def self.encode(int : UInt8, bytes : Bytes) : Int64
  875.  > 44 |  buffer = int.unsafe_as(StaticArray(UInt8, 1))
  876.  > 45 |  buffer.reverse! unless SystemEndian == self
  877.  > 46 |  buffer.to_slice.copy_to(bytes)
  878.  > 47 |  Int64.new(1)
  879.  > 48 |  end
  880.  > 49 | 
  881.  > 50 |  def self.decode(type : UInt8.class, io : IO)
  882.  > 51 |  buffer = uninitialized UInt8[1]
  883.  > 52 |  io.read_fully(buffer.to_slice)
  884.  > 53 |  buffer.reverse! unless SystemEndian == self
  885.  > 54 |  buffer.unsafe_as(UInt8)
  886.  > 55 |  end
  887.  > 56 | 
  888.  > 57 |  def self.decode(type : UInt8.class, bytes : Bytes)
  889.  > 58 |  buffer = uninitialized UInt8[1]
  890.  > 59 |  bytes.to_slice[0, 1].copy_to(buffer.to_slice)
  891.  > 60 |  buffer.reverse! unless SystemEndian == self
  892.  > 61 |  buffer.unsafe_as(UInt8)
  893.  > 62 |  end
  894.  > 63 | 
  895.  > 64 | 
  896.  > 65 | 
  897.  > 66 |  def self.encode(int : Int16, io : IO) : Int64
  898.  > 67 |  buffer = int.unsafe_as(StaticArray(UInt8, 2))
  899.  > 68 |  buffer.reverse! unless SystemEndian == self
  900.  > 69 |  io.write(buffer.to_slice)
  901.  > 70 |  Int64.new(2)
  902.  > 71 |  end
  903.  > 72 | 
  904.  > 73 |  def self.encode(int : Int16, bytes : Bytes) : Int64
  905.  > 74 |  buffer = int.unsafe_as(StaticArray(UInt8, 2))
  906.  > 75 |  buffer.reverse! unless SystemEndian == self
  907.  > 76 |  buffer.to_slice.copy_to(bytes)
  908.  > 77 |  Int64.new(2)
  909.  > 78 |  end
  910.  > 79 | 
  911.  > 80 |  def self.decode(type : Int16.class, io : IO)
  912.  > 81 |  buffer = uninitialized UInt8[2]
  913.  > 82 |  io.read_fully(buffer.to_slice)
  914.  > 83 |  buffer.reverse! unless SystemEndian == self
  915.  > 84 |  buffer.unsafe_as(Int16)
  916.  > 85 |  end
  917.  > 86 | 
  918.  > 87 |  def self.decode(type : Int16.class, bytes : Bytes)
  919.  > 88 |  buffer = uninitialized UInt8[2]
  920.  > 89 |  bytes.to_slice[0, 2].copy_to(buffer.to_slice)
  921.  > 90 |  buffer.reverse! unless SystemEndian == self
  922.  > 91 |  buffer.unsafe_as(Int16)
  923.  > 92 |  end
  924.  > 93 | 
  925.  > 94 | 
  926.  > 95 | 
  927.  > 96 |  def self.encode(int : UInt16, io : IO) : Int64
  928.  > 97 |  buffer = int.unsafe_as(StaticArray(UInt8, 2))
  929.  > 98 |  buffer.reverse! unless SystemEndian == self
  930.  > 99 |  io.write(buffer.to_slice)
  931.  > 100 |  Int64.new(2)
  932.  > 101 |  end
  933.  > 102 | 
  934.  > 103 |  def self.encode(int : UInt16, bytes : Bytes) : Int64
  935.  > 104 |  buffer = int.unsafe_as(StaticArray(UInt8, 2))
  936.  > 105 |  buffer.reverse! unless SystemEndian == self
  937.  > 106 |  buffer.to_slice.copy_to(bytes)
  938.  > 107 |  Int64.new(2)
  939.  > 108 |  end
  940.  > 109 | 
  941.  > 110 |  def self.decode(type : UInt16.class, io : IO)
  942.  > 111 |  buffer = uninitialized UInt8[2]
  943.  > 112 |  io.read_fully(buffer.to_slice)
  944.  > 113 |  buffer.reverse! unless SystemEndian == self
  945.  > 114 |  buffer.unsafe_as(UInt16)
  946.  > 115 |  end
  947.  > 116 | 
  948.  > 117 |  def self.decode(type : UInt16.class, bytes : Bytes)
  949.  > 118 |  buffer = uninitialized UInt8[2]
  950.  > 119 |  bytes.to_slice[0, 2].copy_to(buffer.to_slice)
  951.  > 120 |  buffer.reverse! unless SystemEndian == self
  952.  > 121 |  buffer.unsafe_as(UInt16)
  953.  > 122 |  end
  954.  > 123 | 
  955.  > 124 | 
  956.  > 125 | 
  957.  > 126 |  def self.encode(int : Int32, io : IO) : Int64
  958.  > 127 |  buffer = int.unsafe_as(StaticArray(UInt8, 4))
  959.  > 128 |  buffer.reverse! unless SystemEndian == self
  960.  > 129 |  io.write(buffer.to_slice)
  961.  > 130 |  Int64.new(4)
  962.  > 131 |  end
  963.  > 132 | 
  964.  > 133 |  def self.encode(int : Int32, bytes : Bytes) : Int64
  965.  > 134 |  buffer = int.unsafe_as(StaticArray(UInt8, 4))
  966.  > 135 |  buffer.reverse! unless SystemEndian == self
  967.  > 136 |  buffer.to_slice.copy_to(bytes)
  968.  > 137 |  Int64.new(4)
  969.  > 138 |  end
  970.  > 139 | 
  971.  > 140 |  def self.decode(type : Int32.class, io : IO)
  972.  > 141 |  buffer = uninitialized UInt8[4]
  973.  > 142 |  io.read_fully(buffer.to_slice)
  974.  > 143 |  buffer.reverse! unless SystemEndian == self
  975.  > 144 |  buffer.unsafe_as(Int32)
  976.  > 145 |  end
  977.  > 146 | 
  978.  > 147 |  def self.decode(type : Int32.class, bytes : Bytes)
  979.  > 148 |  buffer = uninitialized UInt8[4]
  980.  > 149 |  bytes.to_slice[0, 4].copy_to(buffer.to_slice)
  981.  > 150 |  buffer.reverse! unless SystemEndian == self
  982.  > 151 |  buffer.unsafe_as(Int32)
  983.  > 152 |  end
  984.  > 153 | 
  985.  > 154 | 
  986.  > 155 | 
  987.  > 156 |  def self.encode(int : UInt32, io : IO) : Int64
  988.  > 157 |  buffer = int.unsafe_as(StaticArray(UInt8, 4))
  989.  > 158 |  buffer.reverse! unless SystemEndian == self
  990.  > 159 |  io.write(buffer.to_slice)
  991.  > 160 |  Int64.new(4)
  992.  > 161 |  end
  993.  > 162 | 
  994.  > 163 |  def self.encode(int : UInt32, bytes : Bytes) : Int64
  995.  > 164 |  buffer = int.unsafe_as(StaticArray(UInt8, 4))
  996.  > 165 |  buffer.reverse! unless SystemEndian == self
  997.  > 166 |  buffer.to_slice.copy_to(bytes)
  998.  > 167 |  Int64.new(4)
  999.  > 168 |  end
  1000.  > 169 | 
  1001.  > 170 |  def self.decode(type : UInt32.class, io : IO)
  1002.  > 171 |  buffer = uninitialized UInt8[4]
  1003.  > 172 |  io.read_fully(buffer.to_slice)
  1004.  > 173 |  buffer.reverse! unless SystemEndian == self
  1005.  > 174 |  buffer.unsafe_as(UInt32)
  1006.  > 175 |  end
  1007.  > 176 | 
  1008.  > 177 |  def self.decode(type : UInt32.class, bytes : Bytes)
  1009.  > 178 |  buffer = uninitialized UInt8[4]
  1010.  > 179 |  bytes.to_slice[0, 4].copy_to(buffer.to_slice)
  1011.  > 180 |  buffer.reverse! unless SystemEndian == self
  1012.  > 181 |  buffer.unsafe_as(UInt32)
  1013.  > 182 |  end
  1014.  > 183 | 
  1015.  > 184 | 
  1016.  > 185 | 
  1017.  > 186 |  def self.encode(int : Int64, io : IO) : Int64
  1018.  > 187 |  buffer = int.unsafe_as(StaticArray(UInt8, 8))
  1019.  > 188 |  buffer.reverse! unless SystemEndian == self
  1020.  > 189 |  io.write(buffer.to_slice)
  1021.  > 190 |  Int64.new(8)
  1022.  > 191 |  end
  1023.  > 192 | 
  1024.  > 193 |  def self.encode(int : Int64, bytes : Bytes) : Int64
  1025.  > 194 |  buffer = int.unsafe_as(StaticArray(UInt8, 8))
  1026.  > 195 |  buffer.reverse! unless SystemEndian == self
  1027.  > 196 |  buffer.to_slice.copy_to(bytes)
  1028.  > 197 |  Int64.new(8)
  1029.  > 198 |  end
  1030.  > 199 | 
  1031.  > 200 |  def self.decode(type : Int64.class, io : IO)
  1032.  > 201 |  buffer = uninitialized UInt8[8]
  1033.  > 202 |  io.read_fully(buffer.to_slice)
  1034.  > 203 |  buffer.reverse! unless SystemEndian == self
  1035.  > 204 |  buffer.unsafe_as(Int64)
  1036.  > 205 |  end
  1037.  > 206 | 
  1038.  > 207 |  def self.decode(type : Int64.class, bytes : Bytes)
  1039.  > 208 |  buffer = uninitialized UInt8[8]
  1040.  > 209 |  bytes.to_slice[0, 8].copy_to(buffer.to_slice)
  1041.  > 210 |  buffer.reverse! unless SystemEndian == self
  1042.  > 211 |  buffer.unsafe_as(Int64)
  1043.  > 212 |  end
  1044.  > 213 | 
  1045.  > 214 | 
  1046.  > 215 | 
  1047.  > 216 |  def self.encode(int : UInt64, io : IO) : Int64
  1048.  > 217 |  buffer = int.unsafe_as(StaticArray(UInt8, 8))
  1049.  > 218 |  buffer.reverse! unless SystemEndian == self
  1050.  > 219 |  io.write(buffer.to_slice)
  1051.  > 220 |  Int64.new(8)
  1052.  > 221 |  end
  1053.  > 222 | 
  1054.  > 223 |  def self.encode(int : UInt64, bytes : Bytes) : Int64
  1055.  > 224 |  buffer = int.unsafe_as(StaticArray(UInt8, 8))
  1056.  > 225 |  buffer.reverse! unless SystemEndian == self
  1057.  > 226 |  buffer.to_slice.copy_to(bytes)
  1058.  > 227 |  Int64.new(8)
  1059.  > 228 |  end
  1060.  > 229 | 
  1061.  > 230 |  def self.decode(type : UInt64.class, io : IO)
  1062.  > 231 |  buffer = uninitialized UInt8[8]
  1063.  > 232 |  io.read_fully(buffer.to_slice)
  1064.  > 233 |  buffer.reverse! unless SystemEndian == self
  1065.  > 234 |  buffer.unsafe_as(UInt64)
  1066.  > 235 |  end
  1067.  > 236 | 
  1068.  > 237 |  def self.decode(type : UInt64.class, bytes : Bytes)
  1069.  > 238 |  buffer = uninitialized UInt8[8]
  1070.  > 239 |  bytes.to_slice[0, 8].copy_to(buffer.to_slice)
  1071.  > 240 |  buffer.reverse! unless SystemEndian == self
  1072.  > 241 |  buffer.unsafe_as(UInt64)
  1073.  > 242 |  end
  1074.  > 243 | 
  1075.  > 244 | 
  1076.  > 245 | 
  1077.  > 246 |  def self.encode(int : Int128, io : IO) : Int64
  1078.  > 247 |  buffer = int.unsafe_as(StaticArray(UInt8, 16))
  1079.  > 248 |  buffer.reverse! unless SystemEndian == self
  1080.  > 249 |  io.write(buffer.to_slice)
  1081.  > 250 |  Int64.new(16)
  1082.  > 251 |  end
  1083.  > 252 | 
  1084.  > 253 |  def self.encode(int : Int128, bytes : Bytes) : Int64
  1085.  > 254 |  buffer = int.unsafe_as(StaticArray(UInt8, 16))
  1086.  > 255 |  buffer.reverse! unless SystemEndian == self
  1087.  > 256 |  buffer.to_slice.copy_to(bytes)
  1088.  > 257 |  Int64.new(16)
  1089.  > 258 |  end
  1090.  > 259 | 
  1091.  > 260 |  def self.decode(type : Int128.class, io : IO)
  1092.  > 261 |  buffer = uninitialized UInt8[16]
  1093.  > 262 |  io.read_fully(buffer.to_slice)
  1094.  > 263 |  buffer.reverse! unless SystemEndian == self
  1095.  > 264 |  buffer.unsafe_as(Int128)
  1096.  > 265 |  end
  1097.  > 266 | 
  1098.  > 267 |  def self.decode(type : Int128.class, bytes : Bytes)
  1099.  > 268 |  buffer = uninitialized UInt8[16]
  1100.  > 269 |  bytes.to_slice[0, 16].copy_to(buffer.to_slice)
  1101.  > 270 |  buffer.reverse! unless SystemEndian == self
  1102.  > 271 |  buffer.unsafe_as(Int128)
  1103.  > 272 |  end
  1104.  > 273 | 
  1105.  > 274 | 
  1106.  > 275 | 
  1107.  > 276 |  def self.encode(int : UInt128, io : IO) : Int64
  1108.  > 277 |  buffer = int.unsafe_as(StaticArray(UInt8, 16))
  1109.  > 278 |  buffer.reverse! unless SystemEndian == self
  1110.  > 279 |  io.write(buffer.to_slice)
  1111.  > 280 |  Int64.new(16)
  1112.  > 281 |  end
  1113.  > 282 | 
  1114.  > 283 |  def self.encode(int : UInt128, bytes : Bytes) : Int64
  1115.  > 284 |  buffer = int.unsafe_as(StaticArray(UInt8, 16))
  1116.  > 285 |  buffer.reverse! unless SystemEndian == self
  1117.  > 286 |  buffer.to_slice.copy_to(bytes)
  1118.  > 287 |  Int64.new(16)
  1119.  > 288 |  end
  1120.  > 289 | 
  1121.  > 290 |  def self.decode(type : UInt128.class, io : IO)
  1122.  > 291 |  buffer = uninitialized UInt8[16]
  1123.  > 292 |  io.read_fully(buffer.to_slice)
  1124.  > 293 |  buffer.reverse! unless SystemEndian == self
  1125.  > 294 |  buffer.unsafe_as(UInt128)
  1126.  > 295 |  end
  1127.  > 296 | 
  1128.  > 297 |  def self.decode(type : UInt128.class, bytes : Bytes)
  1129.  > 298 |  buffer = uninitialized UInt8[16]
  1130.  > 299 |  bytes.to_slice[0, 16].copy_to(buffer.to_slice)
  1131.  > 300 |  buffer.reverse! unless SystemEndian == self
  1132.  > 301 |  buffer.unsafe_as(UInt128)
  1133.  > 302 |  end
  1134.  > 303 | 
  1135.  > 304 |  end
  1136.  > 305 | 
  1137.  > 306 |  module BigEndian
  1138.  > 307 | 
  1139.  > 308 | 
  1140.  > 309 | 
  1141.  > 310 |  def self.encode(int : Int8, io : IO) : Int64
  1142.  > 311 |  buffer = int.unsafe_as(StaticArray(UInt8, 1))
  1143.  > 312 |  buffer.reverse! unless SystemEndian == self
  1144.  > 313 |  io.write(buffer.to_slice)
  1145.  > 314 |  Int64.new(1)
  1146.  > 315 |  end
  1147.  > 316 | 
  1148.  > 317 |  def self.encode(int : Int8, bytes : Bytes) : Int64
  1149.  > 318 |  buffer = int.unsafe_as(StaticArray(UInt8, 1))
  1150.  > 319 |  buffer.reverse! unless SystemEndian == self
  1151.  > 320 |  buffer.to_slice.copy_to(bytes)
  1152.  > 321 |  Int64.new(1)
  1153.  > 322 |  end
  1154.  > 323 | 
  1155.  > 324 |  def self.decode(type : Int8.class, io : IO)
  1156.  > 325 |  buffer = uninitialized UInt8[1]
  1157.  > 326 |  io.read_fully(buffer.to_slice)
  1158.  > 327 |  buffer.reverse! unless SystemEndian == self
  1159.  > 328 |  buffer.unsafe_as(Int8)
  1160.  > 329 |  end
  1161.  > 330 | 
  1162.  > 331 |  def self.decode(type : Int8.class, bytes : Bytes)
  1163.  > 332 |  buffer = uninitialized UInt8[1]
  1164.  > 333 |  bytes.to_slice[0, 1].copy_to(buffer.to_slice)
  1165.  > 334 |  buffer.reverse! unless SystemEndian == self
  1166.  > 335 |  buffer.unsafe_as(Int8)
  1167.  > 336 |  end
  1168.  > 337 | 
  1169.  > 338 | 
  1170.  > 339 | 
  1171.  > 340 |  def self.encode(int : UInt8, io : IO) : Int64
  1172.  > 341 |  buffer = int.unsafe_as(StaticArray(UInt8, 1))
  1173.  > 342 |  buffer.reverse! unless SystemEndian == self
  1174.  > 343 |  io.write(buffer.to_slice)
  1175.  > 344 |  Int64.new(1)
  1176.  > 345 |  end
  1177.  > 346 | 
  1178.  > 347 |  def self.encode(int : UInt8, bytes : Bytes) : Int64
  1179.  > 348 |  buffer = int.unsafe_as(StaticArray(UInt8, 1))
  1180.  > 349 |  buffer.reverse! unless SystemEndian == self
  1181.  > 350 |  buffer.to_slice.copy_to(bytes)
  1182.  > 351 |  Int64.new(1)
  1183.  > 352 |  end
  1184.  > 353 | 
  1185.  > 354 |  def self.decode(type : UInt8.class, io : IO)
  1186.  > 355 |  buffer = uninitialized UInt8[1]
  1187.  > 356 |  io.read_fully(buffer.to_slice)
  1188.  > 357 |  buffer.reverse! unless SystemEndian == self
  1189.  > 358 |  buffer.unsafe_as(UInt8)
  1190.  > 359 |  end
  1191.  > 360 | 
  1192.  > 361 |  def self.decode(type : UInt8.class, bytes : Bytes)
  1193.  > 362 |  buffer = uninitialized UInt8[1]
  1194.  > 363 |  bytes.to_slice[0, 1].copy_to(buffer.to_slice)
  1195.  > 364 |  buffer.reverse! unless SystemEndian == self
  1196.  > 365 |  buffer.unsafe_as(UInt8)
  1197.  > 366 |  end
  1198.  > 367 | 
  1199.  > 368 | 
  1200.  > 369 | 
  1201.  > 370 |  def self.encode(int : Int16, io : IO) : Int64
  1202.  > 371 |  buffer = int.unsafe_as(StaticArray(UInt8, 2))
  1203.  > 372 |  buffer.reverse! unless SystemEndian == self
  1204.  > 373 |  io.write(buffer.to_slice)
  1205.  > 374 |  Int64.new(2)
  1206.  > 375 |  end
  1207.  > 376 | 
  1208.  > 377 |  def self.encode(int : Int16, bytes : Bytes) : Int64
  1209.  > 378 |  buffer = int.unsafe_as(StaticArray(UInt8, 2))
  1210.  > 379 |  buffer.reverse! unless SystemEndian == self
  1211.  > 380 |  buffer.to_slice.copy_to(bytes)
  1212.  > 381 |  Int64.new(2)
  1213.  > 382 |  end
  1214.  > 383 | 
  1215.  > 384 |  def self.decode(type : Int16.class, io : IO)
  1216.  > 385 |  buffer = uninitialized UInt8[2]
  1217.  > 386 |  io.read_fully(buffer.to_slice)
  1218.  > 387 |  buffer.reverse! unless SystemEndian == self
  1219.  > 388 |  buffer.unsafe_as(Int16)
  1220.  > 389 |  end
  1221.  > 390 | 
  1222.  > 391 |  def self.decode(type : Int16.class, bytes : Bytes)
  1223.  > 392 |  buffer = uninitialized UInt8[2]
  1224.  > 393 |  bytes.to_slice[0, 2].copy_to(buffer.to_slice)
  1225.  > 394 |  buffer.reverse! unless SystemEndian == self
  1226.  > 395 |  buffer.unsafe_as(Int16)
  1227.  > 396 |  end
  1228.  > 397 | 
  1229.  > 398 | 
  1230.  > 399 | 
  1231.  > 400 |  def self.encode(int : UInt16, io : IO) : Int64
  1232.  > 401 |  buffer = int.unsafe_as(StaticArray(UInt8, 2))
  1233.  > 402 |  buffer.reverse! unless SystemEndian == self
  1234.  > 403 |  io.write(buffer.to_slice)
  1235.  > 404 |  Int64.new(2)
  1236.  > 405 |  end
  1237.  > 406 | 
  1238.  > 407 |  def self.encode(int : UInt16, bytes : Bytes) : Int64
  1239.  > 408 |  buffer = int.unsafe_as(StaticArray(UInt8, 2))
  1240.  > 409 |  buffer.reverse! unless SystemEndian == self
  1241.  > 410 |  buffer.to_slice.copy_to(bytes)
  1242.  > 411 |  Int64.new(2)
  1243.  > 412 |  end
  1244.  > 413 | 
  1245.  > 414 |  def self.decode(type : UInt16.class, io : IO)
  1246.  > 415 |  buffer = uninitialized UInt8[2]
  1247.  > 416 |  io.read_fully(buffer.to_slice)
  1248.  > 417 |  buffer.reverse! unless SystemEndian == self
  1249.  > 418 |  buffer.unsafe_as(UInt16)
  1250.  > 419 |  end
  1251.  > 420 | 
  1252.  > 421 |  def self.decode(type : UInt16.class, bytes : Bytes)
  1253.  > 422 |  buffer = uninitialized UInt8[2]
  1254.  > 423 |  bytes.to_slice[0, 2].copy_to(buffer.to_slice)
  1255.  > 424 |  buffer.reverse! unless SystemEndian == self
  1256.  > 425 |  buffer.unsafe_as(UInt16)
  1257.  > 426 |  end
  1258.  > 427 | 
  1259.  > 428 | 
  1260.  > 429 | 
  1261.  > 430 |  def self.encode(int : Int32, io : IO) : Int64
  1262.  > 431 |  buffer = int.unsafe_as(StaticArray(UInt8, 4))
  1263.  > 432 |  buffer.reverse! unless SystemEndian == self
  1264.  > 433 |  io.write(buffer.to_slice)
  1265.  > 434 |  Int64.new(4)
  1266.  > 435 |  end
  1267.  > 436 | 
  1268.  > 437 |  def self.encode(int : Int32, bytes : Bytes) : Int64
  1269.  > 438 |  buffer = int.unsafe_as(StaticArray(UInt8, 4))
  1270.  > 439 |  buffer.reverse! unless SystemEndian == self
  1271.  > 440 |  buffer.to_slice.copy_to(bytes)
  1272.  > 441 |  Int64.new(4)
  1273.  > 442 |  end
  1274.  > 443 | 
  1275.  > 444 |  def self.decode(type : Int32.class, io : IO)
  1276.  > 445 |  buffer = uninitialized UInt8[4]
  1277.  > 446 |  io.read_fully(buffer.to_slice)
  1278.  > 447 |  buffer.reverse! unless SystemEndian == self
  1279.  > 448 |  buffer.unsafe_as(Int32)
  1280.  > 449 |  end
  1281.  > 450 | 
  1282.  > 451 |  def self.decode(type : Int32.class, bytes : Bytes)
  1283.  > 452 |  buffer = uninitialized UInt8[4]
  1284.  > 453 |  bytes.to_slice[0, 4].copy_to(buffer.to_slice)
  1285.  > 454 |  buffer.reverse! unless SystemEndian == self
  1286.  > 455 |  buffer.unsafe_as(Int32)
  1287.  > 456 |  end
  1288.  > 457 | 
  1289.  > 458 | 
  1290.  > 459 | 
  1291.  > 460 |  def self.encode(int : UInt32, io : IO) : Int64
  1292.  > 461 |  buffer = int.unsafe_as(StaticArray(UInt8, 4))
  1293.  > 462 |  buffer.reverse! unless SystemEndian == self
  1294.  > 463 |  io.write(buffer.to_slice)
  1295.  > 464 |  Int64.new(4)
  1296.  > 465 |  end
  1297.  > 466 | 
  1298.  > 467 |  def self.encode(int : UInt32, bytes : Bytes) : Int64
  1299.  > 468 |  buffer = int.unsafe_as(StaticArray(UInt8, 4))
  1300.  > 469 |  buffer.reverse! unless SystemEndian == self
  1301.  > 470 |  buffer.to_slice.copy_to(bytes)
  1302.  > 471 |  Int64.new(4)
  1303.  > 472 |  end
  1304.  > 473 | 
  1305.  > 474 |  def self.decode(type : UInt32.class, io : IO)
  1306.  > 475 |  buffer = uninitialized UInt8[4]
  1307.  > 476 |  io.read_fully(buffer.to_slice)
  1308.  > 477 |  buffer.reverse! unless SystemEndian == self
  1309.  > 478 |  buffer.unsafe_as(UInt32)
  1310.  > 479 |  end
  1311.  > 480 | 
  1312.  > 481 |  def self.decode(type : UInt32.class, bytes : Bytes)
  1313.  > 482 |  buffer = uninitialized UInt8[4]
  1314.  > 483 |  bytes.to_slice[0, 4].copy_to(buffer.to_slice)
  1315.  > 484 |  buffer.reverse! unless SystemEndian == self
  1316.  > 485 |  buffer.unsafe_as(UInt32)
  1317.  > 486 |  end
  1318.  > 487 | 
  1319.  > 488 | 
  1320.  > 489 | 
  1321.  > 490 |  def self.encode(int : Int64, io : IO) : Int64
  1322.  > 491 |  buffer = int.unsafe_as(StaticArray(UInt8, 8))
  1323.  > 492 |  buffer.reverse! unless SystemEndian == self
  1324.  > 493 |  io.write(buffer.to_slice)
  1325.  > 494 |  Int64.new(8)
  1326.  > 495 |  end
  1327.  > 496 | 
  1328.  > 497 |  def self.encode(int : Int64, bytes : Bytes) : Int64
  1329.  > 498 |  buffer = int.unsafe_as(StaticArray(UInt8, 8))
  1330.  > 499 |  buffer.reverse! unless SystemEndian == self
  1331.  > 500 |  buffer.to_slice.copy_to(bytes)
  1332.  > 501 |  Int64.new(8)
  1333.  > 502 |  end
  1334.  > 503 | 
  1335.  > 504 |  def self.decode(type : Int64.class, io : IO)
  1336.  > 505 |  buffer = uninitialized UInt8[8]
  1337.  > 506 |  io.read_fully(buffer.to_slice)
  1338.  > 507 |  buffer.reverse! unless SystemEndian == self
  1339.  > 508 |  buffer.unsafe_as(Int64)
  1340.  > 509 |  end
  1341.  > 510 | 
  1342.  > 511 |  def self.decode(type : Int64.class, bytes : Bytes)
  1343.  > 512 |  buffer = uninitialized UInt8[8]
  1344.  > 513 |  bytes.to_slice[0, 8].copy_to(buffer.to_slice)
  1345.  > 514 |  buffer.reverse! unless SystemEndian == self
  1346.  > 515 |  buffer.unsafe_as(Int64)
  1347.  > 516 |  end
  1348.  > 517 | 
  1349.  > 518 | 
  1350.  > 519 | 
  1351.  > 520 |  def self.encode(int : UInt64, io : IO) : Int64
  1352.  > 521 |  buffer = int.unsafe_as(StaticArray(UInt8, 8))
  1353.  > 522 |  buffer.reverse! unless SystemEndian == self
  1354.  > 523 |  io.write(buffer.to_slice)
  1355.  > 524 |  Int64.new(8)
  1356.  > 525 |  end
  1357.  > 526 | 
  1358.  > 527 |  def self.encode(int : UInt64, bytes : Bytes) : Int64
  1359.  > 528 |  buffer = int.unsafe_as(StaticArray(UInt8, 8))
  1360.  > 529 |  buffer.reverse! unless SystemEndian == self
  1361.  > 530 |  buffer.to_slice.copy_to(bytes)
  1362.  > 531 |  Int64.new(8)
  1363.  > 532 |  end
  1364.  > 533 | 
  1365.  > 534 |  def self.decode(type : UInt64.class, io : IO)
  1366.  > 535 |  buffer = uninitialized UInt8[8]
  1367.  > 536 |  io.read_fully(buffer.to_slice)
  1368.  > 537 |  buffer.reverse! unless SystemEndian == self
  1369.  > 538 |  buffer.unsafe_as(UInt64)
  1370.  > 539 |  end
  1371.  > 540 | 
  1372.  > 541 |  def self.decode(type : UInt64.class, bytes : Bytes)
  1373.  > 542 |  buffer = uninitialized UInt8[8]
  1374.  > 543 |  bytes.to_slice[0, 8].copy_to(buffer.to_slice)
  1375.  > 544 |  buffer.reverse! unless SystemEndian == self
  1376.  > 545 |  buffer.unsafe_as(UInt64)
  1377.  > 546 |  end
  1378.  > 547 | 
  1379.  > 548 | 
  1380.  > 549 | 
  1381.  > 550 |  def self.encode(int : Int128, io : IO) : Int64
  1382.  > 551 |  buffer = int.unsafe_as(StaticArray(UInt8, 16))
  1383.  > 552 |  buffer.reverse! unless SystemEndian == self
  1384.  > 553 |  io.write(buffer.to_slice)
  1385.  > 554 |  Int64.new(16)
  1386.  > 555 |  end
  1387.  > 556 | 
  1388.  > 557 |  def self.encode(int : Int128, bytes : Bytes) : Int64
  1389.  > 558 |  buffer = int.unsafe_as(StaticArray(UInt8, 16))
  1390.  > 559 |  buffer.reverse! unless SystemEndian == self
  1391.  > 560 |  buffer.to_slice.copy_to(bytes)
  1392.  > 561 |  Int64.new(16)
  1393.  > 562 |  end
  1394.  > 563 | 
  1395.  > 564 |  def self.decode(type : Int128.class, io : IO)
  1396.  > 565 |  buffer = uninitialized UInt8[16]
  1397.  > 566 |  io.read_fully(buffer.to_slice)
  1398.  > 567 |  buffer.reverse! unless SystemEndian == self
  1399.  > 568 |  buffer.unsafe_as(Int128)
  1400.  > 569 |  end
  1401.  > 570 | 
  1402.  > 571 |  def self.decode(type : Int128.class, bytes : Bytes)
  1403.  > 572 |  buffer = uninitialized UInt8[16]
  1404.  > 573 |  bytes.to_slice[0, 16].copy_to(buffer.to_slice)
  1405.  > 574 |  buffer.reverse! unless SystemEndian == self
  1406.  > 575 |  buffer.unsafe_as(Int128)
  1407.  > 576 |  end
  1408.  > 577 | 
  1409.  > 578 | 
  1410.  > 579 | 
  1411.  > 580 |  def self.encode(int : UInt128, io : IO) : Int64
  1412.  > 581 |  buffer = int.unsafe_as(StaticArray(UInt8, 16))
  1413.  > 582 |  buffer.reverse! unless SystemEndian == self
  1414.  > 583 |  io.write(buffer.to_slice)
  1415.  > 584 |  Int64.new(16)
  1416.  > 585 |  end
  1417.  > 586 | 
  1418.  > 587 |  def self.encode(int : UInt128, bytes : Bytes) : Int64
  1419.  > 588 |  buffer = int.unsafe_as(StaticArray(UInt8, 16))
  1420.  > 589 |  buffer.reverse! unless SystemEndian == self
  1421.  > 590 |  buffer.to_slice.copy_to(bytes)
  1422.  > 591 |  Int64.new(16)
  1423.  > 592 |  end
  1424.  > 593 | 
  1425.  > 594 |  def self.decode(type : UInt128.class, io : IO)
  1426.  > 595 |  buffer = uninitialized UInt8[16]
  1427.  > 596 |  io.read_fully(buffer.to_slice)
  1428.  > 597 |  buffer.reverse! unless SystemEndian == self
  1429.  > 598 |  buffer.unsafe_as(UInt128)
  1430.  > 599 |  end
  1431.  > 600 | 
  1432.  > 601 |  def self.decode(type : UInt128.class, bytes : Bytes)
  1433.  > 602 |  buffer = uninitialized UInt8[16]
  1434.  > 603 |  bytes.to_slice[0, 16].copy_to(buffer.to_slice)
  1435.  > 604 |  buffer.reverse! unless SystemEndian == self
  1436.  > 605 |  buffer.unsafe_as(UInt128)
  1437.  > 606 |  end
  1438.  > 607 | 
  1439.  > 608 |  end
  1440.  > 609 | 
  1441. Error: instantiating 'IO+#write(Slice(UInt8))'
  1442.  
  1443.  
  1444. In /usr/share/crystal/src/openssl/digest/digest_io.cr:51:10
  1445.  
  1446.  51 | io.write(slice)
  1447. ^----
  1448. Error: instantiating 'IO+#write(Slice(UInt8))'
  1449.  
  1450.  
  1451. In /usr/share/crystal/src/io/stapled.cr:80:13
  1452.  
  1453.  80 | @writer.write(slice)
  1454. ^----
  1455. Error: instantiating 'IO+#write(Slice(UInt8))'
  1456.  
  1457.  
  1458. In /usr/share/crystal/src/io/multi_writer.cr:37:14
  1459.  
  1460.  37 | @writers.each { |writer| writer.write(slice) }
  1461. ^---
  1462. Error: instantiating 'Array(IO)#each()'
  1463.  
  1464.  
  1465. In /usr/share/crystal/src/indexable.cr:187:5
  1466.  
  1467.  187 | each_index do |i|
  1468. ^---------
  1469. Error: instantiating 'each_index()'
  1470.  
  1471.  
  1472. In /usr/share/crystal/src/indexable.cr:187:5
  1473.  
  1474.  187 | each_index do |i|
  1475. ^---------
  1476. Error: instantiating 'each_index()'
  1477.  
  1478.  
  1479. In /usr/share/crystal/src/io/multi_writer.cr:37:14
  1480.  
  1481.  37 | @writers.each { |writer| writer.write(slice) }
  1482. ^---
  1483. Error: instantiating 'Array(IO)#each()'
  1484.  
  1485.  
  1486. In /usr/share/crystal/src/io/multi_writer.cr:37:37
  1487.  
  1488.  37 | @writers.each { |writer| writer.write(slice) }
  1489. ^----
  1490. Error: instantiating 'IO+#write(Slice(UInt8))'
  1491.  
  1492.  
  1493. In /usr/share/crystal/src/io/hexdump.cr:35:28
  1494.  
  1495.  35 | def write(buf : Bytes) : Int64
  1496. ^
  1497. Error: method must return Int64 but it is returning (Int64 | Nil)
  1498.  
  1499. Nil trace:
  1500.  
  1501. /usr/share/crystal/src/io/hexdump.cr:36
  1502.  
  1503. return 0i64 if buf.empty?
  1504.  
  1505.  
  1506. /usr/share/crystal/src/io/hexdump.cr:38
  1507.  
  1508. @io.write(buf).tap do
  1509. ^~~
  1510.  
  1511. /usr/share/crystal/src/object.cr:186
  1512.  
  1513. def tap
  1514. ^~~
  1515.  
  1516. /usr/share/crystal/src/object.cr:187
  1517.  
  1518. yield self
  1519.  
  1520.  
  1521. /usr/share/crystal/src/object.cr:188
  1522.  
  1523. self
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement