- Posts: 310
- Thank you received: 0
Pin 'halui.estop.is−activated' does not exist, when clearly it does
7 years 3 months ago #139143
by JetForMe
So, yeah. Not a file encoding issue. But I copy-pasted it from the documentation page, which actually has "−" in the HTML source, which ends up rendering a 3-byte UTF8 character, and not a hyphen. It probably should be "‐", but really, the source files should be encoded as UTF8 and just typed directly.
Thank you for noticing. I was editing the file in BBEdit on a Mac and it displayed it as a hyphen-looking thing, and I couldn't see anything amiss.
Replied by JetForMe on topic Pin 'halui.estop.is−activated' does not exist, when clearly it does
cmorley wrote: When I looked at your postgui file I see this on line 13 :
net e-stop-active <= halui.estop.is−activated
Chris M
So, yeah. Not a file encoding issue. But I copy-pasted it from the documentation page, which actually has "−" in the HTML source, which ends up rendering a 3-byte UTF8 character, and not a hyphen. It probably should be "‐", but really, the source files should be encoded as UTF8 and just typed directly.
Thank you for noticing. I was editing the file in BBEdit on a Mac and it displayed it as a hyphen-looking thing, and I couldn't see anything amiss.
Please Log in to join the conversation.
7 years 3 months ago #139144
by cmorley
Replied by cmorley on topic Pin 'halui.estop.is−activated' does not exist, when clearly it does
So that fixed the problem? - excellent - ya sometimes a new set of eyes...
Never cam across that error before.
Chris M
Never cam across that error before.
Chris M
Please Log in to join the conversation.
7 years 3 months ago #139151
by JetForMe
Replied by JetForMe on topic Pin 'halui.estop.is−activated' does not exist, when clearly it does
Yup, totally fixed the problem. Not the problem inherent in the HTML docs, but the problem in my HAL file
Please Log in to join the conversation.
7 years 3 months ago #139153
by pl7i92
Replied by pl7i92 on topic Pin 'halui.estop.is−activated' does not exist, when clearly it does
it is highly recomented to set your editor to utf-8
Please Log in to join the conversation.
7 years 3 months ago #139155
by JetForMe
Replied by JetForMe on topic Pin 'halui.estop.is−activated' does not exist, when clearly it does
My editor *is* UTF-8. It can be argued that's what caused the problem. When I copied the pin name from the web docs, it was wrong, but it wasn't visibly wrong in a UTF-8 editor. An ASCII-only editor would've shown it as a set of garbage characters, as Chris M pointed out.
Please Log in to join the conversation.
7 years 3 months ago #139159
by rodw
Replied by rodw on topic Pin 'halui.estop.is−activated' does not exist, when clearly it does
Which editor are you using? You can't go past Geany.
I am always very wary copying and pasting from a web site I often paste it into a ascii text editor before using it if I have any doubt.
I am always very wary copying and pasting from a web site I often paste it into a ascii text editor before using it if I have any doubt.
Please Log in to join the conversation.
7 years 3 months ago #139222
by JetForMe
Replied by JetForMe on topic Pin 'halui.estop.is−activated' does not exist, when clearly it does
It's the LinuxCNC website! It's just generated badly (either the source material or the HTML generator is wrong).
Please Log in to join the conversation.
7 years 3 months ago #139235
by pl7i92
Replied by pl7i92 on topic Pin 'halui.estop.is−activated' does not exist, when clearly it does
you shoudt prefer the pdf Documentation on all stuff
as best you can use it direct on the mashine side
as best you can use it direct on the mashine side
Please Log in to join the conversation.
7 years 3 months ago #139430
by andypugh
FWIW I agree with you here. Code snippets in the docs should work.
Which page of the html docs did you get it from?
Replied by andypugh on topic Pin 'halui.estop.is−activated' does not exist, when clearly it does
JetForMe wrote: It's the LinuxCNC website! It's just generated badly (either the source material or the HTML generator is wrong).
FWIW I agree with you here. Code snippets in the docs should work.
Which page of the html docs did you get it from?
Please Log in to join the conversation.
Time to create page: 0.056 seconds
