Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 18 21:33

    magnolia-k on 2.7.x

    Update specs2-core, specs2-matc… (compare)

  • Jan 18 21:33
    magnolia-k closed #1098
  • Jan 18 18:15
    scala-steward-bot opened #1098
  • Jan 17 02:13

    magnolia-k on 2.7.x

    Update mockito-core to 3.7.7 (#… (compare)

  • Jan 17 02:13
    magnolia-k closed #1097
  • Jan 16 11:32
    scala-steward-bot opened #1097
  • Jan 11 00:43

    magnolia-k on 2.7.x

    Update metrics-servlet, metrics… (compare)

  • Jan 11 00:43
    magnolia-k closed #1096
  • Jan 10 17:58
    scala-steward-bot opened #1096
  • Jan 10 06:07

    magnolia-k on 2.7.x

    Update issue templates (compare)

  • Jan 05 05:47

    magnolia-k on 2.7.x

    Update mockito-core to 3.7.0 Merge pull request #1094 from s… (compare)

  • Jan 05 05:47
    magnolia-k closed #1094
  • Jan 05 04:18
    scala-steward-bot opened #1094
  • Jan 03 05:32
    magnolia-k closed #1093
  • Jan 03 05:22
    magnolia-k opened #1093
  • Jan 02 08:04
    magnolia-k closed #588
  • Jan 02 08:04
    magnolia-k commented #588
  • Jan 02 07:43
    magnolia-k closed #317
  • Jan 02 07:43
    magnolia-k commented #317
  • Jan 02 05:35
    magnolia-k closed #582
Horia Constantin
@treaz

The website got back. Thanks @treaz! http://scalatra.org/

I wish it wouldn't get broken in the first place. I've created an issue to check if there's anything that can be done about this (some tests&rollback)

Horia Constantin
@treaz
@takezoe the scalatra website is currently running on HTTP. Switching to https is just clicking a checkbox, but only an admin can do it. https://help.github.com/en/github/working-with-github-pages/securing-your-github-pages-site-with-https
Naoki Takezoe
@takezoe
I enabled Enforce HTTPS option.
Miguel Silvestre
@msilvestre
Hi! I've imported the hadoop-common into my project and now I'm having a lot of warnings from library incompatibilities due to the scalatra plugin. scalatra plugini is importing jetty version 9.4.8 and hadoop has 9.4.6. How can I resolve this?
Thanks
Horia Constantin
@treaz
@takezoe whohoo! HTTPS ftw!
@msilvestre I don't want to be unwelcoming, but when I read your question, I'm thinking "what does this have to do with scalatra?". I'll help out this time, so I'm curious if you already tried to exclude the jetty library from hadoop-common (libraryDependencies += "foo" % "bar" % "0.7.0" exclude("org.baz", "bam") ).
Andrius Bentkus
@txdv
hi, I am using the scalatra base example and I have written a failing ScalatraFunSuite test with 500, is there a way to see the output of the jetty server or a stack trace
i am using sbt test
Miguel Silvestre
@msilvestre
@treaz Well it's related, because the errors disappeared as soon as I removed scalatra plugin.
Daniel Sali
@DanielSali9_twitter
Hi all,
I'm having a hard time setting Jetty's http idleTimeout in a basic Scalatra project (pretty much the g8 template). Has anyone managed to change the default idleTimeout from the default 30s somehow?
Emmanuel Sarsah
@small-petit_gitlab
Please, does scalatra 2.7 support scala 2.13?
I am new to Scala and scala web development.
I searched earlier messages in the room, but I couldn't find out if this question has been asked before.
Thank you.
Naoki Takezoe
@takezoe
@small-petit_gitlab Yeah, Scala 2.13 support is the main topic of Scalatra 2.7 :-)
Emmanuel Sarsah
@small-petit_gitlab

Oh OK. I see.
But I tried creating a new project with sbt new scalatra/scalatra.g8. After answering the few project questions, I get java.io.IOException: Unable to delete file: C:\Users\gerol\AppData\Local\Temp\giter8......

Please, any help?

Naoki Takezoe
@takezoe
Naoki Takezoe
@takezoe
Rob Knapen
@robknapen
:+1: :balloon:
Benoit George
@sharkgua
Hi everyone!
I'm having trouble adding the swagger example field introduced in scalatra 2.7.0
For example
parameters pathParam[String]("pathPath").description("a description").example("John Doe")
does not add
"example": "John Doe"
to the generated swagger.json document
I see here scalatra/scalatra@b17bc7e that the example was removed from the tests, so I guess I'm not using the correct way to add example value to my Swagger API.
Do you know what's the proper way?
Thank you.
Gunnar Lilleaasen
@heksesang
I noticed you wrote on your site for the 2.6.5 release that "We have a plan to move http4s in Scalatra 3.0.0", does that mean you are planning to build Scalatra 3.0.0 on top of http4s?
Naoki Takezoe
@takezoe
@heksesang That was our original plan for Scalatrra 3. We have a branch which has been partially migrated to http4s, but this branch is not maintained any more. Actually, the vision of Scalatra 3 is not clear now.
Gunnar Lilleaasen
@heksesang
I see. Why did you choose to abandon the migration to http4s?
Naoki Takezoe
@takezoe
It's simply lack of development resource.
Nils Kilden-Pedersen
@nilskp
I would be sad to see Scalatra depend on http4s, as would lead to FS2 and Cats dependencies. A general open-source library, like Scalatra, should really try to avoid this, particularly on rapidly evolving libraries, as the chance of incompatible dependencies from other projects is almost unavoidable.
I can see that this approach has been abandoned, but for other reasons.
Naoki Takezoe
@takezoe
@nilskp Actually, a creator of Scalatra was a creator of http4s. So, Scalatra and http4s had a connection. One good point of http4s was that it supports Servlet based backend not only Netty based non-blocking I/O backend. Anyway, I think migration to http4s would never happen on Scalatra due to the lack of our development resources.
My Nguyen
@nguyenmv2
Hi guys, I'm brand new to both Scalatra and Scala. Following the "First Step" tutorial. Run into a weird issue when I run sbt on a fresh scalatra app, instead of binding to a normal network ( localhost:8000 ) it binds to a unix socket. How would I change the port binding? I mistook sbt server with the jetty server
Naoki Takezoe
@takezoe
I found a video of the presentation about Scalatra + Slick + ZIO at ScalaUA conference!
https://www.youtube.com/watch?v=mAQAxh-K14g
Alexis Côté
@popojargo
@sharkgua I've made some PR to fix that
kiran prakash
@kiranprakash154_twitter
Are there suggestions on adding tracing to web services using Scalatra?
Adrian A.
@aadrian
@kiranprakash154_twitter I don't think that tracing is a Scalatra specific issue. If adding Context to the Logging is not enough http://logback.qos.ch/manual/mdc.html than maybe something like https://github.com/openzipkin/zipkin would do it.
kiran prakash
@kiranprakash154_twitter
Hi @aadrian Thanks for your reply. To set some context, I'm handling a Scalatra service and want to integrate tracing into it to see APM traces in Datadog. I was told by one of my coworkers that using java agent (Datadog's Java Agent) can be tricky with a scala application especially if its multi-threaded (our application is) since contexts can get lost between threads. I'm new to Scala and Sinatra and that's why I'm here to see if there is a suggestion already out there for this purpose and get some help from this community.
Naoki Takezoe
@takezoe
@kiranprakash154_twitter Scalatra is based on Java servlet and Datadog APM should support it. Though I've never tried it with Scalatra apps, I think no special consideration would be unnecessary to apply dd-java-agent to Scalatra apps.
kiran prakash
@kiranprakash154_twitter
Great. Thanks, Naoki
Eamonn Sullivan
@eamonnsullivan
Hi all, I have (what I hope) is a simple question. I'm trying to use scalatra-swagger to help my team keep the swagger docs updated. I like that we can use the DSL right next to the API-level code, so you can see more easily if the docs are out-of-date. However, several of our APIs use Json schemas to define the body parameter of a request or responses, which go a bit further than a simple case class. Is there a way to use these in the generated swagger.json?
7 replies
Naoki Takezoe
@takezoe
@magnolia-k Have we enabled CircleCI integration? It looks to has been triggered since 2 days ago.
https://app.circleci.com/pipelines/github/scalatra/scalatra
I don't see CircleCI integration in GitHub repository settings, but I see a webhook configuration for CircleCI.
magnolia
@magnolia-k
@takezoe
In turning off the Travis-CI integration, I turned on Circle-CI once, but I guess I forgot to turn it off!
GitHub Action is enough, so turn it off
Naoki Takezoe
@takezoe
I see, thanks. I also deleted old Jenkins webhook and uninstalled Travis App.
Naoki Takezoe
@takezoe
But I realized that we need to use TravisCI to deploy Scalatra's web site after uninstalling Travis App...
Ingemar Ådahl
@ingemaradahl
Would there be a lot of work to publish a 2.7.1?
Naoki Takezoe
@takezoe
@ingemaradahl Do you need 2.7.1? If so, we will release 2.7.1 soon.
Ingemar Ådahl
@ingemaradahl
Naoki Takezoe
@takezoe
I see. Then, we will release Scalatra 2.7.1 this week.
Ingemar Ådahl
@ingemaradahl
Thank you! :heart:
Naoki Takezoe
@takezoe
@ingemaradahl Scalatra 2.7.1 has been published. https://github.com/scalatra/scalatra/tree/v2.7.1
Ingemar Ådahl
@ingemaradahl
Awesome, first thing I'll be doing Monday morning :)
Carlos Eduardo
@carlosedp
Hi all
Is it possible to use scalatra-metrics to generate Prometheus metrics?
I'm pretty new into scalatra and looking at the possibilities
Naoki Takezoe
@takezoe
@carlosedp Though I'm not familiar with Prometheus, scalatra-metrics is based on DropWizard's metrics library and integrating with Prometheus seems easy according to this article: https://www.robustperception.io/exposing-dropwizard-metrics-to-prometheus
Carlos Eduardo
@carlosedp
Nice, thanks @takezoe :)