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)
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)
@enquora A quick check in CPMenu.j
:
- (void)awakeFromCib
{
if (_name === @"_CPMainMenu")
{
[self _setMenuName:@"CPMainMenu"];
[CPMenu setMenuBarVisible:YES];
}
}
This means that the mainMenu is set in awakeFromCib:
. I think this is a bug as I should already be set when awakeFromCib:
methods are called. Your awakeFromCib:
is called before this one is but it could have been called after. There is not order on when they are called.