Pin 'halui.estop.is−activated' does not exist, when clearly it does

More
7 years 3 months ago #139143 by JetForMe

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 "&minus;" in the HTML source, which ends up rendering a 3-byte UTF8 character, and not a hyphen. It probably should be "&hyphen;", 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.

More
7 years 3 months ago #139144 by cmorley
So that fixed the problem? - excellent - ya sometimes a new set of eyes...
Never cam across that error before.

Chris M

Please Log in to join the conversation.

More
7 years 3 months ago #139151 by JetForMe
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.

More
7 years 3 months ago #139153 by pl7i92
it is highly recomented to set your editor to utf-8

Please Log in to join the conversation.

More
7 years 3 months ago #139155 by JetForMe
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.

More
7 years 3 months ago #139159 by rodw
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.

Please Log in to join the conversation.

More
7 years 3 months ago #139222 by JetForMe
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.

More
7 years 3 months ago #139235 by pl7i92
you shoudt prefer the pdf Documentation on all stuff
as best you can use it direct on the mashine side

Please Log in to join the conversation.

More
7 years 3 months ago #139430 by andypugh

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
Powered by Kunena Forum