Recent

Author Topic: First run: Fatal: No source file name in comman  (Read 5878 times)

bron85

  • Newbie
  • Posts: 4
First run: Fatal: No source file name in comman
« on: February 12, 2016, 10:53:33 pm »
On a fresh install of Lazarus.  (New to me as well.)

Menu: Project-> newProject->program. 
I enter in the "Hello World" code.
I build it (F9).  I run it.
It builds and runs fine.

I project->saveProject. 
Now it will no longer build:   Fatal: No source file name in command line

If I build it from the command prompt, it builds fine, again.
The compile command comes right from the lib folder's *.compile file.
Theory is it is the same command that Lazarus is using,.. but something is obviously different.

I figure this is a Lazarus setting, but I have not been able to find it.
What am I missing?  Where do I need to look?

Zath

  • Sr. Member
  • ****
  • Posts: 391
Re: First run: Fatal: No source file name in comman
« Reply #1 on: February 13, 2016, 11:51:48 am »
Hello and welcome to Lazarus.
You'll need to provide details of the Lazarus version you're using and your operating system.
This can help finding the problem.

bron85

  • Newbie
  • Posts: 4
Re: First run: Fatal: No source file name in comman
« Reply #2 on: February 15, 2016, 01:25:58 pm »
Lazarus ver 1.4.4    i386-win32/win 64
Running on Win7

bron85

  • Newbie
  • Posts: 4
Re: First run: Fatal: No source file name in comman
« Reply #3 on: February 15, 2016, 01:29:51 pm »
It would be helpful to know exactly what command Lazarus is issuing.
How do I tell Lazarus to show me the exact compile command?

I see the Tools->Options settings but I've not been able to see the actual issued command.

FTurtle

  • Sr. Member
  • ****
  • Posts: 292
Re: First run: Fatal: No source file name in comman
« Reply #4 on: February 15, 2016, 06:47:03 pm »
Try save project in folder without national symbols and spaces in path.

bron85

  • Newbie
  • Posts: 4
Re: First run: Fatal: No source file name in comman
« Reply #5 on: February 15, 2016, 07:50:15 pm »
Yes that was the issue.  Apparently Laz can ONLY handle letters in the file structure.

A similar/same issue: At http://wiki.lazarus.freepascal.org/Lazarus_Faq see: Lazarus cannot open a project if last character of the path to it is a space 

Is there a console window in Laz?  i.e. Is there a way to see the command issues by Laz?

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: First run: Fatal: No source file name in comman
« Reply #6 on: February 15, 2016, 07:59:57 pm »
I don't know if there is message window like Lazarus 1.6 or trunk have, in 1.4.4. From it you can get the output of FPC compiler.

Another way is to enable debug logging to a file : --debug-enable=<debug_options> --debug-log=<file>

See http://wiki.lazarus.freepascal.org/Lazarus_Faq#How_can_I_use_a_log_file_for_debugging.3F for mor info.

 

TinyPortal © 2005-2018