22 November 2019, 13:43 | #21 |
Registered User
Join Date: Nov 2010
Location: South Wales
Age: 46
Posts: 934
|
How much work to port this over to VisualCode ? Which I think is based on Atom, or are the significantly different ?
|
22 November 2019, 15:44 | #22 |
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
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.
|
22 November 2019, 20:23 | #23 | |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,893
|
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" } ] |
|
22 November 2019, 20:30 | #24 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,893
|
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. |
22 November 2019, 20:39 | #25 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,893
|
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)!
|
22 November 2019, 20:44 | #26 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,893
|
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 |
22 November 2019, 20:57 | #27 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,893
|
|
23 November 2019, 19:30 | #28 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,893
|
Damn - now Atom won't run (although it's in task manager).
|
27 November 2019, 13:56 | #29 |
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
|
27 November 2019, 23:23 | #30 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,893
|
Haven't had anytime this week. Not giving up, just need some time...
|
28 November 2019, 14:55 | #31 |
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
Version 0.3
I uploaded a new version with these improvements:
http://gamephase.net/files/linked/AtomBB2.zip |
30 November 2019, 21:22 | #32 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,893
|
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 |
05 December 2019, 13:44 | #33 | |
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
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" |
|
16 January 2020, 22:35 | #34 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,893
|
Hi I' back!
Been a bit of delay as the Windows install went belly up and loads of programs stopped working. In the end I had to reinstall Windows 10 and all is now well. Then Christmas happened... Anyway, determined to get this working. I currently have the editor working fine including help, highlighting and view of source code. Pressing F5 brings up WinUAEand highlights the atom config but doesn't actually run WinuUAE. I get the following errors in the run window: No connection could be made as the target machine actively refused it and WINUAEArexx can't find the path (which seems right): WinUAEArexx blitzbasic2 1000 "Programming Hard Disk:Programming Files/test.bb2" I have allowed WinUAE in Windows Defender but connection still comes up as refused. Any more suggestions? |
18 January 2020, 09:08 | #35 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,893
|
Right - WinUAE runs and loads up workbench now and the connection error has gone.
Just need to workout why BB2 isn't running... |
19 January 2020, 00:28 | #36 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,893
|
The problem is in this line:
WinUAEArexx blitzbasic2 1000 "HD1:/Programming Files/project.bb2" and the error says - can't find path - so I am obviously missing something with file path. in an earlier post you said that the path should be the hard disk as seen from the Amiga. So in this case the disk is HD1 and a folder in the root directory is Programming Files. Help!!! |
19 January 2020, 10:43 | #37 |
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
Version 0.4
I uploaded a new version with these improvements:
http://gamephase.net/files/linked/AtomBB2.zip |
19 January 2020, 10:47 | #38 | |
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
Quote:
I can't help much since I don't have access to your computer, but is the error on the Windows side? In that case, WinUAEArexx can't be found. I just uploaded a new version with a hopefully easier to configure run.bat. Try that one! |
|
19 January 2020, 21:42 | #39 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,893
|
I'm not giving up!!!
|
19 January 2020, 21:43 | #40 |
Registered User
Join Date: Mar 2012
Location: UK
Posts: 1,893
|
Error is on Windows side and I thought that it was not finding the Amiga path...
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Text/coding Editor | Torqual | support.Apps | 19 | 08 September 2022 22:28 |
BB2 User Defined Language for Notepad++ | MickGyver | Coders. Blitz Basic | 105 | 21 February 2020 21:13 |
Looking for FizEd text editor | apsteinmetz | request.Apps | 2 | 12 April 2019 22:12 |
new text editor | flipper | Coders. Tutorials | 8 | 17 December 2007 10:57 |
Text editor for A500 | oldpx | request.Apps | 12 | 19 December 2002 02:02 |
|
|