by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Rob Norris
@tpolecat
I usually have a docs project that dependsOn(core) or whatever so it inherits all the depencencies.
Paulo "JCranky" Siqueira
@jcranky
Yes, everything is in the same project, my main source is on src/main/scala and tut is on src/main/tut
I changed one config: tutTargetDirectory := file("docs")
And have enablePlugins(TutPlugin) on the top level of the build.sbt file - maybe it is something related to that?

Just tried:

lazy val root = (project in file("."))
  .enablePlugins(TutPlugin)

Still same problem.

Rob Norris
@tpolecat
How strange.
Can you try with a minimal project? I know it's a pain, sorry, but there's something weird about your setup that's causing it not to work.
Do Compile/libraryDependencies and Tut/libraryDependencies tell you different things at the sbt prompt?
Paulo "JCranky" Siqueira
@jcranky
No, they are exactly the same.
Wait a sec, I might have a clue
Há! This is the culprit: "-Xfatal-warnings" :/
Rob Norris
@tpolecat
D'oh! Yeah you need to filter that out in Tut
Doesn't work in the REPL
Paulo "JCranky" Siqueira
@jcranky
For the REPL I have this already: scalacOptions in (Compile, console) ~= (_.filterNot(Set("-Ywarn-unused-import", "-Xfatal-warnings"))), // make REPL usable
Rob Norris
@tpolecat
Yeah you need it explicitly in Tut
Which maybe should inherit from Compile/console but it doesn't. Just Compile
Paulo "JCranky" Siqueira
@jcranky
thanks :D
Anthony Garo
@agaro1121
Hi
Does tut evaluate a block of code similar to the repl’s :paste command?
Rob Norris
@tpolecat
No, it evaluates code line by line.
Anthony Garo
@agaro1121
thank you
Anthony Garo
@agaro1121
@tpolecat I have a multi-module project
My markdown files are in the root of each module. I was able to successfully add them to tut
The problem I’m having is the repl instance needs to run from inside those modules for the code to successfully compile
Is tut able to do that?
Rob Norris
@tpolecat
tut can see the same stuff you see in console. It extends that configuration.
So if you do project blah in sbt and then do console anything that's visible there will also be visible if you do tut in that project.
Assuming the planets are properly in alignment.
Anthony Garo
@agaro1121
lol
i understand what you’re saying
I’m still trying to wrap my head around it. Because in my case i’d be calling console from the root project but it doesn’t have access to the other module’s stuff
that’s why tut is failing for me
i’d need tut to somehow call project blah for each markdown i copy over.
Is something like that possible?
Rob Norris
@tpolecat
well if your root project aggregates the others you can say tut and it will run in all projects
Anthony Garo
@agaro1121
ah ok. I was copying over the files using micrositeExtraMdFiles (i’m using the set-microsites plugin)
and yes it does aggregate the other projects
Anthony Garo
@agaro1121
i think i figured it out. Thank you for your help
Julien Truffaut
@julien-truffaut
Hi all, I started to see this warning in sbt
[warn] insecure HTTP request is deprecated 'http://dl.bintray.com/tpolecat/maven'; switch to HTTPS or opt-in as ("tpolecat" at "http://dl.bintray.com/tpolecat/maven").withAllowInsecureProtocol(true)
However, I can't see any config to bintray in my project
Rob Norris
@tpolecat
@julien-truffaut yeah that's due to a change in sbt 1.3
there's a pr to fix it, i just need to release a new version
Julien Truffaut
@julien-truffaut
Thanks Rob!
Diego E. Alonso Blas
@diesalbla
Good afternoon.
When running docs/tut I have some tut docs that are failing, without much message except a line number.
Is there a way I can extract the Scala code that gets executed in the Tut, as a separate file?
Rob Norris
@tpolecat
You can look at the output file and see the errors.
Ryan Zeigler
@rzeigler
I have been trying to use tut and I keep having to bump MaxMetaspaceSize to what I would normally consider unreasonable levels. Am I doing somethign wrong or is this expected
Rob Norris
@tpolecat
You might try using tutQuick which seems to leak more slowly than tut
But ultimately you're probably doomed
I recommend switching to mdoc which seems to be better behaved
Ryan Zeigler
@rzeigler
but, but my github template repository :-(
ok, thanks
Rob Norris
@tpolecat
Sorry :-\