Change Dart VM version - dart

I want to use the stable release of the sdk, which should be 2.2.0, but when I in the console check the version with the command "dart --version", it says I am running "Dart VM version: 2.1.0".
I have tried to upgrade via choco, and it says that I already have 2.2.0 installed.
Do I have multiple versions av Dart installed and can switch between them?
If so, can I set a default version?

I'll just mark this as answered with the comment of jamsdlin, as it was the correct answer for me.
When you run dart, you'll run whichever dart binary is found first in your search PATH. You have multiple versions installed. Uninstall the old version or modify PATH so that the location for 2.2.0 occurs first.

Related

Why can't I install this aqueduct

Why can't I install this aqueduct?
Although I have installed dart before as shown in the picture:
It's important to ensure that the dart SDK is in the PATH. You can easily test it by trying to use pub or dart.
One way to ensure it's in the PATH is by creating a .bashrc file in your user's folder.
Then add the following:
export PATH="$PATH:/path/to/dart/installation/bin/folder"
First of all check if dart is installed using dart --version if it gives a command not found error that means it is not installed (hence why you cannot install aqueduct since it requires pub which is shipped with the dart sdk).
To install dart on macOS first install brew and the follow the instruction here https://dart.dev/get-dart (don't run brew switch dart 2.1.0 as shown in the screenshot since it makes no sense because current the latest stable is 2.9.1 and 2.1.0 is pretty old).
If you don't want to install brew you can download the sdk here (for your system) extract it, and update your path variable as #gabriel-octávio says.

Prompt-toolkit version issue- incompatible with rasa-core and spyder

I am training a question answering model with rasa-nlu and rasa-core from terminal, wherein it requires the version of prompt-toolkit to be less than version 2.0.0 and when I try to open spyder IDEfrom Anaconda prompt, it is throwing error as it is expecting the prompt-toolkit version to be greater than 2. If I upgrade the version of prompt-toolkit the rasa-core code throws error in terminal. Is there any way to overcome this problem?
This was due to the not maintained dependency for PyInquirer in Rasa Core.
The library PyInquirer is replaced in the new Rasa Core release 0.13.0 with the library questionary. If you already want to have the latest release you can use the latest alpha version, by doing pip install rasa_core==0.13.0a5.

how do you set your version of dart via pub?

I wasnt sure if i need to update it through their website or something, or if it is possible do call some sort of dart version command which will update DART to be a particular version.
Example: Dart is either 1.14, or 1.16. If i want to do it through pub, is there a way to do something like: pub set dart 1.15 or something. I know set isnt a valid command, but i think you get the jist.
This depends on your operating system and what system you use to install Dart.
For Debian you can use apt-get install dart. apt-get allows to pass a specific version number.
For installation options see https://www.dartlang.org/downloads/
In pubspec.yaml you can only specify what DART SDK version and dependency versions are supported by a package but it doesn't have and influence which Dart SDK version gets installed.

Using ES6 on Electron app with io.js

I am writing cross-platform application with electron.
I want to be enable ES6 arrow-function feature in main process using like iojs --harmony_arrow_functions.
Electron already installed successfully on io.js 3.1.0 .
How I can do it with io.js?
If you go to the electron releases, in major/minor release notes you can see which version of nodejs it is using:
https://github.com/atom/electron/releases/tag/v0.36.0
Upgrade to Node 5.1.1.
I'm not totally sure which version of node arrow functions first became available but I can confirm that they are available in the latest version, 5.2.0.
Relatedly, to easily switch between versions of node I highly recommend using nvm:
https://github.com/creationix/nvm
That way you can easily switch to match updated versions of electron and you can automate it quite easily as well.
Electron was switched to nodejs, currently 5.1 see here - https://github.com/atom/electron/releases/tag/v0.36.0

Upgrading Blackboard Learn 9.1 Java issue

I am trying to upgrade Blackboard learn 9.1 to the latest service pack. I have successfully instaslled SP9 and am now trying to install 10, but to do that I've had to install a newer version of JDK. When I changed the JAVA_HOME to reflect this change the installer was reporting that it was still set to the previous version. I restarted the server and now that error has gone, but instead I am getting:
Java SDK location not found at C:/Java/jdk1.6.0_32.
Can anyone tell me why it is still looking in the path to the old version, and what I can do to change it?
Someone from Blackboard was able to help with this in the end, and the answer is as follows:
If running on Windows, when installing the Java SE Development Kit (JDK), make sure that both the JDK and the JRE components are installed to different locations. Also, ensure that there are no spaces in the path name to either the JDK or the JRE.
Shut down Bb-Services
Install recent version of the Java SE JDK, at least version 7u7
Change the JAVA_Home environment variable
Change the config\bb-config.properteries, changing the paths for bothbbconfig.java.home and bbconfig.java.home.win. Paths need to have forward slashes not the standard Windows backslash.

Resources