I have scala project that I use sbt to manage and I have a sbt plugin (sbt-twirl to be specific) that I need for the project. Now I would like to use Eclipse for editing/debugging the project. As usual, I used sbt-eclipse to generate the Eclipse project files and use scala-ide plugin in Eclipse. However, the Eclipse project does not compile the code that requires the sbt-twirl plugin. I am guessing that the sbt used by Eclipse is not picking up the sbt-twirl plugin. Is there any way to configure Eclipse's sbt to use the sbt-twirl plugin (configure either automatically through sbt-eclipse, or manually in Eclipse)?
I am using Eclipse Indigo (3.7.2) with Scala IDE 2.0.2 .
Thanks in advance.
Related
Using Qt Creator (latest released version, "Qt Creator 5.0.3 based on Qt 5.15.2"), the default build steps when creating a new project using meson are wrong.
My project configuration is the following: I have my source code, meson build files in a directory which also contains the build directory named "build".
Here are the default build steps:
Here is what it should be:
Is there a way I can change the default build settings for every project? Can someone explain why Qt Creator doesn't have good build steps by default?
Tools > Options > Meson > Enable "Autorun meson".
Yeah, that's an easy fix.
I use scss in my project and want to use bootstrap.scss so I can define a single class inheriting multiple bootstrap classes e.g.
.myButtonClass { #col-xs-12; #col-sm-6 }
So I can replace class="col-xs-12 col-sm-6" with class="myButtonClass" as I have many buttons that need to be the same. I have installed the yarn extension in VS2017 and can see the Restore Packages (yarn) in my GUI, but yarn is not found in the VS command prompt. So I cannot install the bootstrap scss package.
This is a .Net Framework WebAPI project, not node.js project. There seems to be no examples of how to use js packages in a vanilla .Net Framework WebAPI project.
Or is it simply that I cannot use these style of JS packages?
If you want to use npm on Windows, this is what you need:
Download and install Node (you might need a restart).
Make sure that node is installed by opening a command prompt and running node -v (should print a version number).
Run npm -v and see if it's installed (should be).
Now in the context of an ASP.NET MVC project. The newer versions of Visual Studio (I believe 2017) support npm - you can just open the package.json and add dependencies (it will download them behind the scenes).
In case you're using an old version, you can simply open a command prompt, navigate to your project and use npm install from there.
Simply run npm install bootstrap-scss#4.3.1
I have a multi module sbt/Scala project, and I want to write a maven plugin that depends on the scala code.
For the moment, I have the plugin in a separate project, using maven (maven-plugin packaging, and deps on the scala code). I therefore have 2 projects : one sbt and one maven. So I need to build (and publishM2) the sbt one and then build the other with maven.
Can the maven plugin be aggregated into the sbt build, so that I have only one multi-module project ?
Do I need to keep the pom.xml and "invoke" it from sbt ?
Can I build the mvn plugin directly in sbt (what about the packaging "maven-plugin" then) ?
In Visual Studio Code if you install the typings(the new tsd) it enables intellisense for the given typing. For example if you execute
$ typings install node --ambient --save
in the base folder of your project, you get intellisense for node.
Is there a way to achieve the same with Atom, or it's not supported?
Atom doesn't support Typescript intellisense out of the box, but it has a great plugin system.
Install the Atom Typescript plugin. It provides many features for working with Typescript, including intellisense.
Is there any command in Activator that can list all the dependencies and libraries that I use with the current version and newer versions that is possible to use to update my project?
This is similar that the apache maven command versions:display-dependency-updates.
Is there any similar command available?
You're looking for sbt-updates, which is a plugin for sbt and activator.
Install the plugin and execute activator dependencyUpdates to see the list of outdated dependencies.