Skip to content

Using ${name} in a folder of a log name results in "${name}" folders being created #5184

Closed

Description

@DanTup

If I set my logs as below, I see a folder called "${name}" created.

This is because we trigger creation of the folder before the debug session name is inserted.

{
	"dart.dapLogFile": "C:\\logs\\${workspaceName}\\dapLogFile.txt",
	"dart.analyzerLogFile": "C:\\logs\\${workspaceName}\\analyzerLogFile.txt",
	"dart.dartTestLogFile": "C:\\logs\\${workspaceName}\\${name}\\dartTestLogFile.txt",
	"dart.extensionLogFile": "C:\\logs\\${workspaceName}\\extensionLogFile.txt",
	"dart.devToolsLogFile": "C:\\logs\\${workspaceName}\\devToolsLogFile.txt",
	"dart.vmServiceLogFile": "C:\\logs\\${workspaceName}\\${name}\\vmServiceLogFile.txt",
	"dart.webDaemonLogFile": "C:\\logs\\${workspaceName}\\${name}\\webDaemonLogFile.txt",
	"dart.flutterRunLogFile": "C:\\logs\\${workspaceName}\\${name}\\flutterRunLogFile.txt",
	"dart.flutterTestLogFile": "C:\\logs\\${workspaceName}\\${name}\\flutterTestLogFile.txt",
	"dart.flutterDaemonLogFile": "C:\\logs\\${workspaceName}\\flutterDaemonLogFile.txt",
	"dart.toolingDaemonLogFile": "C:\\logs\\${workspaceName}\\toolingDaemonLogFile.txt",
	"dart.analyzerInstrumentationLogFile": "C:\\logs\\${workspaceName}\\analyzerInstrumentationLogFile.txt",
}

It's also not clear that some of these logs are legacy (for ex. flutter test) because those things are now wrapped up inside DAP and not executed directly by the extension. Those settings should be moved to the archived section.

(reported by @FMorschel on Discord)

Activity

  1. added this to the v3.94.0 milestone on Jul 16, 2024
  2. DanTup commented on Jul 16, 2024

    @DanTup
    MemberAuthor

    Those settings should be moved to the archived section.

    Actually, since we decide which DAP to spawn, we can probably create a logger at that point, and support the original log file kinds. This can be convenient because you can have different log files without needing to know what the session name was for app vs test runs etc.

  3. DanTup commented on Jul 16, 2024

    @DanTup
    MemberAuthor
  4. changed the title [-]Using `${name}` in a _folder_ of a log name results in "${name}" folders being created[/-] [+]Using `${name}` in a folder of a log name results in `"${name}"` folders being created[/+] on Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions