Code Monkey home page Code Monkey logo

Comments (5)

bplawler avatar bplawler commented on August 21, 2024

It would appear that there is no version set. Can you try adding a

version := "0.1"

To your local build and see if that fixes it.

from crawler.

phuna avatar phuna commented on August 21, 2024

After adding version := "0.1" it shows more error about bintray credentials. Is bintray account information required?

[info] Loading project definition from /Users/myuser/crawler/project
Missing bintray credentials /Users/myuser/.bintray/.credentials. Some bintray features depend on this.
java.lang.RuntimeException: Setting value cannot be null: {file:/Users/myuser/crawler/}/*:version
        at scala.sys.package$.error(package.scala:27)
        at sbt.EvaluateSettings$INode.setValue(INode.scala:143)
        at sbt.EvaluateSettings$MixedNode.evaluate0(INode.scala:175)
        at sbt.EvaluateSettings$INode.evaluate(INode.scala:135)
        at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$submitEvaluate$1.apply$mcV$sp(INode.scala:69)
        at sbt.EvaluateSettings.sbt$EvaluateSettings$$run0(INode.scala:78)
        at sbt.EvaluateSettings$$anon$3.run(INode.scala:74)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
[error] Setting value cannot be null: {file:/Users/myuser/crawler/}/*:version
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?

My build.sbt, just in case:

organization := "io.github"
name := "crawler"
version := "1.0"

crossScalaVersions := Seq("2.11.7", "2.10.5")
scalaVersion := crossScalaVersions.value.head
scalacOptions := Seq("-deprecation", "-unchecked", "-feature")

libraryDependencies ++= Seq (
    "net.sourceforge.htmlunit" % "htmlunit" % "2.15"
  , "org.specs2" %% "specs2-core" % "3.6.2" % "test"
)

resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"

enablePlugins(GitVersioning)
git.useGitDescribe := true // figure out version from last tag

// required for release to bintray
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))

from crawler.

2m avatar 2m commented on August 21, 2024

Sorry, I sneaked this in. My PR added sbt-git plugin to the build. This means that the version of the project is now calculated from the git repository using git describe --tags command. As I mentioned here sbt-git plugin has a known issue where it fails to load a project if the code repository have no tags created. It has already been fixed, but we need a new version of sbt-git plugin.

The workaround is to create a tag, for example tagging the first commit of this repository: git tag 0.1 1d1db8c.

from crawler.

phuna avatar phuna commented on August 21, 2024

@2m : Thanks! Adding a tag solves the problem 👍

from crawler.

bplawler avatar bplawler commented on August 21, 2024

@phuna @2m Also added a tag to mine so future cloners won't run into this. Thanks again @2m!

from crawler.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.