Recent

Author Topic: Messages from external scripts  (Read 1684 times)

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Messages from external scripts
« on: January 27, 2022, 03:52:03 pm »
Before compiling I run an external script (make)
I would like to see messages from him in IDE message window. Messages are Warning and Note. Problem is that regardless of any settings, I only see Warnings, Note suppressed((

Look at the test project. I generate messages as follows Makefile:
Code: Pascal  [Select][+][-]
  1. .PHONY: test
  2. default: test
  3. test:
  4.         $(warning Warning: from make)
  5.         $(info Info: from make)
  6.         echo Warning: echo Warning
  7.         echo Note: echo Note
  8.         echo Info: echo Info
The main settings are in the screenshots, but only echo Warning: echo Warning visible. What you need to do to see the Note too?

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Messages from external scripts
« Reply #1 on: January 27, 2022, 04:03:26 pm »
I can't answer this with certainty, but check Project Options -> Messages and possibly other pages, and then see what happens if you insert notes manually into a Pascal sourcefile... it might be that you need to get the output format exactly right.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: Messages from external scripts
« Reply #2 on: January 27, 2022, 04:21:59 pm »
MarkMLl
Thanks!
Code: Pascal  [Select][+][-]
  1. @echo Makefile.test(10,1) Note: Hello from Makefile
this works. But checkbox Parsers:make it doesn't seem to work to me, why should I disguise myself as compiler messages

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Messages from external scripts
« Reply #3 on: January 27, 2022, 04:42:09 pm »
Because the IDE- which is designed for running the compiler- ignores you if you don't.

Look, you asked for a solution and I've given you one. I agree that it's suboptimal, and if you don't like it I suggest finding where the filter code is in the IDE and adding a specific pattern to allow makefile warnings etc. through.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

zamtmn

  • Hero Member
  • *****
  • Posts: 594
Re: Messages from external scripts
« Reply #4 on: January 27, 2022, 07:30:23 pm »
ok. thanks!

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Messages from external scripts
« Reply #5 on: January 27, 2022, 07:54:12 pm »
I'm pretty sure this isn't the first time that somebody's had to add extra formatting to a makefile to keep some toolchain happy :-)

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018