Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 30 2019 14:37
    bhaskarmelkani starred lihaoyi/Ammonite
  • Jan 29 2019 04:27
    JYInMyHeart starred lihaoyi/Ammonite
  • Jan 29 2019 04:27
    JYInMyHeart starred lihaoyi/Ammonite
  • Jan 28 2019 15:07
    ishubelko starred lihaoyi/Ammonite
  • Jan 25 2019 22:38
    borissmidt starred lihaoyi/Ammonite
  • Jan 25 2019 17:12

    alexarchambault on 1.6.3

    (compare)

  • Jan 25 2019 17:11

    alexarchambault on master

    1.6.3 (compare)

  • Jan 25 2019 15:48
    alexarchambault commented #923
  • Jan 25 2019 01:15

    lihaoyi on gh-pages

    5ad9ae5538f23cab92ccd8c6b1617d8… (compare)

  • Jan 25 2019 00:50

    alexarchambault on master

    Partly revert 84d48542 (#923) … (compare)

  • Jan 25 2019 00:50
    alexarchambault closed #923
  • Jan 25 2019 00:50
    alexarchambault closed #920
  • Jan 25 2019 00:50
    alexarchambault closed #922
  • Jan 24 2019 23:13
    lihaoyi commented #923
  • Jan 24 2019 22:39
    alexarchambault closed #921
  • Jan 24 2019 22:39
    alexarchambault commented #921
  • Jan 24 2019 22:39
    alexarchambault edited #923
  • Jan 24 2019 22:38
    alexarchambault opened #923
  • Jan 24 2019 22:37
    david-bouyssie commented #919
  • Jan 24 2019 21:33
    nksureshkumar commented #922
Maatary
@Maatary
but will take time to get use to
Maatary
@Maatary
Again i am just trying to write script, not interested in the repl
i want to develop script and then run them later in a container
but interp is behind now
no worries i understood the all thing
however something really not normal is happening
i have this simple code, and amm can't manage to handle it
import $ivy.`org.typelevel::cats-core:2.0.0`
import cats.syntax.all._

"hello".show
This is true in the repl as well
I am not sure where the problem is coming from, as this work fine in the intellij worksheet, or as normally compiled application
It requires me to revert to explictly brining in scope the typeClass instance
It works if i add cats.instances.all as in
import $ivy.`org.typelevel::cats-core:2.0.0`
import cats.instances.all._
import cats.syntax.all._

import scala.util.chaining.scalaUtilChainingOps

"hello".show pipe println _
Maatary
@Maatary
That part has nothing to do with Intellij tho. It is just ammonite that is not coping it seems
maybe a bug ?
Chris Kipp
@ckipp:matrix.org
[m]
running that snippet in Ammonite with the latest version of 2.13 ammonite works for me
ah sorry, I only ran the bottom one, not the top one that you said gives you issues
but are you sure those imports add show to String?
Maatary
@Maatary
yes
i can see the implicit in intellij
The cats change is well explained here https://github.com/typelevel/cats/releases/tag/v2.2.0
no need no more to import the 3 amigos, interface, type class instances, and the syntax
Anton Sviridov
@keynmol
your version of cats in the script is 2.0.0 :)
works starting from 2.2.0
Maatary
@Maatary
???
@keynmol Not sure to follow
oh gosh
Sorry
:P
Anton Sviridov
@keynmol
no worries, I had to squint real hard before I saw it.
Maatary
@Maatary
Ok this is a sign that i need to take a break stop hacking and come back to all of this later. Either way. Thank you so much for the help and guidance. Really made some progress in term of understanding what’s what, and what to expect from Amm itself vs the IDE i am using, how it can integrate and so on. Will def have a look into VS Code
Quick one before i jump into VsCode, is it already matching intellij or it is good enough, if we leave Ammonite issue aside ?
Anton Sviridov
@keynmol

It depends on your definition :) Intellij has improved a lot recently, Metals is a bit more lightweight and more controllable, it matches build definition and compiler output better.

It doesn't have the vast array of IJ's refactorings, but its support for worksheets and ammonite is much better. I don't miss the refactorings because more complex ones constantly break something for me :)

It's certainly good enough - I use it full time on all of the code I write.
Maatary
@Maatary
Thanks for this !!!
Eitan Adler
@grimreaper
I have this code in my application ammonite.Main().run( ) and when I run it I see Compiling (synthetic)/ammonite/predef/ArgsPredef.sc and then it immediately exits
how do I get this to actually drop into a repl?
Artem Egorkine
@arteme
How can I ask ammonite to use triple quotes to show a string? I'm dealing with json and having no escaped quotes would be much easier
nafg
@nafg
I guess by customizing the PPrint instance somehow?
Eric Swenson
@eswenson1
I've asked this question before, but I've never seen any responses to it. I've even asked @lihaoyi directly, but didn't hear from him either. Do any of you know how to pre-compile ammonite scripts such that they don't compile when first run? I'm trying to build a docker container that uses ammonite, but despite my various attempts, each time the container runs, all the scripts get compiled. Has anyone here used ammonite with docker?
Yilin Wei
@yilinwei
@eswenson1 Why don't you just create a binary using Graal?
*binary should be image
and just compile the scripts normally
Steve Fosdal
@sfosdal
I am interesting in developing additional filters used in AmmoniteFrontEnd. but I would like to have a better understanding of the mechanics. I would like to be able to run amm with remote debugging enabled.
like execute:
JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 && mill -i "amm[2.12.6].run"
and then connect to it via IntelliJ
when I execute it this way, IntelliJ does "seem" to connect, but any debug points I set seem to not be respected.
Has anyone tried this before? or have any suggestions?
Steve Fosdal
@sfosdal
no worries. I will continue to dig
matejbosak
@bosak
Hi, I bumped sbt to 1.4.6 from 1.3.13, now REPL started via sbt projectName/test:run has bad handling of left-arrow / move cursor to left, it visually deletes characters, running amm outside sbt, or downgrading do 1.3.x fixes the issue, ideas?
Eric Swenson
@eswenson1

@yilinwei

Why don't you just create a binary using Graal? and just compile the scripts normally.

Thanks, but I'm not sure how, and I'm not I want to bite off GraalVM for this. I have working Docker images now, where the scripts are run via ammonite. The only issue is that when the container runs, it recompiles everything every time.

Dmitri Priimak
@priimak
Hi All. I have my own library that I pull from my local artifact repository. This library has a function that calls upickle.default.read like so
read[Seq[Map[String, String]]](str). When calling this function from inside of ammonite shell I get error
java.lang.NoSuchMethodError: 'boolean upickle.default$.read$default$2()'
Does anyone know what could be the cause of that?