mrcarlberg on aristo3
Revert "Fixed: Before this PR, … Fixed: Allow space in path to .… Fixed: å and Å did not work wel… and 21 more (compare)
mrcarlberg on node
Revert "Fixed: Before this PR, … Fixed: å and Å did not work wel… FIXED: CPLikePredicateOperatorT… and 1 more (compare)
mrcarlberg on es2022
mrcarlberg on node
Removed debugger statement Added ES2022 as compile option Changes for compatibility with … and 11 more (compare)
mrcarlberg on node
Fixed: Make sure Jakefile both … (compare)
@vasg77_twitter Have you tried the Node version? It should work with Xcode 13+. You can easily try it without messing up your narwhal
version by running the following in the Terminal:
git checkout node
npm install
jake dist
export PATH="$PWD/dist/cappuccino/bin:$PWD/dist/objective-j/bin:$PATH"
Check that it finds the correct nib2cib
by running which nib2cib
. Make sure you have Node version 14 or later installed. (I currently use version 16).
async
/ await
syntax but is otherwise the same as latest master. We have move over to running 100% Node now in our project.
jake
and nib2cib
etc. The way they build things are still exactly the same. It is only narwhal that is replaced with Node. What is for example how we read and write a file etc. So code is replace to use Node api instead of Narwhal api. One major thing is also that Node is asynchronous by default. This means that I had to add async
/ await
to the Objective-j syntax to be able to handle some cases in the tools in an elegant way.
nib2cib
though.
nib2cib
fails. I’m hoping this is the last remaining significant source of silent conversion failures.
narwhal
directory or /usr/local/bin
. This is done by introducing the jake dist
command. This means you can have an unlimited number of versions at the same time. You can read more about it on the wiki under the title Install from source without install with npm
: https://github.com/cappuccino/cappuccino/wiki/node
@mrcarlberg Trying the pointed info on the wiki, I’ve followed the installation instructions and, when trying capp gen HelloWorld
, I get the following error :
throw new Error("Could not load file at " + aURL + (compilingFileUrl ? " when compiling " + compilingFileUrl : "") + "\nwith includeURLs: " + StaticResource.includeURLs());
Any idea why ?
This is tried on my current system, just to be sure it could work on the future M1Max MBP…
sgi-mac20:~ u029386$ capp gen HelloWorld
/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:3946
throw new Error("Could not load file at " + aURL + (compilingFileUrl ? " when compiling " + compilingFileUrl : "") + "\nwith includeURLs: " + StaticResource.includeURLs());
^
Error: Could not load file at file:/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/dist/cappuccino/lib/capp/main.j
with includeURLs: /Users/u029386/Frameworks/,/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/dist/cappuccino/Frameworks/
at completed (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:3946:31)
at resolveResourceComponents (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:3490:24)
at Array.<anonymous> (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:3487:21)
at EventDispatcher.dispatchEvent (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:730:50)
at resolveStaticResource (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:3151:36)
at onfailure (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:3199:17)
at EventDispatcher.dispatchEvent (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:733:13)
at determineAndDispatchHTTPRequestEvents (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:973:29)
at XMLHttpRequest.CFHTTPRequest._stateChangeHandler [as onreadystatechange] (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:800:13)
at Immediate.<anonymous> (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js:628:53)