Troubleshooting
Where to look
The extension logs to three output channels (View > Output, then pick one in the list):
- code_aster: Language Server: start and restart of the language server, with the Python interpreter it uses ("Python executable: …").
- code_aster: Catalog: which catalog was chosen and why, catalog extraction from Docker images.
- code_aster: Formatter:
.commformatting runs and errors.
Runs go to the code-aster runner terminal and to the run logs.
Completion, hover or diagnostics stopped working
Run Restart the LSP server for code_aster from the Command Palette (or Restart language server in the sidebar). If the server cannot start, an "Error starting code_aster language server" message gives the reason. Check in the code_aster: Language Server channel that the interpreter is the one you expect.
No Python, or a Python that is too old
The language features need a Python 3.10 or later (any later version works, 3.14 included); nothing has to be installed into it. The Python row of the sidebar shows the interpreter in use. If none is found, install Python from python.org (on Windows, keep the py launcher option) or set vs-code-aster.pythonExecutablePath. See Installation.
Formatting does nothing
"ruff is not available for formatting" means ruff is missing from the interpreter of pythonExecutablePath: run the setup checks to install it, or pip install ruff in that environment. Other errors read "Formatter failed: …", with the detail in the code_aster: Formatter channel.
Completions do not match my code_aster version
Run Show code_aster catalog info to see the catalog in use and why it was chosen. With cave, select the version from the status bar chip. With a native install, set vs-code-aster.asterCatalogPath or run Locate code_aster install (native, without cave). Clear cache & restart LSP in the catalog info dialog removes the extracted catalogs. See code_aster versions.
A file is not recognised as a command file
Only .comm, .com and .com0 to .com9 are command files by default. For another extension, map it to code_aster (comm) in VS Code's files.associations setting.
The mesh viewer does not open
- The viewer reads MED 3 and MED 4 files (HDF5) with points, segments, triangles, quadrangles, tetrahedra, pyramids, prisms and hexahedra, linear or quadratic. Polygons, polyhedra and structured meshes are reported as not supported.
- A MED file that is still being written, or is corrupt, shows "could not be read" instead of a mesh. Open it again once the run is over.
- From a
.comm, the viewer needs a.exportthat declares a MED input (F mmed … D). See Mesh viewer.
Run diagnostics do not appear
The Problems panel is filled from the run log. Check that the run started from the Run with code_aster button (not a terminal of your own), and that the log exists in .vs-code-aster/run_logs/ next to the .export.
WSL and remote sessions
With WSL, SSH or containers, the extension runs on the remote side: Python, Docker and cave must be installed there, and pythonExecutablePath must be a path that exists there. Set it in the Remote tab of the Settings editor (the sidebar's settings items open the Settings editor on the setting, choose the Remote tab yourself).
Still stuck?
Open an issue on GitHub with the version of the extension, your system, and the content of the code_aster output channels.