commands missing

Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

commands missing

Methusalem
Round about 3 weeks some commands don´t work any more.

In the past (~end of Nov. 2025) it was no problem to use the command "offset" in the command line.
Now the result ist the error code "Unknown command: offset", also when using "o" for this action.

Only the commands "pa" works and a (for me) new wording command "lineoff" works.

What happend to the "old" commands?
Has there been an update, I missed?

Version: v2.2.1.2
compiler: GNU GCC 8.1.0
compiled on: Jul 13 2025
Qt Version: 5.15.2
Boost Version: 1.87.0
Reply | Threaded
Open this post in threaded view
|

Re: commands missing

dxli
Hi Methusalem,

The current commands for 2.2.1.x is defined here:

https://github.com/LibreCAD/LibreCAD/blob/2.2.1/librecad/src/cmd/rs_commands.cpp#136


I know it's not the best way of documentation, but it's totally what's delivered to the end users.

Beyond that, you can always use the alias feature to specify your own version of commands:

Standard locations (if you prefer direct access):
Windows: %AppData%\Local\LibreCAD\librecad.alias
macOS: ~/Library/Application Support/LibreCAD/librecad.alias
Linux: ~/.local/share/LibreCAD/LibreCAD/librecad.alias (or ~/.local/share/data/LibreCAD/librecad.alias)

The librecad.alias file is at text file:

c	circle          # makes "c" = circle (common AutoCAD style)
z	zoom            # "z" for zoom
o	offset          # "o" for offset
myline	line        # your own custom alias

This way, "c" would be an alias for the command "circle". Just quit all running LibreCAD instances, replace/edit your alias file, and start LibreCAD again. Then, typing in the aliases to test, for example, type in "c" (without the quotation, of course).

In addition, visit our development page: https://github.com/LibreCAD/LibreCAD to try "Latest Builds" for 2.2.1.x(stable) and 2.2.2-alpha(development).

For 2.2.2-alpha, the default command and aliases are defined at:

https://github.com/LibreCAD/LibreCAD/blob/master/librecad/src/cmd/lc_commandItems.h

Methusalem wrote
Round about 3 weeks some commands don´t work any more.

In the past (~end of Nov. 2025) it was no problem to use the command "offset" in the command line.
Now the result ist the error code "Unknown command: offset", also when using "o" for this action.

Only the commands "pa" works and a (for me) new wording command "lineoff" works.

What happend to the "old" commands?
Has there been an update, I missed?

Version: v2.2.1.2
compiler: GNU GCC 8.1.0
compiled on: Jul 13 2025
Qt Version: 5.15.2
Boost Version: 1.87.0
Reply | Threaded
Open this post in threaded view
|

Re: commands missing

flywire
dxli wrote
I know it's not the best way of documentation...
No, it's pretty poor and should be improved: https://forum.librecad.org/Self-Documenting-Tools-tp5725976p5728021.html

I also think the code should contain a single full command with the alternatives given in the alias file.
Reply | Threaded
Open this post in threaded view
|

Re: commands missing

dxli
I am not clear on the current status of our documention.

Our wiki is current locked and outdated;
To include docs within the source code would introduce too many code commits;
Should we use the github.com wiki? Looks like we start to get github spam also;


Somewhat related: we also got spam at this forum, should we enable some spam detection on this forum? or simply skip email sending for first time forum users?

flywire wrote
dxli wrote
I know it's not the best way of documentation...
No, it's pretty poor and should be improved: https://forum.librecad.org/Self-Documenting-Tools-tp5725976p5728021.html

I also think the code should contain a single full command with the alternatives given in the alias file.
Reply | Threaded
Open this post in threaded view
|

Re: commands missing

flywire
Hmm, we need more communication within the community to reduce misunderstanding. I'll leave @LordOfBikes to respond to some of these.

dxli wrote
I am not clear on the current status of our documentation.
GnuCash development is a team effort. The developers support each other, review changes, and share what they know. That teamwork makes a huge difference, if someone leaves or takes a break, others can step in and keep things moving smoothly.

The documentation, by contrast, took a very different route. It was almost entirely a solo effort by one very dedicated contributor who did an excellent job, but there wasn’t a team built around it for ongoing updates. So when they stepped back, there was no established group to continue maintaining and updating the documentation.

dxli wrote
To include docs within the source code would introduce too many code commits;
I disagree. The LibreCAD documentation (Manual Content) shows how this can work effectively. It follows the Diátaxis framework, separating material into tutorials, how-to guides, technical reference, and explanations. Only the technical reference really needs to stay tightly in sync with code updates.

The current documentation is largely made up of tables with explanatory text (for example, toolbars.rst). Conveniently, all the detailed information for the technical reference already exists within the code itself.

I suggest:
* Change the manual format from reStructuredText to Markdown for better GitHub compatibility and easier editing.
* Tweak the structure so tables can be updated separately from explanatory text.
* Add a process in the code to automatically generate the tables.
* Occasionally update the explanatory text as needed.

I could take on the reference docs, with support from the development team and help managing version control through Read the Docs. There’s a lot of good material already in the GitHub repo that would fit well into the other parts of the manual.