Visual Studio Code Extension for JAL Released to Marketplace

28 views
Skip to first unread message

Sunish Issac

unread,
Apr 13, 2021, 11:03:10 AM4/13/21
to jal...@googlegroups.com, jal...@googlegroups.com
Dear All,

It's been a long time since I wanted to do this extension for JAL to replace Jaledit.

One of the main problems that had to be solved was cross platform compatibility which is now possible through vscode.
With real big jal include files, Jaledit was crawling and there were issues with file association and permission which resulted in crashing of jaledit on editor preferences unless it warun with admin rights

This is not a perfect solution yet as there are many more features to be implemented to have all functionality of jaledit. 

But the following features work very well
  • Syntax Highlighting
  • Fast opening and saving of files irrespective of the size.
  • Linux and Windows support
  • Code folding
  • Auto completion ( More work needs to be done to have functions/procedures included from include files)
  • Code Snippets ( Only very few are added, but not very difficult to add)
  • Compiling to Hex file
  • Ctrl-Click to go to error line ( It doesn't go automatically)
  • Searching/Replacing any word within files and across folder
  • Direct Github Push/Pull/Diff other commands
  • Side by side View and file comparison
  • Theme selection/switching
  • Folder/explorer view

Some of the main features not in the extension
  • Code Explorer for include files,procedures,functions,variables,constants,aliases
  • Opening include files with Ctrl-Enter
  • Auto Backup with time stamp/compilation
  • Backup project as zip file
  • Go to error line after compilation 
  • Running programmer on successful build 
  • Serial Terminal
  • Compile/Program buttons/keys
  • Detecting PIC name from code and passing it as variable to Programmer executable
  • Set file as Active JAL file and compile that irrespective of file you are editing
Requirements & Installation Process: 
  1. Download,install and run Visual studio code from  https://code.visualstudio.com/download
  2. Press Ctrl-Shit-X to invoke the Extensions and search for JAL (or trying to open a JAL file will also prompt to install the extension)
  3. Click Install to add the extension to vscode
  4. Set the path to your jal compiler exe and library file path by clicking the gear icon in extension manager and selecting Extension Settings (It's also possible by going to editor preferences and searching for JAL)
  5. Press Ctrl-Shift-P and Type/select "Tasks:Open User Tasks''.
  6. Select Others (Example to run arbitrary command).
  7. In the opened tasks.json paste the following code
    {
        // prefilled tasks.json for compiling a JAL file
        "version""2.0.0",
        "tasks": [
            {
                "label""Compile JAL File",
                "type""process",
                "command""${config:jal.paths.exePath}",
                "args": [
                    "${file}",
                    "-s",
                    "${config:jal.paths.LibPath}"
                ],
                "presentation": {
                    "reveal""always",
                    "panel""new"
                },
                "problemMatcher": [],
                "group": {
                    "kind""build",
                    "isDefault"true
                }
            }
        ]
    }
  8. Open any JAL file and press Ctrl-Shift-B to build the JAL file and you are ready to rock !

Code of the extension is fully open source and can be pulled/cloned from GitHub - sunishnet/vscode-jal: A VS Code extension for JAL
Visual studio code marketplace link for JAL Jal - Visual Studio Marketplace

________________________________________________________________________________________________________________________________

Off late the activity in our community is very less except for very people like Rob, I guess, most are on Arduino/ESP/ST. 
How many know that Arduino Project was started in JAL  by Massimo who was one of the jallist members.

I'm not sure how many of us are there from the days of Wouters' JAL, but would like to say hi to those lurkers sharing the nostalgia :-) .


Kind regards,

Sunish

Rob CJ

unread,
Apr 14, 2021, 2:22:39 AM4/14/21
to jal...@googlegroups.com, jal...@googlegroups.com
Hi Sunish,

Great work!

I used this and it works very well. It makes the programming life also easier since the Intellisense feature of Visual Studio Code gives you hints while programming so you can quickly select the right procedure, function, variable or constant that you used earlier.

And now JAL also supports Linux  users better 🙂.

Kind regards,

Rob


Van: jal...@googlegroups.com <jal...@googlegroups.com> namens Sunish Issac <sunis...@gmail.com>
Verzonden: dinsdag 13 april 2021 17:02
Aan: jal...@googlegroups.com <jal...@googlegroups.com>; jal...@googlegroups.com <jal...@googlegroups.com>
Onderwerp: [jallist] Visual Studio Code Extension for JAL Released to Marketplace
 
--
You received this message because you are subscribed to the Google Groups "jallist" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallist+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallist/CAFGw2pGUWLmnU0sHXGRPsjbPMUhU2zU5vd_Pc6VYf6LZMM-_Gw%40mail.gmail.com.

Mario Cuéllar

unread,
Apr 14, 2021, 4:15:52 PM4/14/21
to jal...@googlegroups.com, jal...@googlegroups.com
Thanks! It's great.

You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/AM0PR07MB6241F7B890014D70402C0985E64E9%40AM0PR07MB6241.eurprd07.prod.outlook.com.

Sunish Issac

unread,
Apr 16, 2021, 1:45:30 AM4/16/21
to jal...@googlegroups.com, jal...@googlegroups.com
Thank you Rob and Mario for your feedback. In Yahoo jallist we had around 2000 members, now it's less than 50 I think.

So not many users to try the new extension.

Regards,
Sunish

vsurducan

unread,
Apr 16, 2021, 2:21:29 AM4/16/21
to jal...@googlegroups.com
Small number but highest quality...
Sunish, I remember one of your prizes, millennium alliance award? 2024-2015 I think...:)
best wishes,
Vasile


Sunish Issac

unread,
Apr 16, 2021, 2:40:28 PM4/16/21
to jal...@googlegroups.com
Hi Vasile,
Long time, you are the oldest member I see from jallist. And IIRC THE JAL drawing that's being used is your daughter's childhood drawing right ?

Yes, had got  Millennium Alliance Award in 2014.

Kind regards,
Sunish


vasi vasi

unread,
Apr 16, 2021, 3:48:46 PM4/16/21
to jal...@googlegroups.com
Hi Sunish,
Extension not compatible with 1.53,2 version... I will update to a recent one - I avoided this a couple of times but I will do it to test your extension. BTW, there is a FreeBSD port, but it is older... if you can stick with your actual version without updating for a while, might help others...

--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.


--
Vasi

vasi vasi

unread,
Apr 16, 2021, 4:06:07 PM4/16/21
to jal...@googlegroups.com
Very nice work Sunish, thank you very much. Nowadays, I'm using VSCode for Nucleo STM32 microcontroller projects and also for MSEgui+freepascal and Lazarus+freepascal projects.
--
Vasi

Rob CJ

unread,
Apr 17, 2021, 5:45:22 AM4/17/21
to jal...@googlegroups.com, jal...@googlegroups.com
Hello all,

I added this json.tasks file to GitHub and added a Wiki page for the Visual Studio Code extension.


Kind regards,

Rob


Van: jal...@googlegroups.com <jal...@googlegroups.com> namens vasi vasi <fun...@gmail.com>
Verzonden: vrijdag 16 april 2021 22:05
Aan: jal...@googlegroups.com <jal...@googlegroups.com>
Onderwerp: Re: [jallib] Visual Studio Code Extension for JAL Released to Marketplace
 

Sunish Issac

unread,
Apr 17, 2021, 10:06:29 AM4/17/21
to jal...@googlegroups.com
Hi Vasi,

By default the version which I develop is taken as the default minimum. I might be able to specify an older version to make it compatible with old version.
Do you have any reason in not upgrading to latest version?

Kind regards
Sunish

Sunish Issac

unread,
Apr 17, 2021, 10:10:13 AM4/17/21
to jal...@googlegroups.com
Thank you Vasi for your update.

What is the name of that extension ?
I'm also planning for Microchip asm file as well as its not available and we can have the embedded assembler highlighted in JAL.

Regards,
Sunish

Sunish Issac

unread,
Apr 17, 2021, 10:13:15 AM4/17/21
to jal...@googlegroups.com, jal...@googlegroups.com
Thanks Rob,

It's helpful and convenient.

BTW the jaldocs folder and programmer path is not currently not relevant as its a future planned feature.

Should I remove it ?

Regards,
Sunish

vasi vasi

unread,
Apr 17, 2021, 10:24:49 AM4/17/21
to jal...@googlegroups.com
Hi Sunish!

I'm always afraid to upgrade! :)

No special extensions than "Cortex-Debug" for debugging apps for STM32 micros and two Pascal extensions ("Pascal" and "Pascal-Formatter").

My Visual Pin Configurator app generates projects for VSCode and Cortex-Debug extension requires a certain format for it's configuration file. But I saved an old version of VSCode in my repository so no problem here. I mainly thought that if a FreeBSD user would have liked to use your extension that wouldn't have been possible as they have an older version available.




--
Vasi
Reply all
Reply to author
Forward
0 new messages