Using Windows/Linux IDE for RISC OS source code
Michael Gerbracht (180) 104 posts |
I would like to get an overview of parts of the RISC OS source code and I would like to use IDE features for it so that I can quickly jump to definitions and use some more advanced features which StrongED/Zap are lacking. Also it would allow me to use Git until it is available for RISC OS. So I would prefer to use Visual Studio (Code) on Windows (maybe Linux – but would need to set it up first also I am more used to Windows). My two main questions are: - can you give any advice on how to set it up? It would be good if it could handle the directory structure so look for header files in the h dirctory etc. - what is the best way to transfer the files between Windows and RISC OS so that file types are handled well?I don’t need to build it on Windows. So I guess the work flow would be like: - Pull a branch using git under Windows/Linux - Make some changes in e.g. Visual Studio Code - Transfer code to RISC OS (or use a network share?) - build & test it on RISC OS - if successfull commit on Windows/LinuxI someone is working this way I would be interested in some best practice advice and information on your setup. |
Paolo Fabio Zaino (28) 1882 posts |
Hey Michael, VSCode has a lot of plugins which includes ARM Assembly, BBC BASIC and ANSI C. Unfortunately none of the ones I use support !ObJAsm syntax, so there you may find some initial difficulties. For what concern the workflow:
Alternative approach:
No promises, but if there are enough people interested, we could work out a VSCode Studio plugin for ObjAsm and Norcroft C, I just didn’t bother only for myself |
Michael Gerbracht (180) 104 posts |
Thanks Paolo for your hints, I will setup a Linux-VM and try it out! |
Alan Robertson (52) 420 posts |
There was a thread recently created that provided links to download RISC OS syntax for several different Window/Linux editors → https://www.riscosopen.org/forum/forums/1/topics/15487 Thinking about it, it’s probably a good idea to add these to an existing developers wiki page so new coders know that there is a way to (hopefully) use their existing IDE editors with RISC OS syntax. <Action – leave this to me – I’ll do this tomorrow> Question to others – how easy/how much effort is it to create VSCode plugins to handle different syntax? Anything that helps coders manage RISC OS code easily is worthwhile in my opiniion. Let’s face it, most developers are used to IDE’s, and the likes of Zap and StrongEd (no matter how good they are) are probably going to be a huge shock to any new developers coming from other OS’s. |
Steve Fryatt (216) 2106 posts |
It’s easier than it would be in Zap. ;) As I think I mentioned at the time of the other thread, I’ve got a BBC BASIC (text) mode which mostly works — it gets colouring correct, but doesn’t quite get the selection of variables right (it misses the % and $ off the ends when double-clicking to select). There’s no assembler support yet, though. I’m a step closer to being able to release it, as I now have a GitHub account — which I think is how its done — and could probably get around to making it available sometime. |
Paolo Fabio Zaino (28) 1882 posts |
Yup, VSCode is becoming super-popular for this reason.
Cool Steve, I am happy to help testing, I was about to start a plugin for ObjAsm syntax and obviously file handling, but never really started it (just being lazy on this). |
Alan Robertson (52) 420 posts |
Just a quick update, I’ve created a simple wiki page for potential new developers who would like to the source editors they are already experienced with. Just copied and pasted the information from the forum link I posted a few comments above, and sprinkled some Textile magic on it. Available here → RISC OS Development on other platforms |
Paolo Fabio Zaino (28) 1882 posts |
Good idea Alan! :) |