AdaCore / AdaCore/gnatstudio

CR 20240506: Compiler errors do not get highlighted

Open
#173 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ada
Stars
531
Forks
65
PR merge metrics
No merged PRs in 30d

Description

Having extracted the appimage and ran doinstall to get around the following issue
https://github.com/AdaCore/gnatstudio/issues/172

I have found that cleaning and compilation now works and the following compilation output is shown in the messages window. However nothing is shown under the Locations tab and no highlighting occurs within the IDE.

The output within the Messages window is as follows

alr --non-interactive --no-color --no-tty -q build -- -XELOGS_LIBRARY_TYPE=static -XLIBRARY_TYPE=static -XSTM32U599_HAL_LIBRARY_TYPE=static -XADAFLAGS=
ERROR: Command ["gprbuild", "-s", "-j0", "-p", "-P", "/mnt/crypt/elansys/code/Ada/stm32u599_hal/stm32u599_hal.gpr", "-XELOGS_LIBRARY_TYPE=static", "-XLIBRARY_TYPE=static", "-XSTM32U599_HAL_LIBRARY_TYPE=static", "-XADAFLAGS="] exited with code4 and output: Changing to object directory of "Stm32u599_Hal": "/mnt/crypt/elansys/code/Ada/stm32u599_hal/obj/de
velopment/"\n/home/kc/.local/share/alire/toolchains/gnat_arm_elf_13.2.1_db1e9283/bin/arm-eabi-gcc -c -x ada -gnatA --RTS=/home/kc/.local/share/alire/toolchains/gnat_arm_elf_13.2.1_db1e9283/arm-eabi/lib/gnat/light-cortex-m33f/ -mlittle-endian -mthumb -mfloat-abi=hard -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -fno-tree-loop-distribute-patterns -g -g -gnatQ -fcallgraph-info=su,da -gnato -gnat2022 -gnatVdim -gnatwa.b.f.kl.o.st.wfy.XJh.ac.c_cgkm.mop.piq.q.r.tv.vwxz.z -gnatyaAbBdeklnOrsSuM100 -gnatd.v -gnatec
=/tmp/GNAT-TEMP-000002.TMP -gnatec=/mnt/crypt/elansys/code/Ada/stm32u599_hal/gnat.adc -gnatem=/tmp/GNAT-TEMP-000003.TMP /mnt/crypt/elansys/code/Ada/stm32u599_hal/src/drivers/stm32-spi-run.adb\nstm32-spi-run.adb:186:24: error: "SPI_CNumber" is undefined\nstm32-spi-run.adb:186:24: error: possible misspelling of "SPI_Number"\n\n   compilation of stm32-spi-run.adb failed\n\ngprbuild: *** compilation phase failed
ERROR: Compilation failed.
[2024-05-10 17:30:55] process exited with status 1, elapsed time: 00.64s

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported Alire/gprbuild compilation in GNAT Studio and start from the Messages window output, especially the stm32-spi-run.adb:186 diagnostics. Trace how these compiler errors are transferred to the Locations tab and editor highlighting. Done when the reported Ada errors appear in Locations and are highlighted in the source editor.

Written by the indexing model from the issue text.

Assessment

Domain
developer-experience, devtools, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.