Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

After a reorganization of code, I had links out of place. Knowing the so #399

Closed
wants to merge 1 commit into from

2 participants

@dalton

After a reorganization of code, I had links out of place. Knowing the source of the link is as important as which link it is. Including @file in the log message does this.

Changes this:

[warn]: Cannot find object at `file:<path to file to be included>' for inclusion

To this:

[warn]: Cannot find object at `file:<path to file to be included>' for inclusion from `#<yardoc extra_file <path file will be included in> attrs={:markup=>:markdown}>'
@dalton dalton After a reorganization of code, I had links out of place. Knowing the…
… source of the link is as important as which link it is. Including @file in the log message does this.
5deaf51
@lsegal
Owner

Is listing the whole file object proper? Also what happens when it's being included into an object and not an extra file?

@dalton

Going to go ahead and close this since it's been a while. I think your comment makes good points and hopefully I can get back to it in the future.

@dalton dalton closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 18, 2011
  1. @dalton

    After a reorganization of code, I had links out of place. Knowing the…

    dalton authored
    … source of the link is as important as which link it is. Including @file in the log message does this.
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/yard/templates/helpers/base_helper.rb
View
6 lib/yard/templates/helpers/base_helper.rb
@@ -54,12 +54,12 @@ def linkify(*args)
file = $1
relpath = File.relative_path(Dir.pwd, File.expand_path(file))
if relpath =~ /^\.\./
- log.warn "Cannot include file from path `#{file}'"
+ log.warn "Cannot include file from path `#{file}' into `#{@file}'"
""
elsif File.file?(file)
link_include_file(file)
else
- log.warn "Cannot find file at `#{file}' for inclusion"
+ log.warn "Cannot find file at `#{file}' for inclusion into `#{@file}'"
""
end
when /^include:(\S+)/
@@ -67,7 +67,7 @@ def linkify(*args)
if obj = YARD::Registry.resolve(object.namespace, path)
link_include_object(obj)
else
- log.warn "Cannot find object at `#{path}' for inclusion"
+ log.warn "Cannot find object at `#{path}' for inclusion into `#{@file}'"
""
end
when /^render:(\S+)/
Something went wrong with that request. Please try again.