Git Product home page Git Product logo

Comments (9)

makkarpov avatar makkarpov commented on May 23, 2024 1

For IDEA, the checkbox 'Use SBT shell for builds & imports' must be checked in SBT settings to work

from scalingua.

makkarpov avatar makkarpov commented on May 23, 2024

It appears that resources were not generated for locales for some reason.

Locale file consists of Scala class (which has been generated) and binary resource file which holds all strings.

Could you confirm that resource file does not appear after sbt compile?

from scalingua.

lterekhov avatar lterekhov commented on May 23, 2024

yes, I confirm. no binary resources were created after sbt compile.

from scalingua.

makkarpov avatar makkarpov commented on May 23, 2024

What does show Compile / resourceGenerators display? Scalingua uses SBT standard mechanism to generate resources.

from scalingua.

lterekhov avatar lterekhov commented on May 23, 2024
[IJ]show Compile / resourceGenerators
[info] * Task(_)
[info] * Task((taskDefinitionKey: ScopedKey(Scope(Select(ProjectRef(file:/Users/lterekhov/Projects/scala-i18n/,root)), Select(ConfigKey(compile)), Zero, Zero),packageLocales)))

It did not help. however, launching the application with the sbt run command result in the appearance of the necessary files.

before that i used launcher mechanism IDEA

from scalingua.

lterekhov avatar lterekhov commented on May 23, 2024

was expecting resource generation after the sbt compile. Is it possible to customize the generation after sbt compile or is this the correct behavior?

from scalingua.

makkarpov avatar makkarpov commented on May 23, 2024

It could be that compile command does not have any dependency on resources, and SBT does not run resource generators. packageBin could work better, as it requires complete jar to be built.

from scalingua.

lterekhov avatar lterekhov commented on May 23, 2024

thanks for the help! I'm closing the issue because I got the answers and the solution

from scalingua.

lterekhov avatar lterekhov commented on May 23, 2024

little addition. sbt copyResources command works fine for me and generates binaries files

from scalingua.

Related Issues (12)

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.