8000 `SwiftASTContext` does not properly locate the runtime libraries on Windows · Issue #6660 · swiftlang/llvm-project · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"preloaded_records":{},"structured_data":{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`SwiftASTContext` does not properly locate the runtime libraries on Windows","articleBody":"The `SwiftASTContext` does not properly identify the library path and relies on the process loading process to resolve the path to the requisite DLLs and map them in. This is most apparent in the REPL path where an extra `-L%ProgramFiles%\\swift\\runtime-development\\usr\\bin` is required (which is very confusing given that Windows links against the import libraries and not the DLLs). This needs to be resolved so that we can properly evaluate expressions and set breakpoints.","author":{"url":"https://github.com/compnerd","@type":"Person","name":"compnerd"},"datePublished":"2023-04-17T16:56:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/6660/llvm-project/issues/6660"},"preloadedQueries":[{"queryId":"2030ce5a2102d1fdd6e94767a4dbe1fe","queryName":"IssueViewerViewQuery","variables":{"count":15,"id":"repository","number":6660,"owner":"swiftlang","repo":"llvm-project"},"result":{"data":{"repository":{"isOwnerEnterpriseManaged":false,"issue":{"id":"I_kwDODN4Bac5jopkp","updatedAt":"2023-04-17T16:56:21Z","title":"`SwiftASTContext` does not properly locate the runtime libraries on Windows","number":6660,"repository":{"nameWithOwner":"swiftlang/llvm-project","id":"MDEwOlJlcG9zaXRvcnkyMTU4NzU5NDU=","name":"llvm-project","owner":{"__typename":"Organization","login":"swiftlang","id":"MDEyOk9yZ2FuaXphdGlvbjQyODE2NjU2","url":"https://github.com/swiftlang"},"isArchived":false,"isPrivate":false,"databaseId":215875945,"slashCommandsEnabled":false,"viewerCanInteract":false,"viewerInteractionLimitReasonHTML":"","planFeatures":{"maximumAssignees":10},"visibility":"PUBLIC","pinnedIssues":{"totalCount":0},"viewerCanPinIssues":false,"viewerIssueCreationPermissions":{"triageable":false},"issueTypes":{"edges":[{"node":{"id":"IT_kwDOAo1UkM4AiFeT"}},{"node":{"id":"IT_kwDOAo1UkM4AiFeV"}},{"node":{"id":"IT_kwDOAo1UkM4AiFeX"}}]}},"titleHTML":"\u003ccode\u003eSwiftASTContext\u003c/code\u003e does not properly locate the runtime libraries on Windows","url":"https://github.com/swiftlang/llvm-project/issues/6660","viewerCanUpdateNext":false,"issueType":null,"state":"OPEN","stateReason":null,"duplicateOf":null,"linkedPullRequests":{"nodes":[]},"subIssuesSummary":{"total":0,"completed":0},"__isLabelable":"Issue","labels":{"edges":[{"node":{"id":"LA_kwDODN4Bac70a9Xm","color":"16a983","name":"DebuggerCrash","nameHTML":"DebuggerCrash","description":null,"url":"https://github.com/swiftlang/llvm-project/labels/DebuggerCrash","__typename":"Label"},"cursor":"MQ"},{"node":{"id":"LA_kwDODN4Bac70a4Bt","color":"416496","name":"LLDB for Swift","nameHTML":"LLDB for Swift","description":null,"url":"https://github.com/swiftlang/llvm-project/labels/LLDB%20for%20Swift","__typename":"Label"},"cursor":"Mg"},{"node":{"id":"LA_kwDODN4Bac70a4IW","color":"435de8","name":"Windows","nameHTML":"Windows","description":null,"url":"https://github.com/swiftlang/llvm-project/labels/Windows","__typename":"Label"},"cursor":"Mw"}],"pageInfo":{"endCursor":"Mw","hasNextPage":false}},"__isNode":"Issue","assignedActors":{"nodes":[]},"milestone":null,"databaseId":1671600425,"viewerDidAuthor":false,"locked":false,"author":{"__typename":"User","__isActor":"User","login":"compnerd","id":"MDQ6VXNlcjYzMzEx","profileUrl":"https://github.com/compnerd","avatarUrl":"https://avatars.githubusercontent.com/u/63311?v=4"},"__isComment":"Issue","body":"The `SwiftASTContext` does not properly identify the library path and relies on the process loading process to resolve the path to the requisite DLLs and map them in. This is most apparent in the REPL path where an extra `-L%ProgramFiles%\\swift\\runtime-development\\usr\\bin` is required (which is very confusing given that Windows links against the import libraries and not the DLLs). This needs to be resolved so that we can properly evaluate expressions and set breakpoints.","bodyHTML":"\u003cp dir=\"auto\"\u003eThe \u003ccode class=\"notranslate\"\u003eSwiftASTContext\u003c/code\u003e does not properly identify the library path and relies on the process loading process to resolve the path to the requisite DLLs and map them in. This is most apparent in the REPL path where an extra \u003ccode class=\"notranslate\"\u003e-L%ProgramFiles%\\swift\\runtime-development\\usr\\bin\u003c/code\u003e is required (which is very confusing given that Windows links against the import libraries and not the DLLs). This needs to be resolved so that we can properly evaluate expressions and set breakpoints.\u003c/p\u003e","bodyVersion":"5cadcf2c3e01797568e9a7d626ab36986134c6a66176b78885943dc39e8700ed","createdAt":"2023-04-17T16:56:01Z","__isReactable":"Issue","reactionGroups":[{"content":"THUMBS_UP","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"THUMBS_DOWN","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"LAUGH","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HOORAY","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"CONFUSED","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"HEART","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"ROCKET","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}},{"content":"EYES","viewerHasReacted":false,"reactors":{"totalCount":0,"nodes":[]}}],"viewerCanUpdateMetadata":false,"viewerCanComment":false,"viewerCanAssign":false,"viewerCanLabel":false,"__isIssueOrPullRequest":"Issue","projectItemsNext":{"edges":[],"pageInfo":{"endCursor":null,"hasNextPage":false}},"viewerCanSetMilestone":false,"isPinned":false,"viewerCanDelete":false,"viewerCanTransfer":false,"viewerCanConvertToDiscussion":false,"viewerCanLock":false,"viewerCanType":false,"viewerCanSetFields":false,"issueFieldValues":{"nodes":[]},"frontTimelineItems":{"pageInfo":{"hasNextPage":false,"endCursor":"Y3Vyc29yOnYyOpPPAAABh5AlXwgBqjkwMjcwMzcxMjY="},"totalCount":3,"edges":[{"node":{"__typename":"LabeledEvent","__isIssueTimelineItems":"LabeledEvent","__isTimelineEvent":"LabeledEvent","databaseId":9027034409,"createdAt":"2023-04-17T16:56:01Z","actor":{"__typename":"User","login":"compnerd","id":"MDQ6VXNlcjYzMzEx","__isActor":"User","avatarUrl":"https://avatars.githubusercontent.com/u/63311?s=64\u0026v=4","profileResourcePath":"/compnerd"},"label":{"id":"LA_kwDODN4Bac70a4IW","nameHTML":"Windows","name":"Windows","color":"435de8","description":null},"__isNode":"LabeledEvent","id":"LE_lADODN4Bac5jopkpzwAAAAIaDZ0p"},"cursor":"Y3Vyc29yOnYyOpPPAAABh5AlEOgBqjkwMjcwMzQ0MDk="},{"node":{"__typename":"LabeledEvent","__isIssueTimelineItems":"LabeledEvent","__isTimelineEvent":"LabeledEvent","databaseId":9027034414,"createdAt":"2023-04-17T16:56:01Z","actor":{"__typename":"User","login":"compnerd","id":"MDQ6VXNlcjYzMzEx","__isActor":"User","avatarUrl":"https://avatars.githubusercontent.com/u/63311?s=64\u0026v=4","profileResourcePath":"/compnerd"},"label":{"id":"LA_kwDODN4Bac70a9Xm","nameHTML":"DebuggerCrash","name":"DebuggerCrash","color":"16a983","description":null},"__isNode":"LabeledEvent","id":"LE_lADODN4Bac5jopkpzwAAAAIaDZ0u"},"cursor":"Y3Vyc29yOnYyOpPPAAABh5AlEOgBqjkwMjcwMzQ0MTQ="},{"node":{"__typename":"LabeledEvent","__isIssueTimelineItems":"LabeledEvent","__isTimelineEvent":"LabeledEvent","databaseId":9027037126,"createdAt":"2023-04-17T16:56:21Z","actor":{"__typename":"User","login":"compnerd","id":"MDQ6VXNlcjYzMzEx","__isActor":"User","avatarUrl":"https://avatars.githubusercontent.com/u/63311?s=64\u0026v=4","profileResourcePath":"/compnerd"},"label":{"id":"LA_kwDODN4Bac70a4Bt","nameHTML":"LLDB for Swift","name":"LLDB for Swift","color":"416496","description":null},"__isNode":"LabeledEvent","id":"LE_lADODN4Bac5jopkpzwAAAAIaDafG"},"cursor":"Y3Vyc29yOnYyOpPPAAABh5AlXwgBqjkwMjcwMzcxMjY="}]},"backTimelineItems":{"pageInfo":{"hasPreviousPage":true,"startCursor":null},"totalCount":3,"edges":[]}},"id":"MDEwOlJlcG9zaXRvcnkyMTU4NzU5NDU="},"safeViewer":null}},"timestamp":1752672397}]},"title":null,"appPayload":{"initial_view_content":{"team_id":null,"can_edit_view":true},"current_user":null,"current_user_settings":{"use_monospace_font":false,"use_single_key_shortcut":false,"preferred_emoji_skin_tone":null,"copilot_show_functionality":false},"paste_url_link_as_plain_text":false,"base_avatar_url":"https://avatars.githubusercontent.com","help_url":"https://docs.github.com","sso_organizations":null,"multi_tenant":false,"tracing":false,"tracing_flamegraph":false,"catalog_service":"github/issues","scoped_repository":{"id":"MDEwOlJlcG9zaXRvcnkyMTU4NzU5NDU=","owner":"swiftlang","name":"llvm-project","is_archived":false},"enabled_features":{"use_pull_request_subscriptions_enabled":false,"pull_request_single_subscription":true,"disable_issues_react_ssr":false,"issue_dependencies":false,"issue_dependencies_internal_dev":false,"copilot_natural_language_github_search":false,"private_avatars":false,"reserved_domain":true,"projects_classic_sunset_override":false,"issues_react_bypass_es_limits":true,"notifyd_issue_watch_activity_notify":false,"notifyd_enable_issue_thread_subscriptions":false,"timeline_best_effort_count_optimization":false,"copilot_auto_assign_metadata":false,"issues_react_create_milestone":true,"issues_react_bots_timeline_pagination":true,"copilot_workspace_cross_repo_selection":false,"copilot_agent_mode":true,"issues_react_force_turbo_nav":false,"copilot_swe_agent":true,"issues_comment_load_user_settings":true,"copilot_workspace":null,"tasklist_block":false,"issues_react_perf_test":false}}}
SwiftASTContext does not properly locate the runtime libraries on Windows #6660
Open
@compnerd

Description

@compnerd

The SwiftASTContext does not properly identify the library path and relies on the process loading process to resolve the path to the requisite DLLs and map them in. This is most apparent in the REPL path where an extra -L%ProgramFiles%\swift\runtime-development\usr\bin is required (which is very confusing given that Windows links against the import libraries and not the DLLs). This needs to be resolved so that we can properly evaluate expressions and set breakpoints.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0