GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Scala Behavior Changes Make Some Examples Fail · Issue #131 · deanwampler/programming-scala-book-code-examples

Scala Behavior Changes Make Some Examples Fail #131

New issue
Copy link
New issue
Copy link
Closed
#132
Closed
Scala Behavior Changes Make Some Examples Fail#131
#132
Copy link

Description

@hellerim
hellerim
opened on Sep 15, 2024
Issue body actions

Many command line utilities which call other programs use "--" to separate arguments to these programs from the preceding arguments which are consumed by the respective utility itself. Scala and sbt obviously adopted this behavior. This is why on p. 16 ff, in particular on p.18 below, examples fail at least with Scala 3.5.0 and sbt 1.10.1, e.g.
$ scala -cp . -M progscala3.introscala.UpperMain1 hello computed world!
now should read
$ scala -cp . -M progscala3.introscala.UpperMain1 -- hello computed world!,
otherwise you should expect lots of input file not found exceptions.
Since it took me quite a while to figure out the cause of these exceptions - I'm not an sbt or scala expert -, I think this new behavior should be made known in some prominent place. (?)

Reacted by sbushmanov

Activity

  1. hellerim
    changed the title [-]Scala Behavior changes make some examples fail[/-] [+]Scala Behavior Changes Make Some Examples Fail[/+] on Sep 15, 2024
  2. deanwampler commented on Sep 15, 2024

    @deanwampler
    deanwampler
    on Sep 15, 2024
    Owner
    More actions

    Thanks for letting me know and sorry the examples didn't work "out of the box"! I'll add some warning language about "evolving changes" to the README and fix all the examples this coming week.

  3. deanwampler
    closed this as completedin #132on Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.