Replies: 8 comments 1 reply
-
Here is some additional output with the verbose option:
Look at the -target option. Where the heck did that come from? It's not part of the project description that I created. This is some spurious thing xmake generated. Why? How to correct it? Seems like I should report as bug. I have 2 other projects working fine without this problem. |
Beta Was this translation helpful? Give feedback.
-
Here is the problem: xmake built compile_commands.json in a completely bogus way. And this results in the errors when running clang.
So, why did it do this? Something caused the wrong arguments to be created. I have never manually edited one of these. Indeed, that would be a mistake because xmake will write over it each time xmake.lua is edited. |
Beta Was this translation helpful? Give feedback.
-
So, I manually fixed compile_commands.json by replacing |
Beta Was this translation helpful? Give feedback.
-
So, I went through the curses interface for configuration. This is the first time ever. For some impenetrable reason the target for this project had been set for watchOS. I manually changed it to macos and everything works. I would NOT consider this closed. How did this ever happen? How did the auto-recognition of the build platform and the target fail? Let's get to the bottom of this. |
Beta Was this translation helpful? Give feedback.
-
It seems to me that the vs code extension is simply massively broken. Sometimes it works and sometimes it is a NOOP. I just uninstalled and re-installed. I added "add_rules("mode.debug", "mode.release")" to the top of xmake.lua. I used the extension to build. No release build was created. Basically, only the command line works. I want to love xmake. It's the best designed build tool. But, it is flaky. |
Beta Was this translation helpful? Give feedback.
-
OK. Sorry for all the notes. Took me a while to see what the problem was.
Command line is more reliable. But, why did it work for others of my projects with no problem?
From: ruki ***@***.***>
Reply-To: xmake-io/xmake ***@***.***>
Date: Monday, April 10, 2023 at 3:40 PM
To: xmake-io/xmake ***@***.***>
Cc: Lewis Levin ***@***.***>, Author ***@***.***>
Subject: Re: [xmake-io/xmake] simplest things seem fraught with mysterious errors (Discussion #3616)
it's xmake-vscode plugin issue, it does not support macos arm64 yet.
—
Reply to this email directly, view it on GitHub<https://github.com/orgs/xmake-io/discussions/3616#discussioncomment-5574537>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAIYWLIELUXG4OERWUJXZ43XASD4LANCNFSM6AAAAAAWZIQ2LA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I have improve vscode plugin to detect arm64 arch |
Beta Was this translation helpful? Give feedback.
-
Thanks. Will give it a try.
I think I built my other projects with the command line tool and then used vscode extension to build/run while working on the code.
From: ruki ***@***.***>
Reply-To: xmake-io/xmake ***@***.***>
Date: Monday, April 10, 2023 at 6:57 PM
To: xmake-io/xmake ***@***.***>
Cc: Lewis Levin ***@***.***>, Author ***@***.***>
Subject: Re: [xmake-io/xmake] simplest things seem fraught with mysterious errors (Discussion #3616)
I have improve vscode plugin to detect arm64 arch
—
Reply to this email directly, view it on GitHub<https://github.com/orgs/xmake-io/discussions/3616#discussioncomment-5575423>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAIYWLI2AVKLPRHTVSXO723XAS27HANCNFSM6AAAAAAWZIQ2LA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am just trying to learn and I am thwarted if I go a step past the velvet ropes. Here is the error:
Here is xmake.lua:
Directory structure:
Beta Was this translation helpful? Give feedback.
All reactions