Bug 282371 - editors/vscode: Fix build with clang 19
Summary: editors/vscode: Fix build with clang 19
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Hiroki Tagato
URL:
Keywords:
Depends on: 282370
Blocks:
  Show dependency treegraph
 
Reported: 2024-10-27 22:06 UTC by Guido Falsi
Modified: 2024-11-03 23:15 UTC (History)
0 users

See Also:
tagattie: maintainer-feedback+


Attachments
patch (1017 bytes, patch)
2024-10-27 22:06 UTC, Guido Falsi
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guido Falsi freebsd_committer freebsd_triage 2024-10-27 22:06:53 UTC
Created attachment 254583 [details]
patch

Hi,

After upgrading to recent head I noticed vscode failing to build, due to the clang 19 upgrade.

I've created a patch that works for me, based on an upstream commit [1]

Hope this can be useful


[1] https://github.com/tree-sitter/node-tree-sitter/commit/a90b361cb5ac45e8e2f6f6e7fd56d0892de30cc7
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-11-03 23:11:27 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a811f5edccef485b6ada224cacb3a3b07dcd18d3

commit a811f5edccef485b6ada224cacb3a3b07dcd18d3
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2024-11-03 23:09:08 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2024-11-03 23:10:55 +0000

    editors/vscode: fix build with clang 19

    PR:             282371
    Reported by:    madpilot
    MFH:            2024Q4

 ...atch-build_node__modules_tree-sitter_src_node.cc (new) | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-11-03 23:12:28 UTC
A commit in branch 2024Q4 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=895bbbe0832cdda00fea9d50b6c6ac6251842add

commit 895bbbe0832cdda00fea9d50b6c6ac6251842add
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2024-11-03 23:09:08 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2024-11-03 23:12:02 +0000

    editors/vscode: fix build with clang 19

    PR:             282371
    Reported by:    madpilot
    MFH:            2024Q4

    (cherry picked from commit a811f5edccef485b6ada224cacb3a3b07dcd18d3)

 ...atch-build_node__modules_tree-sitter_src_node.cc (new) | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
Comment 3 Hiroki Tagato freebsd_committer freebsd_triage 2024-11-03 23:15:03 UTC
Hi Guido,

I have confirmed the patch fixes the build issue with clang 19.

Changes committed. Thanks for the patch!