-
Notifications
You must be signed in to change notification settings - Fork 614
Conversation
@marcelgerber We might want to revert the mouse scroll hack once this PR is merged with master. |
I think we need to make some changes to the xcode project. I'm currently on 10.11.2 with Xcode 7.2 and compilation failed, because |
@ingorichter Thanks for trying out this branch and for the workaround as well. I tested this with XCode 6. It seems to pass fine. Let me setup XCode 7.0 and try building this branch. |
I tried this PR on Windows and cannot find the Brackets executable in Release/Debug folders, only the wow_helper.exe. PS: Will this works on Linux? I think it would be nice to update it... |
The version 2526 of cef should support VS2015. I'll wait for it. |
@ficristo That is right! We have not ported our build scripts to be able to build on VS2015. I will update the scripts and will let you know once it is ready. Thanks for building and posting the results. |
If I want to test the new version of CEF, but that version it should be uploaded to a private server first. Right? |
Refer to https://github.com/adobe/brackets-shell/blob/master/Gruntfile.js#L226. This is where we set the download location. You can change this to any other domain (maybe dropbox). But be sure to name the binary in this format. cef_binary_3.2171.1902_macosx32.zip Notice the "3.2171.1902" part. This version number would be got from https://github.com/adobe/brackets-shell/blob/master/Gruntfile.js#L227. So you might want to change the version number as well. At the end, both the URL location and the version number are combined along with But I am afriad just this is not enough. The Oh, by the way you could also look at this PR #440 which adds support for VS 2013, which I think is a mandate, if we want to shift to the latest CEF. Let me know how it goes. |
@nethip Thanks for the answer. I'll see if I have the time to look at it. |
It seems easy enough to add support to vs2015: I've updated the gyp in tree to latest master plus I've removed a couple of warning. |
@ficristo Could you mention which folders have changed? I have VS 2010 and the windows build seems to go fine. I will try updating to 2526 as well (now that the builds are available at https://cefbuilds.com). |
More or less like this: In cef 3.2171
In cef 3.2526
|
@ingorichter @vdhawal I have fixed all the issues and now the PR is ready for review. We want to merge this for Brackets 1.7. Will you guys be able to review this PR? |
Hi @nethip I have a couple of questions:
|
Changes look good to me. I did build on 10.11.4 with Xcode 7.3 and the app launched seamlessly. OnBeforePopup is also getting invoked when a popup window is launched. 👍 |
Thanks @vdhawal for reviewing this trying to build it . And thanks to @ingorichter for pointing out the issue with exceptions.
I think the
That is a good point you brought up. I will give it a spin.
Unfortunately, CEF stopped supporting 32bit binaries for Mac OS. Hence have to switch to 64 bit only for MAC, from 2357. One solution I can think of is,the user can build Brackets shell from a prior commits, once this PR is merged. We will be retaining the CEF 2171 binaries on our S3 server. |
I was only interested for the vs2015 compatibility. I think this will already bring some fixes (I think at you scroll issue!). For the platform thing, I kinda hope that the upgrade will fail gracefully, maybe with some sort of message. But without numbers is rough to know if is an important issue. @nethip Thanks fo the answers! |
I've gave a try. |
…fault toolbar, provided by OS, is not allowing for any custom drawing of the window title
@ficristo Yeah this PR was not meant to be mixed with VS2015 changes. Is it OK if we can work on your VS2015 related PRs post 1.7? One of the major hurdles we are facing is to do with upgrading our build system, as the system is currently equipped to churn out builds using VS2010. |
@nethip yes, no problem 😄 |
Tagging @abhijitapte |
Will CEF 2623 come to Linux as well? Would be very nice to finally have the Linux version updated! |
@marcelgerber unfortunately not. :(. I guess Linux has to be worked ground up since lot has changed in cef-client. |
@@ -650,7 +662,6 @@ - (void)createApp:(id)object { | |||
content_rect = [mainWnd contentRectForFrameRect:[mainWnd frame]]; | |||
|
|||
// Configure the rest of the window | |||
[mainWnd setTitle:WINDOW_TITLE]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nethip where is this being set now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drawing of window title is going to be taken care of CustomToolBarView
. Actually Apple officially dropped support for installing views in NSThemeFrame
and CustomToolBarView
is getting added as a subview inside NSThemFrame
. I think going forward we need to investigate and figure out how to officially get a dark toolbar. There is a [mainWnd setAppearance: NSAppearanceNameVibrantLight]
but that is going to give UI toolbar a more darker look. But this is the actual way to do it. Also there is a way to generate custom appearances and install it via setAppearance
. That is something I will investigate in the future.
For now to answer your question, OS is drawing the title along with CustomTitleBarView
and hence need to suppress one of them. We require CustomTitleBarView
for dark toolbar.
@marcelgerber Will you be able to build out of this branch and pull adobe/brackets#12415 to check if the fast scrolling issue is resolved? |
I have already done so and I can say, the scroll issue is finally gone! Good job on your side! |
@marcelgerber did you test on Windows or OSX? |
@marcelgerber Oh that is a relief. And thanks to you for fixing the actual problem via adobe/brackets#12415. Really appreciate it! @ingorichter I guess he would have built this on Windows itself. |
// Since we have nuked the title, we will have | ||
// to set the string back as we are hiding the | ||
// custom title bar. | ||
[window setTitle:[customTitlebar titleString]]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nethip I did run into a console message viz., the following. Was that happening earlier also?
2016-05-12 22:52:11.306 Brackets[2370:84493] NSWindow warning: adding an unknown subview: <CustomTitlebarView: 0x608000131440>. Break on NSLog to debug.
2016-05-12 22:52:11.351 Brackets[2370:84493] Call stack:
(
0 AppKit 0x00007fff851c88bb -[NSThemeFrame addSubview:] + 107
1 AppKit 0x00007fff851c8600 -[NSView addSubview:positioned:relativeTo:] + 211
2 Brackets 0x00000001000588bb -[ClientWindowDelegate windowDidBecomeKey:] + 603
3 CoreFoundation 0x00007fff9768ebbc CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
4 CoreFoundation 0x00007fff9768eb4f ___CFXRegistrationPost_block_invoke + 63
5 CoreFoundation 0x00007fff9768eac7 _CFXRegistrationPost + 407
6 CoreFoundation 0x00007fff9768e832 ___CFXNotificationPost_block_invoke + 50
7 CoreFoundation 0x00007fff9764b5e2 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1922
8 CoreFoundation 0x00007fff9764a835 _CFXNotificationPost + 693
9 Foundation 0x00007fff88399fda -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
10 AppKit 0x00007fff852e6048 -[NSWindow becomeKeyWindow] + 1425
11 AppKit 0x00007fff852e5a75 _NXSendWindowNotification + 252
12 AppKit 0x00007fff852e5378 -[NSWindow _changeKeyAndMainLimitedOK:] + 868
13 AppKit 0x00007fff853af173 -[NSWindow _makeKeyRegardlessOfVisibility] + 98
14 AppKit 0x00007fff852e8429 NSPerformVisuallyAtomicChange + 147
15 AppKit 0x00007fff853af0af -[NSWindow makeKeyAndOrderFront:] + 79
16 Brackets 0x0000000100059a5f -[ClientAppDelegate createApp:] + 2575
17 Foundation 0x00007fff883c7f4e -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 1115
18 Foundation 0x00007fff883c7a75 -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 131
19 Brackets 0x000000010005b276 main + 3030
20 Brackets 0x0000000100003d54 start + 52
21 ??? 0x0000000000000003 0x0 + 3
)
Got xpc error message: Connection interrupted
2016-05-12 22:54:16.043 Brackets[2370:85805] Communications error: <OS_xpc_error: <error: 0x7fff76257b90> { count = 1, contents =
"XPCErrorDescription" => <string: 0x7fff76257f40> { length = 22, contents = "Connection interrupted" }
}>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was happening earlier with 10.11 sdk. Please refer to my comment https://github.com/adobe/brackets-shell/pull/544/files/d3cd41c8fb964cd5634b3babdeec9dd25e681861#r63060349
for more explanation on this,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nethip
There seems to be an issue with custom title bar view in case "Debug > New Brackets Window" is selected and the same is maximized and/or restored. See screenshot below -
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see that you are using OS dark theme. Let me give that a try.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nethip
I also see that
OS X Deployment Target is 10.6.
Shouldn't that be updated? Changing that causes appshell build to fail. The errors and deprecations should be fixed.
Also npm install for Brackets throws these deprecations -
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated npmconf@2.1.1: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated graceful-fs@1.1.14: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is weird. can you bring your laptop to the office tomorrow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About the deprecation and 10.6 target, I think that is something we can work on post 1.7. Agree with you updating the target as well as the removing the npm deprecation warnings.
Thanks @abhijitapte in taking some time to review this PR. |
@nethip please have a look at the video capture. This has the steps for reproducing blank title. I am using the brackets |
…he main window and the fix had to be migrated to popup window as well
Great catch @abhijitapte . I fixed the issue and the change should be reflecting in this PR. Thanks for testing this PR so extensively. 👍 |
looks good to me @nethip |
LGTM 👍. |
Thanks to @ingorichter @ficristo @vdhawal @abhijitapte who helped in shaping this PR really good. Really appreciate your efforts! |
@nethip Linux build doesn't work. The CEF binary 2623 zip folder itself is not accessible. |
@abhijitapte unfortunately app shell on Linux is going to get built from an older branch as it requires some more work. I could upload the binaries to S3. Let me know if you want to have a look at it (which would be great :)) |
This PR updates CEF version inside Brackets to
23572623. I could not upgrade to latest version as the latest MAC binaries are not yet posted to cebuilds.com. I will update this PR with the latest verison once they are built and available at cefbuilds.com.One important thing to note is that, starting from 2357, CEF is going to support only 64 bit version of MAC. If you are building out of this branch, 64 bit binary is going to be generated on MAC.