Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:06 07 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMEdit won’t load file.

Author Message
Paul_L
Guru

Joined: 03/03/2016
Location: United States
Posts: 769
Posted: 10:18pm 27 Jun 2016
Copy link to clipboard 
Print this post

Hi Jim, here's a weird one.

I just loaded MMEdit on my win 7 machine. Windows DEP didn't like the program. I added MMEdit as an exception to DEP and MMEdit ran.

Then I tried to load the file I've been working on, using >File >Open >j:\BrandyLane\ uM+ Control 01\Geo.bas. An error box pops up saying "0 OS Error: The system cannot find the path specified."

I copied Geo.bas to c:\Users\Me\Documents and then MMEdit opened it.

On the chance that MMEdit doesn't like spaces and other stuff in directory names I renamed the working directory to j:\BrandyLane\AA\Geo.bas and then MMEdit was able to load the file.

I renamed the directory again to " AA" (that's space+AA) and it couldn't load the file.

I renamed the directory again to "A AA" (that's A+space+AA) and it did load the file.

It can't find files in directories that begin with a space!

Notepad++ doesn't have this problem, it loads files from directories that begin with a space just fine.

WHAT THE HECK IS WINDOWS DOING TO YOU?????

Paul



 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 12:52am 28 Jun 2016
Copy link to clipboard 
Print this post

That's rather odd.

Just tried to create a new directory under my code with a leading space, " Test".

Windows Explorer didn't seem to permit it.
It removed the leading space from the name.
Tried to rename it & it stripped the leading space again,
so it's obviously a convention Windows is trying to protect against.

Cheers.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 11:35am 28 Jun 2016
Copy link to clipboard 
Print this post

I guess Notepad++ uses a different Windows API function to handle filenames.

Leading and trailing spaces in filenames do cause problems in Windows and Linux and it is something that I have never considered trying to find a way around.

(Leading spaces are 'legal' but can be a pain.)

@Phil
To change a filename to one with leading spaces, you have to use the command prompt (and quotes) rather than windows explorer.

Jim
VK7JH
MMedit
 
Paul_L
Guru

Joined: 03/03/2016
Location: United States
Posts: 769
Posted: 11:02pm 28 Jun 2016
Copy link to clipboard 
Print this post

@Jim

I REALLY LIKE your editor, particularly the variable report function. I haven't tried the DOS emulation yet but it looks interesting.

I will still use Notepad++ for most of the writing. It responds to the windoze personalization settings where I use the high contrast setting that gives me white on black text. Your editor does not. In fact MMEdit shows nothing (white on white) in the variable report window. I also set Notepad++ to a black background.

It's just way easier on my old eyes.

@Phil

My old reliable Total Commander file browser lets me name files and directories with leading spaces. This is very convenient because they pop to the top in an alpha sorted window.

Paul
Edited by Paul_L 2016-06-30
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 11:14pm 28 Jun 2016
Copy link to clipboard 
Print this post

For sorting i always use a "_", easier to see and no weird things happening with programs.

Microblocks. Build with logic.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 01:19pm 29 Jun 2016
Copy link to clipboard 
Print this post

@Paul
You can edit the file 'colours.inf' in the data folder to set the editor and terminal colours but there is no way to change the other windows such as the variable report. The language I wrote MMEdit in has limitations.

I have been using Total Commander for many years including on my Android devices.

I also use Notepad++ but haven't got around to creating a syntax file for MMBasic.

Jim

VK7JH
MMedit
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 01:48pm 29 Jun 2016
Copy link to clipboard 
Print this post

  TassyJim said   @Paul
I have been using Total Commander for many years including on my Android devices.


It was a big relief, the day I found it as a replacement for my old favourite....
Norton Commander.

Hadn't even thought about an Android Version.

That might be a must.

Cheers.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025