Skip to content

Instantly share code, notes, and snippets.

Corey O'Connor coreyoconnor

Block or report user

Report or block coreyoconnor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View build.sbt
lazy val site = glngn.sbt.Site("my-business-service")
View then.scala
lazy val client = crossProject(JSPlatform)
.withoutSuffixFor(JSPlatform)
.crossType(CrossType.Full)
.dependsOn(shared)
.enablePlugins(glngn.sbt.Client)
.settings(
name := "glngn-client",
commonSettings,
View now.scala
lazy val client = glngn.sbt.InternalClient("glngn-client", file("client"))
.dependsOn(shared)
.settings(
commonSettings
)
.jsSettings(
Compile/mainClass := Some("glngn.client.Main"),
coverageEnabled := false
View gist:410e5291aebce30c611f68abcf448870
machine: must succeed: xwininfo -root -tree | sed 's/.*0x[0-9a-f]* \"\([^\"]*\)\".*/\1/; t; d'
machine# [ 54.564100] dbus-daemon[777]: [session uid=1000 pid=775] Activating service name='org.kde.ActivityManager' requested by ':1.12' (uid=1000 pid=909 comm="/run/current-system/sw/bin/plasmashell ")
machine: exit status 0
(0.30 seconds)
machine: must succeed: xwininfo -root -tree | sed 's/.*0x[0-9a-f]* \"\([^\"]*\)\".*/\1/; t; d'
machine: exit status 0
(0.22 seconds)
machine# [ 56.153277] dbus-daemon[777]: [session uid=1000 pid=775] Successfully activated service 'org.kde.ActivityManager'
machine# [ 56.220160] xsession[758]: System timezone has been changed, new timezone is "UTC"
machine: must succeed: xwininfo -root -tree | sed 's/.*0x[0-9a-f]* \"\([^\"]*\)\".*/\1/; t; d'
View gist:55e9a520efa7195a5729546b22177c5b
Thread 1 "runTests" received signal SIGSEGV, Segmentation fault.
0x000000000058318b in fakeit::VirtualTableBase::setMethod (method=0x582960 <fakeit::MockImpl<ProjectManager>::unmocked()>, index=<optimized out>, this=0x18381e0)
at /home/coconnor/Development/kdenlive-dev/kdenlive/tests/fakeit.hpp:5695
5695 _firstMethod[index] = method;
(gdb) bt
#0 0x000000000058318b in fakeit::VirtualTableBase::setMethod (method=0x582960 <fakeit::MockImpl<ProjectManager>::unmocked()>, index=<optimized out>, this=0x18381e0)
at /home/coconnor/Development/kdenlive-dev/kdenlive/tests/fakeit.hpp:5695
#1 fakeit::VirtualTable<ProjectManager>::initAll (value=0x582960 <fakeit::MockImpl<ProjectManager>::unmocked()>, this=0x18381e0)
at /home/coconnor/Development/kdenlive-dev/kdenlive/tests/fakeit.hpp:5780
#2 fakeit::MockImpl<ProjectManager>::createFakeInstance () at /home/coconnor/Development/kdenlive-dev/kdenlive/tests/fakeit.hpp:8186
View gist:6dda96c5128482c44791a313c79e470a
#4 0x00000000008497d1 in TimelineItemModel::index (this=0x36b3ea0, row=1, column=<optimized out>, parent=...)
at /home/coconnor/Development/kdenlive-dev/kdenlive/src/timeline2/model/timelineitemmodel.cpp:96
#5 0x000015554f791f9f in ?? () from /nix/store/xw6801rp6hfs10vxq9nqyfzjxcwyz92m-qtbase-5.12.0/lib/libQt5Core.so.5
#6 0x000015554f7944d5 in ?? () from /nix/store/xw6801rp6hfs10vxq9nqyfzjxcwyz92m-qtbase-5.12.0/lib/libQt5Core.so.5
#7 0x000015554f79661c in ?? () from /nix/store/xw6801rp6hfs10vxq9nqyfzjxcwyz92m-qtbase-5.12.0/lib/libQt5Core.so.5
#8 0x000015554f79888d in ?? () from /nix/store/xw6801rp6hfs10vxq9nqyfzjxcwyz92m-qtbase-5.12.0/lib/libQt5Core.so.5
#9 0x000015554f79a471 in ?? () from /nix/store/xw6801rp6hfs10vxq9nqyfzjxcwyz92m-qtbase-5.12.0/lib/libQt5Core.so.5
#10 0x000015554f7f359b in QMetaObject::activate(QObject*, int, int, void**) () from /nix/store/xw6801rp6hfs10vxq9nqyfzjxcwyz92m-qtbase-5.12.0/lib/libQt5Core.so.5
#11 0x000015554f76b43e in QAbstractItemModel::rowsInserted(QModelIndex cons
View linking failure
[info] Compiling to native code (3498 ms)
[error] clang-5.0: warning: -Wl,-lc++abi: 'linker' input unused [-Wunused-command-line-argument]
[error] clang-5.0: warning: argument unused during compilation: '-stdlib=libc++' [-Wunused-command-line-argument]
[error] clang-5.0: warning: -Wl,-lc++abi: 'linker' input unused [-Wunused-command-line-argument]
[error] clang-5.0: warning: argument unused during compilation: '-stdlib=libc++' [-Wunused-command-line-argument]
[error] clang-5.0: warning: -Wl,-lc++abi: 'linker' input unused [-Wunused-command-line-argument]
[error] clang-5.0: warning: argument unused during compilation: '-stdlib=libc++' [-Wunused-command-line-argument]
[error] clang-5.0: warning: -Wl,-lc++abi: 'linker' input unused [-Wunused-command-line-argument]
[error] clang-5.0: warning: argument unused during compilation: '-stdlib=libc++' [-Wunused-command-line-argument]
[error] target/scala-2.11/native/lib/optional/re2.cpp.o: In function `scalanative_cre2_find_named_capturing_groups':
View build.sbt
lazy val stage = taskKey[File]("stage")
val allProjectCompiles = ScopeFilter(inAnyProject, inConfigurations(Compile))
lazy val dev = crossProject(JVMPlatform, NativePlatform)
.crossType(CrossType.Full)
.withoutSuffixFor(JVMPlatform)
.settings(
scalaVersion := "2.11.12",
libraryDependencies += "org.scalactic" %% "scalactic" % "3.0.5",
View gist:75256127c97c910c602d7146286d2ed3
~~~
[info] Linking (1414 ms)
[error] cannot link: @java.util.Calendar$::getInstance_java.util.Calendar
[error] cannot link: @java.util.Calendar::setTimeInMillis_i64_unit
[error] unable to link
[error] (devNative/compile:nativeLink) unable to link
[error] Total time: 3 s, completed Jun 19, 2018 10:42:42 AM
>
~~~
View fixed-sbt-with-scala-native.nix
self: super:
let
lib = self.lib;
in with lib;
let
inherit (self) boehmgc libunwind re2 llvmPackages zlib makeWrapper;
c-pkgs = [ re2 zlib boehmgc libunwind llvmPackages.libraries.libcxxabi ];
cplus-pkgs = [ llvmPackages.libraries.libcxx ];
CPATH = makeSearchPathOutput "dev" "include" c-pkgs;
You can’t perform that action at this time.