AdaCore / gnatstudio

GNAT Studio is a powerful and lightweight IDE for Ada and SPARK.
399 stars 52 forks source link

CR 20240506: Compiler errors do not get highlighted #173

Open kevlar700 opened 4 months ago

kevlar700 commented 4 months ago

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
reznikmm commented 4 months ago

Can you edit Alire Build Target by removing -q to see what is going wrong? Click menu /Edit/Preferences..., select Build Targets in the left panel, choose Alire Build All or/and Alire Build Main, edit command line and click Apply.

kevlar700 commented 3 months ago

Sorry for the delay. When I remove -q then it highlights the error and populates the Locations tab correctly. When I put -q back then the original behaviour returns.

It is alr 2.0.1 Linux