Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CR 20240506: Compiler errors do not get highlighted #173

Open
kevlar700 opened this issue May 10, 2024 · 2 comments
Open

CR 20240506: Compiler errors do not get highlighted #173

kevlar700 opened this issue May 10, 2024 · 2 comments

Comments

@kevlar700
Copy link

Having extracted the appimage and ran doinstall to get around the following issue
#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
Copy link
Contributor

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
Copy link
Author

kevlar700 commented May 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants