Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add OS and architecture to binary filename in CompileBinaryCommand #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from

Conversation

kpanuragh
Copy link

Updated the CompileBinaryCommand to include the operating system type and architecture in the binary filename. This change ensures that binaries
are uniquely identified by their build environment, preventing potential conflicts when binaries for different environments are stored in the sa
directory.

 Updated the CompileBinaryCommand to include the operating system type and architecture in the binary filename. This change ensures that binaries
 are uniquely identified by their build environment, preventing potential conflicts when binaries for different environments are stored in the sa
 directory.
 The OS type is now converted to lowercase to ensure consistency and prevent potential issues with case sensitivity during binary compilation. Th
 change helps maintain uniformity across different environments.
 Updated the CompileBinaryCommand to standardize OS and architecture names. This ensures compatibility and consistency across different
 environments by mapping 'darwin' to 'mac', 'Linux' to 'linux', and 'Windows NT' to 'windows'. Similarly, 'x86_64' is mapped to 'x64' and 'aarch6
 to 'arm64'. This change helps in generating binaries with a consistent naming convention.
@kpanuragh
Copy link
Author

Mappings have also been added to match Node.js OS architecture names and OS type names.

@kpanuragh
Copy link
Author

An update for the OS has also been added: laravel/vs-code-extension#22

app/Commands/CompileBinaryCommand.php Outdated Show resolved Hide resolved
 Updated the OS and architecture detection logic using PHP's match expression for improved readability and maintainability. This change simplifie
 the code by replacing multiple if-else statements with a more concise and expressive syntax, making it easier to understand and extend in the
 future.
@kpanuragh
Copy link
Author

@joetannenbaum I think you fixed the issue do I need to keep the PR

@aeadedoyin
Copy link

@kpanuragh yeah it fixes it, it now works correctly on my intel, have you tested on yours too?

cc @eznix86

@joetannenbaum
Copy link
Collaborator

@kpanuragh thank you for the PR! Ended up handling this a different way, but I appreciate you submitting this, going to close this one.

joetannenbaum added a commit that referenced this pull request May 7, 2025
…tPhpParserNodeArrayElement$memberName-#1

Fix Undefined property: Microsoft\PhpParser\Node\ArrayElement::$memberName
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.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.