Skip to content

Change default modules #33

@aaowens

Description

@aaowens

Traceur is substantially more useful for me when I use the modules keyword from #24 , otherwise I'm flooded with warnings from Base and other modules I didn't develop. For example, @trace naive_sum([1.]) modules = [Main].

I think the default behavior should be to not show warnings from these modules. New users of Traceur aren't likely to know about the modules keyword, so their initial experience is currently not very good. Experienced users can provide whatever modules they like.

Options:

  1. Default to modules = [Main]. For simple interactive use, this would be a big improvement. Package developers could manually list their packages.
  2. Default to everything except Base and stdlib modules. This would strip out most of the noise I see when using Traceur, while still showing warnings from packages which I might want to file an issue about. The end user is unlikely to be able to do anything about problems in core Julia code, and I think it's reasonable to assume our problems do not lie in that code.

I've been looking for a way to list all available modules so I could compute a set difference of that minus Base + stdlib to be default argument, but I haven't found a way to list them.

If this does not exist, one option would be to add a second keyword argument, skipmodules = []. The default could be skipmodules = [Base, (list stdlib here)]. Traceur would skip any warnings from modules in skipmodules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions