SassDoc / sassdoc

Release the docs!
http://sassdoc.com
MIT License
1.41k stars 56 forks source link

`@see` doesn't recognize sass module references #560

Open kdaulton-chwy opened 3 years ago

kdaulton-chwy commented 3 years ago

Issue

Versions: tried 2.5.1 through 2.7.3

When using @see to reference a variable in another module, I receive the following warning:

» [WARNING] Item `set` refers to `settings.$placeholders` from type `function` but this item doesn't exist.

Files to reproduce

_settings.scss

/// Storage for placeholders that exist.
///
/// This variable should not be accessed directly. See the
/// `placeholders-set()` function for adding to the variable. To check
/// if a value exists, see the `placeholders-exists()` function.
///
/// @type List
/// @access private
///
$placeholders: () !default;

_functions.scss

@use 'sass:list';
@use './settings';

/// Add an entry for an existing placeholder.
///
/// @param {String} $name
///   The name of the placeholder without the beginning `%`.
/// @return {Map}
///   Returns the updated placeholder references.
///
/// @see settings.$placeholders
@function set($name) {
  settings.$placeholders: list.append(settings.$placeholders, $name);

  @return settings.$placeholders;
}