|
|
|
|
|
by ErikCorry
1269 days ago
|
|
Sure. The easiest way is probably to install Jaguar https://github.com/toitlang/jaguar I would very much recommend the Visual Studio Code extension when you are starting out with the language. Will give you a lot of help and hints around the syntax. But you can use any editor. Run a program on the desktop with `jag run -d host myprogram.toit` Install the `host` package for non-embedded things like files, pipes and subprocesses: # Make this directory into a Toit project. touch package.yaml # Install the host package jag pkg install host Other packages like http or mqtt can be found at https://pkg.toit.io/ |
|
jag setup
which I was clearly told by jag run ...
Very nice experience so far.
One issue I have is that when I use UTF-8 characters in strings they don't show up correctly when the program outputs them to console which also uses UTF-8.
Not sure if I should configure jag somehow to make it work?
With exactly the same setup (editor/console) I have no encoding issues with javascript or python.
What's weirder, console in MINGW64 git bash window (directly, but not through Visual Studio Code) works just fine, even if I launch cmd or powershell in this gitbash window it still works fine.
Switching windows to UTF-8 systemwide through intl.cpl seems to help.
Still weird that other environments don't require this.