emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Error When Publishing a Single File
@ 2009-02-17 11:21 Ian Barton
  2009-02-17 11:43 ` Sebastian Rose
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ian Barton @ 2009-02-17 11:21 UTC (permalink / raw)
  To: emacs-orgmode

This has been happening for a while. I suspect it's something in my 
settings, but I can't work out what. When I publish a single file, I get 
the following error:

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
   file-truename(nil)
 
org-publish-file("/home/ian/nfs/firewall/Documents/org/holiday/holiday.org")
   byte-code("\b?…\x06
   org-publish-current-file(nil)
   call-interactively(org-publish-current-file)
   org-export(nil)
   call-interactively(org-export)

Publishing a whole project works fine. This is the relevant bit of my 
.emacs:

(require 'org-publish)
(setq org-publish-project-alist
       '(

        ;; ... add all the components here (see below)...
       ("org-notes"
           :base-directory "~/nfs/firewall/Documents/org/"
           :base-extension "org"
           :publishing-directory "~/nfs/firewall/public_html/org/"
           :recursive t
           :publishing-function org-publish-org-to-html
           :headline-levels 4             ; Just the default for this 
project.
           :auto-preamble t
           :auto-index t
           :index-filename "sitemap.org"
           :index-title "Sitemap"
       )

     ("org-static"
           :base-directory "~/nfs/firewall/Documents/org/"
           :base-extension 
"css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
           :publishing-directory "~/nfs/firewall/public_html/org/"
           :recursive t
           :publishing-function org-publish-attachment)

     ("org" :components ("org-notes" "org-static"))


       ))

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error When Publishing a Single File
  2009-02-17 11:21 Error When Publishing a Single File Ian Barton
@ 2009-02-17 11:43 ` Sebastian Rose
  2009-02-17 12:46   ` Ian Barton
  2009-02-19 19:22   ` Carsten Dominik
  2009-02-17 12:25 ` Matthew Lundin
  2009-02-26 21:18 ` Carsten Dominik
  2 siblings, 2 replies; 8+ messages in thread
From: Sebastian Rose @ 2009-02-17 11:43 UTC (permalink / raw)
  To: Ian Barton; +Cc: emacs-orgmode

Ian Barton <lists@manor-farm.org> writes:
> This has been happening for a while. I suspect it's something in my settings,
> but I can't work out what. When I publish a single file, I get the following
> error:


Since this feature is prone to error, I'd suggest to drop it entirely. I
never use it here. Instead, I'd suggest to change the publishing feature
as follows:


  a)  The index file generation takes quite a long time. As for me , this
      is the only reason to keep this single page publishing.

      So why not just generate the index file, if _new_ (as opposed to
      changed) files are found in the project?

      Otherwise ask.

  b)  Interactive publishing

      Some times it might be desirable to not publish all changes at
      once (e.g. do not publish unfinished changes).

      The publishing mechanism could ask for every file. This could be
      bound to `C-u C-e P' or `C-c C-e i' for example.

  c)  Is it possible to extend the publising-timestamp mechanism to
      exported blocks? E.g. ditaa images take quite some time to
      generate.

That way, publishing a project is much faster and single files could be
published as needed. Time used for publishing would decrease to
something like 10% here (lot's of ditaa images and 59 files).




What do think?




--
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Http:  www.emma-stil.de

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error When Publishing a Single File
  2009-02-17 11:21 Error When Publishing a Single File Ian Barton
  2009-02-17 11:43 ` Sebastian Rose
@ 2009-02-17 12:25 ` Matthew Lundin
  2009-02-26 21:18 ` Carsten Dominik
  2 siblings, 0 replies; 8+ messages in thread
From: Matthew Lundin @ 2009-02-17 12:25 UTC (permalink / raw)
  To: Ian Barton; +Cc: emacs-orgmode

Hi Ian, 

I can confirm the same error when calling org-publish-current-file with
the following configuration:

(setq org-publish-project-alist
      '(
	("org-notes"
	 :base-directory "~/mystuff/website/"
	 :base-extension "org"
	 :publishing-directory "/ssh:[url:/path/to/webpage]"
	 :section-numbers nil
	 :email "M&#97;t&#116;he&#119;&#46;&#76;u&#110;&#100;&#105;n&#64;&#118;al&#112;&#111;&#46;&#101;d&#117;"
	 :publishing-function org-publish-org-to-html
	 :table-of-contents nil
;;	 :auto-index t
;;	 :index-filename "pagelist.org"
;;	 :index-title "Page List"
	 :recursive t
	 :style "<link rel=\"stylesheet\" type=\"text/css\" href=\"css/stylesheet.css\" />"
	 ;;:style-include-default nil
	 :preamble "
<div id=\"wrapper\">
<div id=\"menu\">
<div id=\"sidemenu\">
<a href=\"index.html\">Home</a> &#124;
<a href=\"sitemap.html\">Site Map</a>
</div>
<div id=\"sidetitle\">
Matthew Lundin
</div>
</div>
<div id=\"content\">"
	 :postamble "</div>
</div>"
	 )
	("org-static"
	 :base-directory "~/mystuff/website/"
	 :publishing-directory "/ssh:[url:/path/to/webpage/]"
	 :recursive t
	 :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
	 :publishing-function org-publish-attachment 
	 )
	("org" 
	 :components
	 ("org-notes" "org-static"))
	))

Best,
Matt

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error When Publishing a Single File
  2009-02-17 11:43 ` Sebastian Rose
@ 2009-02-17 12:46   ` Ian Barton
  2009-02-19 19:22   ` Carsten Dominik
  1 sibling, 0 replies; 8+ messages in thread
From: Ian Barton @ 2009-02-17 12:46 UTC (permalink / raw)
  To: emacs-orgmode

> Ian Barton <lists@manor-farm.org> writes:
>> This has been happening for a while. I suspect it's something in my settings,
>> but I can't work out what. When I publish a single file, I get the following
>> error:
> 
> 
> Since this feature is prone to error, I'd suggest to drop it entirely. I
> never use it here. Instead, I'd suggest to change the publishing feature
> as follows:
> 
> 
>   a)  The index file generation takes quite a long time. As for me , this
>       is the only reason to keep this single page publishing.
> 
>       So why not just generate the index file, if _new_ (as opposed to
>       changed) files are found in the project?
> 
>       Otherwise ask.
> 
>   b)  Interactive publishing
> 
>       Some times it might be desirable to not publish all changes at
>       once (e.g. do not publish unfinished changes).
> 
>       The publishing mechanism could ask for every file. This could be
>       bound to `C-u C-e P' or `C-c C-e i' for example.
> 
>   c)  Is it possible to extend the publising-timestamp mechanism to
>       exported blocks? E.g. ditaa images take quite some time to
>       generate.
> 
I too would be happy if something like this could be implemented. Like 
Sebastian I only use the single file feature to save time.

Ian.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error When Publishing a Single File
  2009-02-17 11:43 ` Sebastian Rose
  2009-02-17 12:46   ` Ian Barton
@ 2009-02-19 19:22   ` Carsten Dominik
  1 sibling, 0 replies; 8+ messages in thread
From: Carsten Dominik @ 2009-02-19 19:22 UTC (permalink / raw)
  To: Sebastian Rose; +Cc: emacs-orgmode


Someone needs to adopt org-publish.el and do this.

Otherwise it will be waiting until I get more interested in publishing  
myself.

- Carsten

On Feb 17, 2009, at 12:43 PM, Sebastian Rose wrote:

> Ian Barton <lists@manor-farm.org> writes:
>> This has been happening for a while. I suspect it's something in my  
>> settings,
>> but I can't work out what. When I publish a single file, I get the  
>> following
>> error:
>
>
> Since this feature is prone to error, I'd suggest to drop it  
> entirely. I
> never use it here. Instead, I'd suggest to change the publishing  
> feature
> as follows:
>
>
> a)  The index file generation takes quite a long time. As for me ,  
> this
>     is the only reason to keep this single page publishing.
>
>     So why not just generate the index file, if _new_ (as opposed to
>     changed) files are found in the project?
>
>     Otherwise ask.
>
> b)  Interactive publishing
>
>     Some times it might be desirable to not publish all changes at
>     once (e.g. do not publish unfinished changes).
>
>     The publishing mechanism could ask for every file. This could be
>     bound to `C-u C-e P' or `C-c C-e i' for example.
>
> c)  Is it possible to extend the publising-timestamp mechanism to
>     exported blocks? E.g. ditaa images take quite some time to
>     generate.
>
> That way, publishing a project is much faster and single files could  
> be
> published as needed. Time used for publishing would decrease to
> something like 10% here (lot's of ditaa images and 59 files).
>
>
>
>
> What do think?
>
>
>
>
> --
> Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449  
> Hannover
> Tel.:  +49 (0)511 - 36 58 472
> Fax:   +49 (0)1805 - 233633 - 11044
> mobil: +49 (0)173 - 83 93 417
> Http:  www.emma-stil.de
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error When Publishing a Single File
  2009-02-17 11:21 Error When Publishing a Single File Ian Barton
  2009-02-17 11:43 ` Sebastian Rose
  2009-02-17 12:25 ` Matthew Lundin
@ 2009-02-26 21:18 ` Carsten Dominik
  2009-02-27  8:06   ` Ian Barton
  2 siblings, 1 reply; 8+ messages in thread
From: Carsten Dominik @ 2009-02-26 21:18 UTC (permalink / raw)
  To: Ian Barton; +Cc: emacs-orgmode

Hi Ian,

this bug is fixed now.  Thanks for the report.

- Carsten

On Feb 17, 2009, at 12:21 PM, Ian Barton wrote:

> This has been happening for a while. I suspect it's something in my  
> settings, but I can't work out what. When I publish a single file, I  
> get the following error:
>
> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
>  file-truename(nil)
> org-publish-file("/home/ian/nfs/firewall/Documents/org/holiday/ 
> holiday.org")
>  byte-code("\b?
> \x06
>  org-publish-current-file(nil)
>  call-interactively(org-publish-current-file)
>  org-export(nil)
>  call-interactively(org-export)
>
> Publishing a whole project works fine. This is the relevant bit of  
> my .emacs:
>
> (require 'org-publish)
> (setq org-publish-project-alist
>      '(
>
>       ;; ... add all the components here (see below)...
>      ("org-notes"
>          :base-directory "~/nfs/firewall/Documents/org/"
>          :base-extension "org"
>          :publishing-directory "~/nfs/firewall/public_html/org/"
>          :recursive t
>          :publishing-function org-publish-org-to-html
>          :headline-levels 4             ; Just the default for this  
> project.
>          :auto-preamble t
>          :auto-index t
>          :index-filename "sitemap.org"
>          :index-title "Sitemap"
>      )
>
>    ("org-static"
>          :base-directory "~/nfs/firewall/Documents/org/"
>          :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\| 
> ogg\\|swf"
>          :publishing-directory "~/nfs/firewall/public_html/org/"
>          :recursive t
>          :publishing-function org-publish-attachment)
>
>    ("org" :components ("org-notes" "org-static"))
>
>
>      ))
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error When Publishing a Single File
  2009-02-26 21:18 ` Carsten Dominik
@ 2009-02-27  8:06   ` Ian Barton
  2009-02-27  8:25     ` Sebastian Rose
  0 siblings, 1 reply; 8+ messages in thread
From: Ian Barton @ 2009-02-27  8:06 UTC (permalink / raw)
  To: emacs-orgmode

Many thanks Carsten.

  Hi Ian,
> 
> this bug is fixed now.  Thanks for the report.
> 
> - Carsten
> 
> On Feb 17, 2009, at 12:21 PM, Ian Barton wrote:
> 
>> This has been happening for a while. I suspect it's something in my 
>> settings, but I can't work out what. When I publish a single file, I 
>> get the following error:
>>
>> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
>>  file-truename(nil)
>> org-publish-file("/home/ian/nfs/firewall/Documents/org/holiday/holiday.org") 
>>
>>  byte-code("\b?
>> \x06
>>  org-publish-current-file(nil)
>>  call-interactively(org-publish-current-file)
>>  org-export(nil)
>>  call-interactively(org-export)
>>
>> Publishing a whole project works fine. This is the relevant bit of my 
>> .emacs:
>>
>> (require 'org-publish)
>> (setq org-publish-project-alist
>>      '(
>>
>>       ;; ... add all the components here (see below)...
>>      ("org-notes"
>>          :base-directory "~/nfs/firewall/Documents/org/"
>>          :base-extension "org"
>>          :publishing-directory "~/nfs/firewall/public_html/org/"
>>          :recursive t
>>          :publishing-function org-publish-org-to-html
>>          :headline-levels 4             ; Just the default for this 
>> project.
>>          :auto-preamble t
>>          :auto-index t
>>          :index-filename "sitemap.org"
>>          :index-title "Sitemap"
>>      )
>>
>>    ("org-static"
>>          :base-directory "~/nfs/firewall/Documents/org/"
>>          :base-extension 
>> "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
>>          :publishing-directory "~/nfs/firewall/public_html/org/"
>>          :recursive t
>>          :publishing-function org-publish-attachment)
>>
>>    ("org" :components ("org-notes" "org-static"))
>>
>>
>>      ))

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Error When Publishing a Single File
  2009-02-27  8:06   ` Ian Barton
@ 2009-02-27  8:25     ` Sebastian Rose
  0 siblings, 0 replies; 8+ messages in thread
From: Sebastian Rose @ 2009-02-27  8:25 UTC (permalink / raw)
  To: emacs-orgmode

Yepp, works great :)


Thanks Carsten.

Ian Barton <lists@manor-farm.org> writes:

> Many thanks Carsten.
>
>  Hi Ian,
>>
>> this bug is fixed now.  Thanks for the report.
>>
>> - Carsten
>>
>> On Feb 17, 2009, at 12:21 PM, Ian Barton wrote:

-- 
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Http:  www.emma-stil.de

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-02-27  8:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-17 11:21 Error When Publishing a Single File Ian Barton
2009-02-17 11:43 ` Sebastian Rose
2009-02-17 12:46   ` Ian Barton
2009-02-19 19:22   ` Carsten Dominik
2009-02-17 12:25 ` Matthew Lundin
2009-02-26 21:18 ` Carsten Dominik
2009-02-27  8:06   ` Ian Barton
2009-02-27  8:25     ` Sebastian Rose

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).