![]() |
![]() |
#21 |
Registered User
Join Date: Nov 2010
Location: Rhondda, Wales
Age: 42
Posts: 549
|
How much work to port this over to VisualCode ? Which I think is based on Atom, or are the significantly different ?
|
![]() |
![]() |
#22 |
Registered User
![]() Join Date: Oct 2008
Location: Finland
Posts: 504
|
I don't know, I haven't really researched how to define languages for VS Code. The tools I have made to make the auto-complete and help lookup could easily be modified for other tools. I will have a look how to create language definitions for VS code, maybe it's similar.
|
![]() |
![]() |
#23 | |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 465
|
Quote:
Code:
"*": core: autoHideMenuBar: true editor: fontSize: 16 "exception-reporting": userId: "d35e05d2-d8c6-4660-aadc-217fe2b9c794" "atom-shell-commands": commands: [ { name: "Show BB2 Help" command: "C:\\Users\\Havie\\.atom\\packages\\language-blitzbasic2\\tools\\BB2Doc.exe" arguments: [ "{CurWord}" ] options: keymap: "f1" } { name: "Build BB2" command: "cmd" arguments: [ "/C" "start" "{FileDir}\\run.bat" ] options: cwd: "{FileDir}" keymap: "f5" } ] |
|
![]() |
![]() |
#24 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 465
|
My config was totally different so I copied yours and now:
- help works ![]() - F5 starts opens a CMD window in the correct folder but nothing happens. Some good progress. |
![]() |
![]() |
#25 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 465
|
Realised that some of my paths were wrong so now F5 brings up command window, saves project and runs opens WinUAE but doesn't run it (yet)!
|
![]() |
![]() |
#26 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 465
|
This is what my run.bat file looks like - hopefully you can sort me out (nearly there).
Code:
:: --- Blitz Basic 2.1 build batch script --- :: --- by MickGyver (Mikael Norrgard) --- :: You need to edit three things: :: 1. WinUAE executable name and location, and the WinUAE config to use. :: 2. Add ConvertEOL commands for every .bb2 file in the project. :: 3. Edit the WinUAERexx command according to your project. @echo off :main :: WinUAE 64-bit: winuae64.exe, WinUAE 32-bit: winuae.exe tasklist /FI "IMAGENAME eq winuae.exe" 2>NUL | find /I /N "winuae.exe">NUL :: If WinUAE is not running, then run it! if %ERRORLEVEL%==1 goto winuaenotrunning :: Run ConvertEOL for every *_asc.bb2 file in your project ConvertEOL unix test_asc.bb2 project.bb2 :: ConvertEOL unix include1_asc.bb2 include1.bb2 :: ... :: Run the ARexx script :: First .bb2 file is main source file, the following are included files. :: BLITZPROJECTS: in this example is a virtual harddrive (Windows folder) set up in WinUAE where I store my BB2 projects. WinUAEArexx blitzbasic2 1000 "M:\Work\EMULATORS\Amiga\WinUAE3000\Hard Disk\Programming Hard Disk\Programming Files\test.bb2" :: Below is a template for multiple source files, the first one has to be the main project file :: WinUAEArexx blitzbasic2 1000 "BLITZPROJECTS:/project/project.bb2" "BLITZPROJECTS:/project/include1.bb2" "BLITZPROJECTS:/project/include2.bb2" :: Bring WinUAE to front BringToFront "WinUAE" :: Go to end of script goto end :winuaenotrunning echo ------------------------------------------------------- echo Starting WinUAE and SuperTED (Close the nag screen!) echo ------------------------------------------------------- :: Change the path to the WinUAE exectuable and the configuration according to your environment start "" "M:\Work\EMULATORS\Amiga\WinUAE3000\winuae.exe" -f "M:\Work\EMULATORS\Amiga\WinUAE3000\configurations\atom" timeout 7 goto main :end timeout 5 exit |
![]() |
![]() |
#27 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 465
|
|
![]() |
![]() |
#28 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 465
|
Damn - now Atom won't run (although it's in task manager).
![]() |
![]() |
![]() |
#29 |
Registered User
![]() Join Date: Oct 2008
Location: Finland
Posts: 504
|
|
![]() |
![]() |
#30 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 465
|
Haven't had anytime this week. Not giving up, just need some time...
|
![]() |
![]() |
#31 |
Registered User
![]() Join Date: Oct 2008
Location: Finland
Posts: 504
|
Version 0.3
I uploaded a new version with these improvements:
http://gamephase.net/files/linked/AtomBB2.zip |
![]() |
![]() |
#32 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 465
|
Righto - got it to run again (must have messed up config file). I think Atom is now working fine but need to get compiling in Winuae working. My .bat files is obviously not right. The location of Winuae is:
M:\Work\EMULATORS\Amiga\WinUAE3000 And here is my .bat file - I'm probably being a but thick on the editing of this file! F5 opens a command window and does seem to run the .bat file. Code:
:: --- Blitz Basic 2.1 build batch script --- :: --- by MickGyver (Mikael Norrgard) --- :: You need to edit three things: :: 1. WinUAE executable name and location, and the WinUAE config to use. :: 2. Add ConvertEOL commands for every .bb2 file in the project. :: 3. Edit the WinUAERexx command according to your project. @echo off :main :: WinUAE 64-bit: winuae64.exe, WinUAE 32-bit: winuae.exe tasklist /FI "IMAGENAME eq winuae.exe" 2>NUL | find /I /N "winuae.exe">NUL :: If WinUAE is not running, then run it! if %ERRORLEVEL%==1 goto winuaenotrunning :: Run ConvertEOL for every *_asc.bb2 file in your project ConvertEOL unix "c:users/havie/desktop/atombb2/BB Filestest_asc.bb2" project.bb2 :: ConvertEOL unix include1_asc.bb2 include1.bb2 :: ... :: Run the ARexx script :: First .bb2 file is main source file, the following are included files. :: BLITZPROJECTS: in this example is a virtual harddrive (Windows folder) set up in WinUAE where I store my BB2 projects. WinUAEArexx blitzbasic2 1000 "M:\Work\EMULATORS\Amiga\WinUAE3000\Hard Disk\Programming Hard Disk\Programming Files\test.bb2" :: Below is a template for multiple source files, the first one has to be the main project file :: WinUAEArexx blitzbasic2 1000 "BLITZPROJECTS:/project/project.bb2" "BLITZPROJECTS:/project/include1.bb2" "BLITZPROJECTS:/project/include2.bb2" :: Bring WinUAE to front c:users/havie/desktop/atombb2/BringToFront "WinUAE" :: Go to end of script goto end :winuaenotrunning echo ------------------------------------------------------- echo Starting WinUAE and SuperTED (Close the nag screen!) echo ------------------------------------------------------- :: Change the path to the WinUAE exectuable and the configuration according to your environment start "" "M:\Work\EMULATORS\Amiga\WinUAE3000\winuae.exe" -f "M:\Work\EMULATORS\Amiga\WinUAE3000\configurations\atom" timeout 7 goto main :end timeout 5 exit |
![]() |
![]() |
#33 | |
Registered User
![]() Join Date: Oct 2008
Location: Finland
Posts: 504
|
Quote:
1. The ConvertEOL does not need the full path, you shouldn't have spaces in the filenames and the output filename is wrong (should be same name minus the _asc suffix). Code:
ConvertEOL unix "c:users/havie/desktop/atombb2/BB Filestest_asc.bb2" project.bb2 -> ConvertEOL unix BB_Filestest_asc.bb2 BB_Filestest.bb2 Code:
WinUAEArexx blitzbasic2 1000 "M:\Work\EMULATORS\Amiga\WinUAE3000\Hard Disk\Programming Hard Disk\Programming Files\test.bb2" -> WinUAEArexx blitzbasic2 1000 "NAMEOFHDD:/Programming Files/BB_Filestest.bb2" 3. Is your configuration file just named "atom" without the ".uae" file extension? Code:
start "" "M:\Work\EMULATORS\Amiga\WinUAE3000\winuae.exe" -f "M:\Work\EMULATORS\Amiga\WinUAE3000\configurations\atom" |
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
BB2 User Defined Language for Notepad++ | MickGyver | Coders. Blitz Basic | 87 | 30 September 2019 14:43 |
Looking for FizEd text editor | apsteinmetz | request.Apps | 2 | 12 April 2019 23:12 |
Text/coding Editor | Torqual | support.Apps | 18 | 24 December 2018 00:18 |
new text editor | flipper | Coders. Tutorials | 8 | 17 December 2007 11:57 |
Text editor for A500 | oldpx | request.Apps | 12 | 19 December 2002 03:02 |
|
|