Comments (9)
For IDEA, the checkbox 'Use SBT shell for builds & imports' must be checked in SBT settings to work
from scalingua.
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.
yes, I confirm. no binary resources were created after sbt compile
.
from scalingua.
What does show Compile / resourceGenerators
display? Scalingua uses SBT standard mechanism to generate resources.
from scalingua.
[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.
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.
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.
thanks for the help! I'm closing the issue because I got the answers and the solution
from scalingua.
little addition. sbt copyResources
command works fine for me and generates binaries files
from scalingua.
Related Issues (12)
- Plural string interpolator
- Play! integration module HOT 1
- Testing of PoFile and SBT plugins HOT 1
- Scala.js support? HOT 22
- ' (single quote) should not be escaped
- translation with poedit comments for removed messages fail to load HOT 1
- sbt 1.0 compatibility? HOT 14
- Failure parsing .po files in SBT HOT 5
- msgcat fails with input file 'target/i18n/scala.pot' doesn't contain a header entry with a charset specification
- Save file without !Generated header HOT 2
- java 8 (52) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scalingua.