Skip to content

Use a user-data-dir in temp space while testing vscode tooling#395

Closed
joeslice wants to merge 1 commit into
kson-org:mainfrom
joeslice:103-length
Closed

Use a user-data-dir in temp space while testing vscode tooling#395
joeslice wants to merge 1 commit into
kson-org:mainfrom
joeslice:103-length

Conversation

@joeslice

Copy link
Copy Markdown
Contributor

Running the vscode tests causes userdata to be stored near the test itself. When kson is cloned into a deep subdirectory (or just a long path) and we issue a build & test the userdata may be stored in a path that's longer than 103 characters causing a warning that in fact fails the tests. Using os.tmpdir() instead stores the user data in a subdirectory of a platform-specific location such as /tmp, /usr/tmp, C:\temp, etc. allowing us to expect short enough paths to avoid this warning.

Running the vscode tests causes userdata to be stored near the test itself. When kson is cloned into a deep subdirectory (or just a long path) and we issue a build & test the userdata may be stored in a path that's longer than 103 characters causing a warning that in fact fails the tests. Using os.tmpdir() instead stores the user data in a subdirectory of a platform-specific location such as /tmp, /usr/tmp, C:\temp, etc. allowing us to expect short enough paths to avoid this warning.
@joeslice

Copy link
Copy Markdown
Contributor Author

Heh, superceded by #394 .

@joeslice joeslice closed this Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant