December 10, 2019, 02:26:32 PM

Author Topic: BlitzMax VSCode extension  (Read 1361 times)

Offline Hezkore

  • Jr. Member
  • **
  • Posts: 86
  • 🍑 Juicy
BlitzMax VSCode extension
« on: June 04, 2019, 07:38:43 PM »
BlitzMax extension for Visual Studio Code.
Build and code your BlitzMax NG or Legacy applications in VSCode.
Both the extension and VSCode are free to use, easy to install, and available for Windows, Linux and Mac.

Installation is easy.
Just open a `.bmx` file and VSCode will guide you through installing the extension.
You can also manually install it via the marketplace: marketplace-hezkore.blitzmax
Or enter the command (Ctrl + P) `ext install Hezkore.blitzmax` in VSCode.
And feel free to fork the extension on GitHub: vscode-blitzmax-support

Additional information.
Changelog: Read on Marketplace
Worklog: Read on SyntaxBomb
Issues: Report on GitHub
Questions: Ask on Marketplace

Don't forget to rate or review: Rate on Marketplace



Features:
  • Syntax Highlighting (One Monokai Theme)
  • Per-Project BlitzMax Installation
  • Build Tasks
  • Auto-Complete
  • Problem Detection
  • Snippets
  • Examples
  • View Module Definitions
  • Quick Build Buttons
  • Guided Install
Keep it simple.

Offline Hezkore

  • Jr. Member
  • **
  • Posts: 86
  • 🍑 Juicy
Re: BlitzMax in VSCode
« Reply #1 on: June 08, 2019, 05:49:09 PM »
Missing/Planned Features
Known Issues
  • None.

I'll probably never be able to implement proper debugging and other similar things.
So I'm asking YOU to head over to GitHub, fork the extension, and help this project grow!
GitHub Link: vscode-blitzmax-support
Keep it simple.

Offline fielder

  • Jr. Member
  • **
  • Posts: 77
Re: BlitzMax in VSCode (New 1.1.0 release)
« Reply #2 on: June 10, 2019, 07:34:02 PM »
The new 1.1.0 update lets you easily build stuff, without having to mess with any json files.
Just hit Ctrl + Shift + B and select how you want to build. :)
Great Job!

Offline Hezkore

  • Jr. Member
  • **
  • Posts: 86
  • 🍑 Juicy
Re: BlitzMax VSCode extension
« Reply #3 on: June 13, 2019, 11:00:53 PM »
Thanks!

I'm hoping someone with actual VSCode knowledge can help me out sooner or later heh.
I've not used VSCode all that much, and I've never written anything in TypeScript (nor JS) before.
But I feel like this could be something really great if we keep working on it!

In the meantime; I'll keep adding smaller features.
I've added a right click menu option for files, so that you can easily lock them as the build file.
And you can now just press F5 to quickly build your application.
Keep it simple.

Offline fielder

  • Jr. Member
  • **
  • Posts: 77
Re: BlitzMax VSCode extension
« Reply #4 on: June 14, 2019, 08:28:50 AM »
Thanks!
i think that a small youtube video about creating the workspace/project and an Hello word application can be a nice starting point to use VSCode.

Offline Hezkore

  • Jr. Member
  • **
  • Posts: 86
  • 🍑 Juicy
Re: BlitzMax VSCode extension
« Reply #5 on: June 14, 2019, 09:41:41 AM »
Quote
i think that a small youtube video about creating the workspace/project and an Hello word application can be a nice starting point to use VSCode.

Here's how your very first BlitzMax project in VSCode might be setup.
It assumes you don't have the BlitzMax extension installed, nor configured.
If you DO have the extension installed; all you have to do is create a folder, a file and hit F5.



You now have a workspace setup and ready to use!
VSCode will store all your settings and tasks inside a '.vscode' folder for you.
You don't have to worry about any of that though, the extension does it all for you.

Some Workspace related things:
Keep it simple.

Offline Hezkore

  • Jr. Member
  • **
  • Posts: 86
  • 🍑 Juicy
Re: BlitzMax VSCode extension
« Reply #6 on: June 14, 2019, 05:08:58 PM »
I've opened a worklog for this project over at: https://www.syntaxbomb.com/index.php/topic,5824.0.html
Keep it simple.

Offline GW

  • Full Member
  • ***
  • Posts: 169
Re: BlitzMax VSCode extension
« Reply #7 on: July 01, 2019, 07:13:47 AM »
Just tried it out.  Looks great!

Offline Hezkore

  • Jr. Member
  • **
  • Posts: 86
  • 🍑 Juicy
Re: BlitzMax VSCode extension
« Reply #8 on: July 01, 2019, 09:29:37 PM »
Awesome, thanks! :)

Give the new version a go. (it'll auto-update)
It will now auto-complete commands from your BMax modules.
Keep it simple.

Offline fielder

  • Jr. Member
  • **
  • Posts: 77
Re: BlitzMax VSCode extension
« Reply #9 on: July 03, 2019, 08:16:03 AM »
i'm using it with Blitzmax NG.. 64 bit Win build... seems that i'm unbale to build a RELEASE... only DEBUG versions. (i switched the release/debug setting... but pressing F5 i can compile only debug versions)

Offline Hezkore

  • Jr. Member
  • **
  • Posts: 86
  • 🍑 Juicy
Re: BlitzMax VSCode extension
« Reply #10 on: July 03, 2019, 09:07:24 AM »
i'm using it with Blitzmax NG.. 64 bit Win build... seems that i'm unbale to build a RELEASE... only DEBUG versions. (i switched the release/debug setting... but pressing F5 i can compile only debug versions)

Pressing F5 in VSCode will always start debugging. https://code.visualstudio.com/docs/getstarted/keybindings#_debug
And pressing Ctrl + Shift + B will present you with your build tasks. https://code.visualstudio.com/docs/getstarted/keybindings#_tasks

So just hit Ctrl + Shift + B and all of your options will be applied, and you'll have a proper build. :)

(debugging isn't properly implemented according to the VSCode rules yet)
Keep it simple.

Offline fielder

  • Jr. Member
  • **
  • Posts: 77
Re: BlitzMax VSCode extension
« Reply #11 on: July 04, 2019, 07:29:12 AM »
Thank you :) in future can be possible the if/endif matching?

Offline chalky

  • Jr. Member
  • **
  • Posts: 41
Re: BlitzMax VSCode extension
« Reply #12 on: July 04, 2019, 12:50:08 PM »
It's VERY likely I'm being a numpty here, but whenever I open a folder and load a bmx file, I get: Error executing BMK: 'bcc' is not recognized as an internal or external command, operable program or batch file.

I also get BlitzMax documentation needs to be rebuilt every time I load a bmx file from the EXPLORER pane.

I think I have set everything up correctly, but - as already suggested - numptiness could very well be the cause for the all of the above...

Offline Hezkore

  • Jr. Member
  • **
  • Posts: 86
  • 🍑 Juicy
Re: BlitzMax VSCode extension
« Reply #13 on: July 04, 2019, 03:34:33 PM »
Thank you :) in future can be possible the if/endif matching?

I'll see what I can do.
The problem with stuff like that is that VSCode expects languages to be case-sensitive.
So I'd have to add cases for `if/IF/If/iF` and match it against a lot of different `EndIf`.

Quote
It's VERY likely I'm being a numpty here, but whenever I open a folder and load a bmx file, I get: Error executing BMK: 'bcc' is not recognized as an internal or external command, operable program or batch file.

I also get BlitzMax documentation needs to be rebuilt every time I load a bmx file from the EXPLORER pane.

I think I have set everything up correctly, but - as already suggested - numptiness could very well be the cause for the all of the above...

Hmm it sounds like your BlitzMax path isn't correctly set in your user settings.
Hop into your settings, make sure you're in `user` and not in `workspace` (workspace won't show if you have none open), then navigate to extensions and you'll find BlitzMax.
The path should point to your BlitzMax root, and not the `bin` folder.

Keep it simple.

Offline chalky

  • Jr. Member
  • **
  • Posts: 41
Re: BlitzMax VSCode extension
« Reply #14 on: July 04, 2019, 03:43:29 PM »
Doh - working perfectly now. This is really great - thank you!