Notepad Compiler Error

All things related to Centroid Oak, Allin1DC, MPU11 and Legacy products

Moderator: cnckeith

tblough
Posts: 3095
Joined: Tue Mar 22, 2016 10:03 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Boston, MA
Contact:

Re: Notepad Compiler Error

Post by tblough »

In that case, what is in the compile.cmd file? Are you sure it's not named compile.cmd.txt? Do you have Windows set to hide known file extensions?
Cheers,

Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
Spartan117
Posts: 101
Joined: Mon Apr 11, 2022 3:37 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Notepad Compiler Error

Post by Spartan117 »

I had the same error message, although started as admin, all configured like the Notepad++-TechnicalBulletin said and so on.
And yes, also here the .src and the compile.cmd are in the same directory, cnct. Like it installed itself.

What did the trick for me was:

Using $(Full_Current_Path) instead of $(File_Name) for the argument in notepad++
Now everything works fine and without error-message.
tblough
Posts: 3095
Joined: Tue Mar 22, 2016 10:03 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Boston, MA
Contact:

Re: Notepad Compiler Error

Post by tblough »

If using the full_current_path worked and file_name didn't, then the source file wasn't in the current directory.
Cheers,

Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
Spartan117
Posts: 101
Joined: Mon Apr 11, 2022 3:37 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Notepad Compiler Error

Post by Spartan117 »

Both are in the cnct-folder. As i said, typing the command manually did work.
I even tried to add the cnct-folder to the standard-paths in windows, but still no success then.

But hey, doesn't matter, now it works, so what :D ;)
cncsnw
Posts: 3834
Joined: Wed Mar 24, 2010 5:48 pm

Re: Notepad Compiler Error

Post by cncsnw »

This may relate to how you are launching Notepad++.

For example, if you are using a Windows desktop shortcut, that shortcut may specify a "Start in" directory that is different from c:\cnct or c:\cncm.

Try right-clicking on your Notepad++ shortcut, selecting "Properties", and seeing what it says next to "Start in" on the Shortcut tab.
Spartan117
Posts: 101
Joined: Mon Apr 11, 2022 3:37 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Notepad Compiler Error

Post by Spartan117 »

cncsnw wrote: Thu Jul 14, 2022 5:55 pm This may relate to how you are launching Notepad++.

For example, if you are using a Windows desktop shortcut, that shortcut may specify a "Start in" directory that is different from c:\cnct or c:\cncm.

Try right-clicking on your Notepad++ shortcut, selecting "Properties", and seeing what it says next to "Start in" on the Shortcut tab.
Most of the time, notepad++ becomes started automatically by windows when clicking an .src-file.
But i will have a look into what it says next to "Start-in"
Post Reply