Skip to content
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

Popovers #19

Closed
olivernybroe opened this issue Apr 11, 2018 · 12 comments
Closed

Popovers #19

olivernybroe opened this issue Apr 11, 2018 · 12 comments
Assignees

Comments

@olivernybroe
Copy link

Could be nice if you could implement popovers
https://developer.apple.com/macos/human-interface-guidelines/touch-bar/touch-bar-controls-and-views#Popovers

@ttveldhuis
Copy link
Contributor

Basic support has been added in the latest commit. I tagged it so a snapshot will be created.

Still need to add support for;

  • showPopover
  • dismissPopover
  • showsCloseButton

@ttveldhuis
Copy link
Contributor

Added support for ‘showsCloseButton’ but still missing the dismiss method to be able to dismiss the opened popover when ‘showsCloseButton’ is set to ‘false’.

@olivernybroe
Copy link
Author

Amazing! Will try it out when I get some time free again.

@olivernybroe
Copy link
Author

Something in your new code has changed. My code doesn't work anymore, it just crashes now, even though no changes has been made to my codebase.

@ttveldhuis
Copy link
Contributor

I'll have a look at it as soon as possible. In the mean time, what type of elements are you adding to the touchbar? Or does it also crash with an empty touchbar?

@olivernybroe
Copy link
Author

It crashes when running show after adding a button. If you can't recreate the error, I'll try and see if I can make a simple example which reproduces the error.

@ttveldhuis
Copy link
Contributor

I've tried to reproduce by adding several elements (separately and together) but I can't seem to reproduce the crash. Could you try to write an example which crashes?

@olivernybroe
Copy link
Author

Actually having some problems making the example. However in my project I can easily reproduce it.
I can tell you how to reproduce it in my project.

I can also give you the log? Maybe it might give you some insight?

@olivernybroe
Copy link
Author

olivernybroe commented Apr 12, 2018

OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=250m; support was removed in 8.0
objc[28164]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fff8dba6c90) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x12c5d6cd8). One of the two will be used. Which one is undefined.
:runIde
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00000001048ec1df, pid=27043, tid=0x0000000000000307
#
# JRE version: OpenJDK Runtime Environment (8.0_152-b06) (build 1.8.0_152-release-1153-b6)
# Java VM: OpenJDK 64-Bit Server VM (25.152-b6 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.dylib+0x2ec1df]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/uruloke/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/LATEST-EAP-SNAPSHOT/71ffd116fca01d7bd4db1251b5e567b70d5e78e1/ideaIC-LATEST-EAP-SNAPSHOT/bin/hs_err_pid27043.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

and the log file it refers to can be found here https://gist.github.com/olivernybroe/0adf0d1bebb4302434310fb9e9bc5e48

@olivernybroe
Copy link
Author

For reproducing it in my project just clone https://github.com/olivernybroe/intellij-touch and change build.gradle.
In build.gradle replace

compile files('libs/jtouchbar-0.1.0-SNAPSHOT.jar', 'libs/org.eclipse.swt.cocoa.macosx.x86_64-4.6.1.jar')

with

compile group: 'com.thizzer.jtouchbar', name: 'jtouchbar', version: '0.1.0-SNAPSHOT'

For running the code use gradle runIde.

(I'll try to see if I can make a simple example as my project is a plugin to IntelliJ, which adds a lot of other elements to look out for.)

@ttveldhuis
Copy link
Contributor

I've added some additional (error) handling which appears to have solved the crash. When I use the latest jar from the repository the plugin doesn't crash anymore. So after you've refreshed your dependencies it should work again.

@olivernybroe
Copy link
Author

Cool, just tested and it works now!
Thanks a lot dude.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants