Skip to content

We need windows batch-scripts #1207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DarkDimius opened this issue Apr 6, 2016 · 3 comments
Closed

We need windows batch-scripts #1207

DarkDimius opened this issue Apr 6, 2016 · 3 comments
Assignees

Comments

@DarkDimius
Copy link
Contributor

No description provided.

@acdenhartog
Copy link

acdenhartog commented Apr 28, 2016

Unfortunately I do not know how to write batch scripts.

But for now the easiest way to compile with dotty on Windows is either use IntelliJ or

git clone https://github.com/lampepfl/dotty.git
cd dotty
sbt run <compiler arguments>

and to run classes after compiling:
scala -cp .;<wherever>/dotty/target/scala-2.11/classes/ <package.sub.Main>
starting from directory containing <package>.

(maybe add that to the wiki)

I have not been able to use it as per dotty-example-project because sbt dotty-interfaces/compile:doc is causing errors, and dotty-interfaces/publishLocal depends on that...

One more edit:
This took me some time to figure out: getting the debugger to work with IntelliJ.

The problem is that fork on run := true is required for the dotty compiler to work properly, but debug settings applied to sbt as a whole will not be applied to that forked jvm.

  1. edit the sbt build definition of dotty to insert this setting: javaOptions in run ++= Seq("-Xdebug", "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"),
  2. setup a remote debugger in IntelliJ
  3. in the sbt console: run <compiler arguments>
  4. optional: [info] Compiling 274 Scala sources and 136 Java sources and weep
  5. manually launch debugger when dotty itself starts and: [info] Listening for transport dt_socket at address: 5005

@smarter
Copy link
Member

smarter commented May 25, 2016

I have not been able to use it as per dotty-example-project because sbt dotty-interfaces/compile:doc is causing errors, and dotty-interfaces/publishLocal depends on that...

Should be fixed by #1278

@liufengyun
Copy link
Contributor

We already got rid of those scripts long ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants