Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 08:18
    guizmaii commented #9757
  • 08:14
    guizmaii commented #9757
  • 08:10
    guizmaii commented #9757
  • 08:10
    guizmaii commented #9757
  • 08:10
    guizmaii commented #9757
  • 08:09
    guizmaii closed #9757
  • 08:09
    guizmaii commented #9757
  • Sep 17 16:31
    som-snytt commented #8039
  • Sep 17 11:59

    lrytz on 2.12.x

    Avoid `case _: C[_]#K` type tes… Merge pull request #9762 from l… (compare)

  • Sep 17 11:59
    lrytz closed #9762
  • Sep 17 11:44
    tgodzik commented #9761
  • Sep 17 09:18
    lrytz synchronize #9762
  • Sep 17 09:06
    scala-jenkins milestoned #9762
  • Sep 17 09:06
    lrytz review_requested #9762
  • Sep 17 09:06
    lrytz opened #9762
  • Sep 17 08:36
    lrytz commented #12463
  • Sep 17 08:33
    joroKr21 commented #12463
  • Sep 17 08:27
    lrytz commented #12463
  • Sep 17 08:27
    lrytz commented #12463
  • Sep 17 07:48
    nwk37011 synchronize #9752
Bjorn Regnell
@bjornregnell
@Jasper-M Thanks! Good to know. And the example above in REPL from @som-snytt is telling and I might include something similar as an exercise in the week of "classes" to get students acquainted with the compiler lingo here. (Course progression per-week main focus: functions, programs, objects, classes, patterns, ...). Still unsure how to translate "auto-application of constructor proxy object". Your words "fictitious" and "on demand" is inspirational... :)
Bjorn Regnell
@bjornregnell
With the instructions for cs download here https://www.scala-lang.org/download/scala3.html you get scala3-compiler and scala3-repl on your path but no scala3 runner to run your compiled programs. So how to run your programs compiled with the cs-installed scala3-compiler? Seems like the docs on the scala-lang download page could be improved... (I asked this in the coursier gitter as well but there seems to be little activity there - sorry for double posting. :blush: )
Jasper Moeys
@Jasper-M
@bjornregnell Don't know if this is coincidence or not but I just saw this issue in the gitter sidebar scala/scala-lang#1250
Bjorn Regnell
@bjornregnell
Aha! It is a bug... And a very confusion omission that is more or less a showstopper for cs in my course where we compile and run in terminal before starting with sbt. And there is no .msi for scala3 so how to install on windows without manual fiddeling with unpacking zip and environment variable path etc etc???
Bjorn Regnell
@bjornregnell
Eric K Richardson
@ekrich
Good on-boarding is important. Certainly the Development experience has improved so much with Metals/Bloop/Editor.
martingd
@martingd

@SethTisue My pull request scala/scala-parser-combinators#402 fails test for Scala.js. How do I run these tests locally before opening a PR? I tried simply running sbt test but that fails with

[error] (parserCombinatorsJS / Test / loadedTestFrameworks) org.scalajs.testing.common.RPCCore$ClosedException: org.scalajs.testing.adapter.JSEnvRPC$RunTerminatedException

Is there a guide to setting this up correctly (macOS) so I can run also the Scala.js tests locally?

Sébastien Doeraene
@sjrd
@martingd You probably need to install Node.js. Make sure that running node -v in the command line works.
martingd
@martingd
@sjrd That worked. Thanks. Now, all tests run and they pass – including the test that fails on Travis for my pull request.
Sébastien Doeraene
@sjrd
Looking at https://github.com/scala/scala-parser-combinators/pull/402/checks?check_run_id=2846684914, it doesn't seem to me that the errors are Scala.js-related, but rather Scala version-related.
They fail for 2.11 and 2.12 because of methods that were introduced in the 2.13 collections library.
equally on the JVM and JS
(there's also a MiMa error in 2.13.6)
martingd
@martingd
@sjrd Yes, you are absolutely right (which I also realised) and I am fixing them using the += and ++= forms for addOne and addAll on ListBuffer respectively.
The test failure about binary incompatibilty I am also fixing – changing a new method on StdLexical from protected to private as it is tied to the concrete definition of def token in that class anyway.
Seth Tisue
@SethTisue
@bjornregnell thanks for all the really helpful bug reports and questions, btw
Bjorn Regnell
@bjornregnell
thanks!! happy to help :) :heart:
som-snytt
@som-snytt
:+1:
Princess | April
@NthPortal
This message was deleted
Bjorn Regnell
@bjornregnell
hi contributors and community leaders; it is currently a bit confusing where to post questions on what and where to pre-discuss potential issues and where to post actual issues, esp. since there are more than one place on github: scala and lampepfl, and several forums. It is also not obvious to me who are official leaders of what. The community page https://www.scala-lang.org/community/ could perhaps make this clearer. I suspect this is related to already on-going work on consolidating dotty into scala and some new working-structures and responsibilities etc, and I fully appreciate that in open source it takes some effort now and then to restructure things and re-think as we grow and mature. @SethTisue @smarter @tpolecat This is perhaps better discussed in a new Discourse thread (?), but wanted to check with you first here and maybe this is already in the pipeline. (PS1. Also, this is perhaps not a super-big deal; we can live with as-is and help each other to dispatch, but I think esp. for newcomers to our community we should be able to provide an easier explanation on the community page of what-goes-where and also on who-is-leading-what.) (PS2. Having discussed and posted some issues recently, I just want to say thanks to all here for all you super-friendly and awesome help; the Scala community is great :heart: ) )
Guillaume Martres
@smarter
I think it's something the scala center should take responsability for and it's probably best discussed in contributors.scala-lang.org yeah
Rob Norris
@tpolecat
Agree that this needs to be clarified.
Discourse seems right.
let me know if I can improve the intro text to better attract contributions to the thread
Guillaume Martres
@smarter
as a side note, here's the instructions I use for getting ~250 students started on scala each year: https://gitlab.epfl.ch/lamp/cs210/-/blob/master/labs/tools-setup.md https://gitlab.epfl.ch/lamp/cs210/-/blob/master/labs/example-lab.md
the basic idea is install coursier -> use coursier to install sbt -> use sbt and vscode for everything, never ever use the scala/scalac binary since they're not really useful and slow
Bjorn Regnell
@bjornregnell
thanx!! I guess your students know how to open a terminal?
Guillaume Martres
@smarter
the instructions say stuff like "open cmd.exe" on Windows
if they can't figure that out we help them
Bjorn Regnell
@bjornregnell
and they know what a compiler is?
Guillaume Martres
@smarter
I mean, I don't know, that's not presumed
Bjorn Regnell
@bjornregnell
Previous years we did like this: first week Kojo desktop (because we have a mninority that never have coded, say 20% and if we all start with "kids" programming it is more playful and it is obvious that Kojo is for kids - this week we try to establish a good community behaviour in the class were the ones who already know a lot help in a respectful way without taking over but helping conceptual understanding - my mantra is that coding is learning for life and pedagogy is integral to coding and coding is social (most of my students are around 19 years old). Second week REPL in terminal, compile in terminal to see the bytecode and see that the compiler is a program like all other programs with input and output. week 3 vscode+sbt for the rest of the course, but in week 8 I encourage the ones who want new challenges to try out IntelliJ.
So if i go vscode+sbt only I need to rethink the start... And I like REPL in terminal; use it all the time :)
Guillaume Martres
@smarter
https://gitlab.epfl.ch/lamp/cs210/-/blob/master/labs/example-lab.md mentions both how to use the REPL and how to use worksheets and anecdotally at least it seems that students always prefer using worksheets
Bjorn Regnell
@bjornregnell
maybe I'm getting old :)
Guillaume Martres
@smarter
we use console from sbt to start the REPL, which has the advantage of having your classpath setup correctly
Bjorn Regnell
@bjornregnell
yes the worksheet has many advantages; but currently I cannot have worksheet on top level in vscode if I understant it correctly
Guillaume Martres
@smarter
on top level?
Bjorn Regnell
@bjornregnell
You need to put the worksheet in src/ceremony and yes console in sbt is nice; and also Compile / console / initialCommands
we use it but later
the first week i want one file, top-level defs and just rock :)
Guillaume Martres
@smarter
ah, I don't know how metals handles source directories, if it respects the sbt config you should be able to put worksheet files in the root directory and they'll be part of the root project
Bjorn Regnell
@bjornregnell
all tweaks can be done, but one click rules :)
Guillaume Martres
@smarter
sbt default list of source directories contains "." and "./src/main/scala/" iirc
Bjorn Regnell
@bjornregnell
yes but metals is confused about default package - let me see if I can find the issue
Guillaume Martres
@smarter
ok I have no idea what metals is doing here