Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Fails to build from source on Electron versions higher than 12 #242

@LoganDark

Description

@LoganDark

Description

@atom/watcher fails to build with Electron versions higher than 12

Steps to Reproduce

  1. Build from source using Electron 13+
  2. node_modules\@atom\watcher\src\nan\functional_callback.cpp(17,35): error C2039: 'Contents': is not a member of 'v8::ArrayBuffer' [node_modules\@atom\watcher\build\watcher.vcxproj]
    C:\Users\LoganDark\.electron-gyp\14.0.0-beta.21\include\node\v8.h(5353): message : see declaration of 'v8::ArrayBuffer' [node_modules\@atom\watcher\build\watcher.vcxproj]
    node_modules\@atom\watcher\src\nan\functional_callback.cpp(17,43): error C2061: syntax error: identifier 'Contents' [node_modules\@atom\watcher\build\watcher.vcxproj]
    node_modules\@atom\watcher\src\nan\functional_callback.cpp(27,3): error C2065: 'Contents': undeclared identifier [node_modules\@atom\watcher\build\watcher.vcxproj]
    node_modules\@atom\watcher\src\nan\functional_callback.cpp(27,12): error C2146: syntax error: missing ';' before identifier 'cb_contents' [node_modules\@atom\watcher\build\watcher.vcxproj]
    node_modules\@atom\watcher\src\nan\functional_callback.cpp(27,12): error C2065: 'cb_contents': undeclared identifier [node_modules\@atom\watcher\build\watcher.vcxproj]
    node_modules\@atom\watcher\src\nan\functional_callback.cpp(27,36): error C2039: 'GetContents': is not a member of 'v8::ArrayBuffer' [node_modules\@atom\watcher\build\watcher.vcxproj]
    C:\Users\LoganDark\.electron-gyp\14.0.0-beta.21\include\node\v8.h(5353): message : see declaration of 'v8::ArrayBuffer' [node_modules\@atom\watcher\build\watcher.vcxproj]
    node_modules\@atom\watcher\src\nan\functional_callback.cpp(29,43): error C2065: 'cb_contents': undeclared identifier [node_modules\@atom\watcher\build\watcher.vcxproj]
    node_modules\@atom\watcher\src\nan\functional_callback.cpp(30,3): error C2065: 'cb_contents': undeclared identifier [node_modules\@atom\watcher\build\watcher.vcxproj]
    node_modules\@atom\watcher\src\nan\functional_callback.cpp(32,53): error C3536: 'payload': cannot be used before it is initialized [node_modules\@atom\watcher\build\watcher.vcxproj]
    node_modules\@atom\watcher\src\nan\functional_callback.cpp(32,45): error C2100: illegal indirection [node_modules\@atom\watcher\build\watcher.vcxproj]
    node_modules\@atom\watcher\src\nan\functional_callback.cpp(32,53): warning C4312: 'reinterpret_cast': conversion from 'int' to 'FnCallback *' of greater size [node_modules\@atom\watcher\build\watcher.vcxproj]
    node_modules\@atom\watcher\src\nan\functional_callback.cpp(34,17): error C2541: 'delete': cannot delete objects that are not pointers [node_modules\@atom\watcher\build\watcher.vcxproj]
    node_modules\@atom\watcher\src\nan\functional_callback.cpp(45,95): error C2661: 'v8::ArrayBuffer::New': no overloaded function takes 3 arguments [node_modules\@atom\watcher\build\watcher.vcxproj]
    

Expected behavior:

It builds

Actual behavior:

It doesn't

Reproduces how often:

Always

Versions

Node version: v16.7.0
npm version: v7.20.3
Windows 10 Home 2004 build 19041.928

Additional Information

https://docs.google.com/document/d/1sTc_jRL87Fu175Holm5SV0kajkseGl2r8ifGY76G35k/view

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