GNU bug report logs - #20393
elpa: ada-build: cannot compile when one folder has spaces

Previous Next

Package: emacs;

Reported by: Christian Giménez <cnngimenez <at> gmail.com>

Date: Tue, 21 Apr 2015 06:22:01 UTC

Severity: normal

To reply to this bug, email your comments to 20393 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#20393; Package emacs. (Tue, 21 Apr 2015 06:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christian Giménez <cnngimenez <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 21 Apr 2015 06:22:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christian <cnngimenez <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: cannot compile when one folder has spaces
Date: Mon, 20 Apr 2015 23:49:19 -0300
emacs, ada-mode 

Hi, I found a problem when trying to compile using a project (gpj) file. Is 
easy to solve.

The problem is that if you're at a directory with spaces, gnatmake will 
recieve two parameters instead of one.

The solution is easy: The variable ada-build-make-cmd needs double quotes 
between the "{gpr_file}" substring: 
"${cross_prefix}gnatmake -P\"${gpr_file}\" -o ${main} ${main} ${gnatmake_opt} -
cargs -I${src_dir} ${comp_opt} -bargs ${bind_opt} -largs ${link_opt}"

After setting that, you should restart Emacs.

Could you add this string as a default value?

Cheers!




Changed bug title to 'elpa: ada-build: cannot compile when one folder has spaces' from 'cannot compile when one folder has spaces' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 21 Apr 2015 17:47:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20393; Package emacs. (Wed, 09 Oct 2019 03:36:02 GMT) Full text and rfc822 format available.

Message #10 received at 20393 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Christian <cnngimenez <at> gmail.com>
Cc: Stephen Leake <stephen_leake <at> member.fsf.org>, 20393 <at> debbugs.gnu.org
Subject: Re: bug#20393: cannot compile when one folder has spaces
Date: Wed, 09 Oct 2019 05:35:26 +0200
Christian <cnngimenez <at> gmail.com> writes:

> Hi, I found a problem when trying to compile using a project (gpj) file. Is 
> easy to solve.
>
> The problem is that if you're at a directory with spaces, gnatmake will 
> recieve two parameters instead of one.
>
> The solution is easy: The variable ada-build-make-cmd needs double quotes 
> between the "{gpr_file}" substring: 
> "${cross_prefix}gnatmake -P\"${gpr_file}\" -o ${main} ${main} ${gnatmake_opt} -
> cargs -I${src_dir} ${comp_opt} -bargs ${bind_opt} -largs ${link_opt}"

Stephen, could you take a look at this one?  I'm not familiar with
ada-mode -- does the ${} expansion quote the argument itself?  If not,
this seems like a logical solution, but will probably fail if the file
has a " character in the name.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20393; Package emacs. (Tue, 08 Sep 2020 14:06:02 GMT) Full text and rfc822 format available.

Message #13 received at 20393 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Stephen Leake <stephen_leake <at> member.fsf.org>, 20393 <at> debbugs.gnu.org,
 Christian <cnngimenez <at> gmail.com>
Subject: Re: bug#20393: cannot compile when one folder has spaces
Date: Tue, 8 Sep 2020 14:05:11 +0000
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Christian <cnngimenez <at> gmail.com> writes:
>
>> Hi, I found a problem when trying to compile using a project (gpj) file. Is
>> easy to solve.
>>
>> The problem is that if you're at a directory with spaces, gnatmake will
>> recieve two parameters instead of one.
>>
>> The solution is easy: The variable ada-build-make-cmd needs double quotes
>> between the "{gpr_file}" substring:
>> "${cross_prefix}gnatmake -P\"${gpr_file}\" -o ${main} ${main} ${gnatmake_opt} -
>> cargs -I${src_dir} ${comp_opt} -bargs ${bind_opt} -largs ${link_opt}"
>
> Stephen, could you take a look at this one?  I'm not familiar with
> ada-mode -- does the ${} expansion quote the argument itself?  If not,
> this seems like a logical solution, but will probably fail if the file
> has a " character in the name.

That was one year ago.  Any news here?

Thanks in advance.




This bug report was last modified 4 years and 289 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.