![]() |
Forum Index : Microcontroller and PC projects : MMEdit V5
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1636 |
Thanks Jim, But (why is there always a 'but') my settings look like yours Apart from the %q% replacing the single quote in yours. The 'use batch file' box is ticked There is no ext1 or ext2 in my MMEdit5.inf file. The batch file is there in c:\program files\MMEdit5\ along with MMBasic et al. Now when I click on the little gear icon nothing happens apart from a very brief blink of the display as if the focus is briefly going elsewhere. Sorry. Bill Keep safe. Live long and prosper. |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1636 |
I wasn't sure whether I need to add this to MMEdit5.inf still or, if so, where to add it. I have not done it. Bill Keep safe. Live long and prosper. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6220 |
No Bill, the original DOS settings should work without any changes other than ticking the 'use batch' box. You can now use a single quote instead of %q% for the double quote place holders. Either way will work. The single quote is easier to see whats happening. The 'test' button will show you what the filled out commands look like for the current bas file. Can you show me what your settings are. Either a screen dump of the setting page or the Ext0 = line from your MMEdit.inf Jim VK7JH MMedit |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1636 |
Here they are Jim: ![]() The paths in the TEST box look correct. I didn't bother to change the quotes. I'm sure it is some simple thing that I am not grasping. Bill Keep safe. Live long and prosper. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6220 |
Everything looks OK and the same as mine. Can you try with this simple program. Save it in your AAC folder. 'test program PRINT cwd$ FILES Jim Edit: I notice that there are no quotes around the path to the exe. They will be needed due to the space in Program Files. Either %q% or ' each end and you should be under way. Edited 2022-11-11 12:52 by TassyJim VK7JH MMedit |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1636 |
It would not run from MMEdit5 so I selected 'open with' > MMBasic.exe and got this. I don't know where the copy of MMBasic is that was run but it's not in system32. I tried it with MMEdit4 and got the same result. EditSA still works from MMEdit4 though. Bill By the way, the version of MMBasic that you are supplying is not the latest it's 5.05.04 Keep safe. Live long and prosper. |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1636 |
I dragged the test program into the MMBasic.exe in the MMEdit5 folder and got the same result. I don't know what the changes to MMBasic 5.05.05 are because Geoff does not do a change log for it. Bill Keep safe. Live long and prosper. |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1636 |
Sorry to keep bombarding you but I don't know what is relevant. just noticed that if I change the syntax to DOS it reverts to 'rpi' each time. The .inf file shows: I thought that should change? Bill Edited 2022-11-11 13:55 by Turbo46 Keep safe. Live long and prosper. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6220 |
Did you add the quotes to the 'Path to external program'? '%mmepath%MMBasic.exe' Getting the system32 starting folder when you 'open with' from Windows Explorer demonstrates the problem I was having. Windows thinks it knows best and can be difficult to tame sometimes. That's why I went with the batch file. To change the default syntax, select it in the Syntax menu then select the last entry: Set default syntax... ![]() I must put a popup to acknowledge the change. I will update the version of MMBasic I include - thanks. VK7JH MMedit |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1636 |
No I didn't because it had the %q% there instead and you said the either/or is OK. If you check the screen shot above you will see them. Then I checked again and they were gone? Don't know how. So I entered the single quotes as per your example and IT WORKS! Tried a few times just to be sure to be sure and it's still working. Sorry about the 'set default syntax' thing I just expected it to save the last one used as MMEdit4 does. ![]() The little icon 'syntax help' does nothing, should it? or have I broken something. Syntax help on the help menu works. Bill Edited 2022-11-11 15:27 by Turbo46 Keep safe. Live long and prosper. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6220 |
Your screen shot shows the %q% missing. ![]() The default syntax is the syntax set when MMEdit starts. After that, any newly opened file will use the syntax that the last active file is using. That syntax is displayed in the status bar at the bottom of the window. The quickest way to get syntax help for the keyword under the cursor is shift-F1 The Syntax help button currently only shows the 'one line' brief help. I will change that to full help. Your comments are useful and helping MMEdit run a bit more smoothly. Jim VK7JH MMedit |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1636 |
Of course it does, I was confusing it with the starting folder. And sorry I didn't notice the default syntax in the status bar. Now MMEdit5 is crashing when I'm trying to save a new default syntax. ![]() Thanks for your patience. Bill Keep safe. Live long and prosper. |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1636 |
MMEdit5 crashes after setting the default syntax a few times. I can't find a pattern yet, sometime I can change syntax repeatedly and it just works. More on that: it is now in a state where I load MMEdit5 (no program) default syntax: DOS, load a small program, go > syntax > CMM2 and it crashes every time. But next time after loading the program, I clicked on the little gear icon to run in DOS and it worked, now it's back to normal, I can change the syntax with no problems!.0 So now I removed the program from MMEdit5. Closed it (no program, default syntax CMM2). Then relaunch it, load the program. Go > syntax > DOS --- CRASH! Reset the PC, repeat, same result. Sometimes, if I have no program loaded, it refuses to change the syntax. Even though the new syntax is ticked in the list, it still displays the old syntax in the status bar. When I reload it, the old syntax is now ticked and displayed in the status bar. Then it may start working again and I can change the syntax and the default syntax flawlessly. I noticed that if you change the syntax to DOS 'DOS' is written in the status bar but next time you load MMEdit5 'dos' (lowercase) is displayed in the status bar. Sorry if this is confusing, if I can expand on anything please let me know. Bill Keep safe. Live long and prosper. |
||||
panky![]() Guru ![]() Joined: 02/10/2012 Location: AustraliaPosts: 1111 |
Hi Jim, Perhaps unrelated but I have a problem with syntax help in the Linux version of MMEdit5 ![]() Positioning the cursor over a command - OPTION in this case - and pressing F1 just brings up a blank shaded box below the cursor ![]() Shift F1 works fine bringing up the full syntax help window. Thanks again for a great program. Doug. ... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it! |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1636 |
I have a problem with that as well now that you mention it: Run MMEdit5 with no program, load a program, click on a keyword, press F1, syntax is displayed, click elsewhere in the program > CRASH! Actually with my laptop I have to press Fn and F1 but I doubt that's part of the problem. It works OK when MMEdit5 is run with a program already loaded. NOTE: These crashes take about 2 seconds to happen on my laptop after whatever causes it Bill Keep safe. Live long and prosper. |
||||
panky![]() Guru ![]() Joined: 02/10/2012 Location: AustraliaPosts: 1111 |
Bill/Jim, I have never had a problem of crashes with the Linux version. Doug. ... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it! |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1636 |
Doug, Have you tried testing these sequences? They are consistently repeatable for me. I removed the program from MMEdit5. Closed it (no program, default syntax CMM2). Then relaunch it, load the program. Go > syntax > DOS --- CRASH! Run MMEdit5 with no program, load a program, click on a keyword, press F1, syntax is displayed, click elsewhere in the program > CRASH! Bill Keep safe. Live long and prosper. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6220 |
Doug, In the Linux version I am unable to show the help in the popup.(not my fault this time) It is shown in the status bar at the bottom of the window. It replaces the file name until you move the cursor to a different line. The Windows version can display the popup help but it also uses the status line. I find holding the help while entering the rest of the line very convenient. Bill, I have found where I converted the syntax to lower case and have fixed it. It shouldn't have caused a crash anyway so I have more looking to do. The crash after F1 I can repeat here. I will chase that one down as well. Lucky it is going to be wet here tomorrow... Jim VK7JH MMedit |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1636 |
Thanks Jim, I have gone back to MMEdit4 for now. It will be bloody wet tomorrow if you get what we just had in SA. Bill Keep safe. Live long and prosper. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6220 |
I have squashed the bugs exposed by Bill and uploaded a new version to my website. I have even included an update for RPi. Some of the bugs were rather obscure and I thank Bill for his reports with advice on how to reproduce them. With the Syntax Help button, if your text cursor is in a keyword, the button opens the help at that page, otherwise it opens the help index. I have now started increasing the version number with each update. Jim VK7JH MMedit |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |