Open jimstutt opened 10 years ago
Could you describe this in more detail please? Are you talking about GHC or the sunroof compiler? Which versions are you working with? What is the exact problem you have?
Thanks for the prompt reply. [jim@localhost Sunroof]$ git clone https://github.com/ku-fpg/sunroof-examples.git
[jim@localhost Sunroof]$ cabal install sunroof-examples/ -j $ncpus Resolving dependencies... Notice: installing into a sandbox located at /home/jim/Sandbox/Sunroof/.cabal-sandbox Configuring sunroof-examples-0.2.1... Building sunroof-examples-0.2.1... Failed to install sunroof-examples-0.2.1 Last 10 lines of the build log ( /home/jim/Sandbox/Sunroof/.cabal-sandbox/logs/sunroof-examples-0.2.1.log ):
examples/canvas/Main.hs:232:7: Not in scope: ‘setTextAlign’ Perhaps you meant ‘textAlign’ (imported from Language.Sunroof.JS.Canvas)
examples/canvas/Main.hs:233:7: Not in scope: ‘setTextBaseline’ Perhaps you meant ‘textBaseline’ (imported from Language.Sunroof.JS.Canvas)
examples/canvas/Main.hs:234:7: Not in scope: ‘setFillStyle’ cabal: Error: some packages failed to install: sunroof-examples-0.2.1 failed during the building phase. The exception was: ExitFailure 1
ghc-7.8.2 cabal-install-1.20.0.2 Cabal-1.20.0.1
[jim@localhost Sunroof]$ ghc-pkg list --package-db .cabal-sandbox/x86_64-linux-ghc-7.8.2-packages.conf.d |grep sun sunroof-compiler-0.2.1 sunroof-server-0.2 [jim@localhost Sunroof]$ ghc-pkg list --package-db .cabal-sandbox/x86_64-linux-ghc-7.8.2-packages.conf.d |grep kansas kansas-comet-0.2.2 [jim@localhost Sunroof]$ uname -a Linux localhost.localdomain 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Okay, I think I fixed all issues you reported.
Due to some version conflicts with updates of other packages I also had to change some dependencies (mainly version limits). One major change is that I needed to relax versions in kansas-comet on which the server relies. That change can be found here: https://github.com/jbracker/kansas-comet As long as the merge request ( ku-fpg/kansas-comet#1 ) is not accepted you will have to use my local fork. I hope the maintainers update the version on hackage soon. When that happens I will update the hackage versions of sunroof as well.
Could you please test if these changes work for you?
Quoting Jan Bracker notifications@github.com:
Okay, I think I fixed all issues you reported.
Due to some version conflicts with updates of other packages I also
had to change some dependencies (mainly version limits). One major
change is that I needed to relax versions in kansas-comet on which
the server relies. That change can be found here:
https://github.com/jbracker/kansas-comet
Tnx.
As long as the merge request ( ku-fpg/kansas-comet#1 ) is not
accepted you will have to use my local fork.
Ok.
I hope the maintainers update the version on hackage soon. When that
happens I will update the hackage versions of sunroof as well.Could you please test if these changes work for you?
Willco :). I'll also try the sunroof compiler which I haven't got
round to yet.
Reply to this email directly or view it on GitHub: https://github.com/ku-fpg/sunroof-examples/issues/1#issuecomment-45478409
Jan,
What specifically can I do to help, re sunroof? I’m back from a trip (to PLDI in Edinburgh, and getting back into things)
Andy
Pushing through and reviewing the update on kansas-comet would be good.
A review of my changes to Sunroof and a test run if everything also works on your system would also be useful.
Quoting Jan Bracker notifications@github.com:
Pushing through and reviewing the update on kansas-comet would be good.
A review of my changes to Sunroof and a test run if everything also
works on your system would also be useful.
Cloned your fork: browser-info, canvas, unit and fib work, so thanks.
Clock was just blank.
Cheers
hth
Reply to this email directly or view it on GitHub: https://github.com/ku-fpg/sunroof-examples/issues/1#issuecomment-46081746
Are you sure you used the clock example correctly? It's an oddball compared to the other examples, since it just generates files instead of starting a server. Explanation is given in the readme: https://github.com/ku-fpg/sunroof-examples/tree/master/examples/clock
Quoting Jan Bracker notifications@github.com:
Are you sure you used the clock example correctly? It's an oddball
compared to the other examples, since it just generates files
instead of starting a server. Explanation is given in the readme: https://github.com/ku-fpg/sunroof-examples/tree/master/examples/clock
No. Rushed, so "more haste less speed" :(.
Will check and report. I haven't tried the sunroof compiler yet. I'm
comparing all the haskell javascript generators for a project
(azimuthproject.org) but I'll get back to you on that as well.
Reply to this email directly or view it on GitHub: https://github.com/ku-fpg/sunroof-examples/issues/1#issuecomment-46088496
The repository versions of sunroof-compiler, sunroof-server, sunroof-th and sunroof-examples should now work with the packages available on hackage (Thanks @andygill). Fixed the version in the commit 3a7c70bac3daef1370c905785fbc03990ababdd8.
@jimstutt can you double check if it also works for you?
Maybe some regression. I tried:
cabal-sandbox> cabal install kansas-comet sunroof-compiler sunroof-server sunroof-examples -j$ncpus -O2
==>
9 of 23] Compiling Language.Sunroof.Types ( Language/Sunroof/Types.hs, dist/dist-sandbox-f57edd4f/build/Language/Sunroof/Types.o )
Language/Sunroof/Types.hs:297:10:
Could not deduce (Sunroof r0)
arising from the ambiguity check for an instance declaration
from the context (SunroofArgument a, Sunroof r)
bound by an instance declaration:
(SunroofArgument a, Sunroof r) => IfB (JSContinuation a)
at Language/Sunroof/Types.hs:297:10-65
The type variable ‘r0’ is ambiguous
In the ambiguity check for:
forall a r.
(SunroofArgument a, Sunroof r) =>
IfB (JSContinuation a)
To defer the ambiguity check to use sites, enable AllowAmbiguousTypes
In the instance declaration for ‘IfB (JSContinuation a)’
which I presume is independent from:
onfiguring scotty-0.4.6...
Building scotty-0.4.6...
Preprocessing library scotty-0.4.6...
Web/Scotty/Route.hs:16:8:
Could not find module ‘Data.Conduit.Binary’
Perhaps you meant
Data.Conduit.List (from conduit-1.1.6)
Data.Conduit.Lift (from conduit-1.1.6)
Use -v to see a list of the files searched for.
Web/Scotty/Route.hs:17:8:
Could not find module ‘Data.Conduit.Lazy’
Perhaps you meant
Data.Conduit.List (from conduit-1.1.6)
Data.Conduit.Lift (from conduit-1.1.6)
Use -v to see a list of the files searched for.
Centos 6.5 ghc-7.8.2.x86_64 cabal-install-1.20.0.2 Cabal-1.20.0.1
So I tried instaling Scotty
$ cabal install scotty conduit sunroof-compiler sunroof-server sunroof-examples -j$ncpus --avoid-reinstalls
==>
Building wai-middleware-static-0.3.2...
Preprocessing library wai-middleware-static-0.3.2...
[1 of 1] Compiling Network.Wai.Middleware.Static ( Network/Wai/Middleware/Static.hs, dist/dist-sandbox-f57edd4f/build/Network/Wai/Middleware/Static.o )
Network/Wai/Middleware/Static.hs:122:39:
Not in scope: data constructor ‘ResponseFile’
Building sunroof-compiler-0.2...
Failed to install sunroof-compiler-0.2
Last 10 lines of the build log ( /home/jim/Sandbox/SunroofHack/.cabal-sandbox/logs/sunroof-compiler-0.2.log ):
bound by an instance declaration:
(SunroofArgument a, Sunroof r) => IfB (JSContinuation a)
at Language/Sunroof/Types.hs:297:10-65
The type variable ‘r0’ is ambiguous
In the ambiguity check for:
forall a r.
(SunroofArgument a, Sunroof r) =>
IfB (JSContinuation a)
To defer the ambiguity check to use sites, enable AllowAmbiguousTypes
In the instance declaration for ‘IfB (JSContinuation a)’
cabal: Error: some packages failed to install:
kansas-comet-0.2 depends on scotty-0.4.6 which failed to install.
scotty-0.4.6 failed during the building phase. The exception was:
ExitFailure 1
sunroof-compiler-0.2 failed during the building phase. The exception was:
ExitFailure 1
sunroof-examples-0.2 depends on sunroof-compiler-0.2 which failed to install.
sunroof-server-0.2 depends on sunroof-compiler-0.2 which failed to install.
wai-middleware-static-0.3.2 failed during the building phase. The exception
was:
ExitFailure 1
[jim@localhost SunroofHack]$ cabal install scotty conduit sunroof-compiler sunroof-server sunroof-examples -j$ncpus --avoid-reinstalls
The sandbox pkg list is:
k]$ ghc-pkg list --package-db .cabal-sandbox/x86_64-linux-ghc-7.8.2-packages.conf.d
.cabal-sandbox/x86_64-linux-ghc-7.8.2-packages.conf.d
Boolean-0.2.1
MemoTrie-0.6.2
NumInstances-1.3
QuickCheck-2.7.5
aeson-0.6.2.1
ansi-terminal-0.6.1.1
attoparsec-0.11.3.4
base64-bytestring-1.0.0.1
blaze-builder-0.3.3.2
byteorder-1.0.4
case-insensitive-1.2.0.0
conduit-1.1.6
data-default-0.5.3
data-default-class-0.0.1
data-default-instances-base-0.0.1
data-default-instances-containers-0.0.1
data-default-instances-dlist-0.0.1
data-default-instances-old-locale-0.0.1
data-reify-0.6
dlist-0.7.0.1
exceptions-0.6.1
extensible-exceptions-0.1.1.4
fast-logger-2.1.5
hashable-1.2.2.0
http-date-0.0.4
http-types-0.8.5
lifted-base-0.2.2.2
mmorph-1.0.3
monad-control-0.3.3.0
mtl-2.1.3.1
nats-0.2
network-2.5.0.0
operational-0.2.3.2
parallel-io-0.3.3
parsec-3.1.5
primitive-0.5.3.0
random-1.0.1.1
regex-base-0.93.2
regex-compat-0.95.1
regex-posix-0.95.2
resourcet-1.1.2.2
scientific-0.3.2.1
semigroups-0.15
shake-0.13.2
simple-sendfile-0.2.15
stm-2.4.3
streaming-commons-0.1.3
stringsearch-0.3.6.5
syb-0.4.2
tagged-0.7.2
text-0.11.3.1
tf-random-0.5
transformers-base-0.4.2
unix-compat-0.4.1.3
unix-time-0.3.0
unordered-containers-0.2.4.0
utf8-string-0.3.8
vault-0.3.0.3
vector-0.10.11.0
vector-space-0.8.7
void-0.6.1
wai-3.0.0.2
wai-extra-3.0.0.1
wai-logger-2.1.1
warp-3.0.0.3
word8-0.0.4
zlib-0.5.4.1
[jim@localhost SunroofHack]$
~~~~.
It looks like you need a more recent version of wai. We'll look into this, by changing the cabal file, I expect.
You've just reminded me that I had a git clone of wai-whatever. I'll try that.
On Tue, Jun 24, 2014 at 3:51 PM, Andy Gill notifications@github.com wrote:
It looks like you need a more recent version of wai. We'll look into this, by changing the cabal file, I expect.
— Reply to this email directly or view it on GitHub https://github.com/ku-fpg/sunroof-examples/issues/1#issuecomment-46981134 .
/kansas-comet/example/kansas-comet-example.cabal wai-middleware-static >= 0.5.0 && < 0.6 ./sunroof-compiler/sunroof-compiler.cabal ./sunroof-server/sunroof-server.cabal wai-middleware-static >= 0.6 && < 0.7,
On Tue, Jun 24, 2014 at 3:59 PM, Jim Stuttard jim.a.stuttard@gmail.com wrote:
You've just reminded me that I had a git clone of wai-whatever. I'll try that.
On Tue, Jun 24, 2014 at 3:51 PM, Andy Gill notifications@github.com wrote:
It looks like you need a more recent version of wai. We'll look into this, by changing the cabal file, I expect.
— Reply to this email directly or view it on GitHub https://github.com/ku-fpg/sunroof-examples/issues/1#issuecomment-46981134 .
FWIW, if you want to use wai/wai-extra/warp >= 3.0, you need Scotty >= 0.8 and wai-middleware-static >= 0.6
I'm just wondering why I don't get any version conflicts when installing.
Are you sure you are using kansas-comet-0.3.0 from cabal and the HEAD of the repo version of sunroof-server? I have not yet updated the hackage versions of the sunroof packages yet.
I do:
cabal-dev --force-reinstalls --reinstall install -p \
./sunroof-compiler \
./sunroof-server \
./sunroof-th \
./sunroof-examples \
#scotty-0.8.1 \
#text-0.11.3.1 \
#hashable-1.1.2.5 \
#mtl-2.1.2 \
#transformers-0.3.0.0 \
#random-1.0.1.1 \
#zlib-0.5.4.1 \
#vector-0.10.0.1 \
#primitive-0.5.0.1 \
Where I add the specialized package versions if I need to override globally installed packges in my sandbox. And that runs fine. All the sunroof packages are the current repository version.
So I have installed:
wai-3.0.0.1
wai-extra-3.0.0.1
wai-middleware-static-0.6.0
warp-3.0.0.3
scotty-0.8.1
kansas-comet-0.3.0
plus my local clones. But maybe I am misunderstanding the problem.
Hi Jan, You wrote:
The repository versions of sunroof-compiler, sunroof-server, sunroof-th and sunroof-examples should now work with the packages available on hackage (Thanks @andygill). Fixed the version in the commit 3a7c70b.
I misread this as you having committed upgrades to hackage. I thus understandably got these errors on trying to install the whole kit and caboodle from hackage as I see from:
Are you sure you are using kansas-comet-0.3.0 from cabal and the HEAD of the repo version of sunroof-server? I have not yet updated the hackage versions of the sunroof packages yet.
So the only real problem was just the clock example ;) I'll try the git HEAD packages in the next few days.
PS I don't think there are any overlapping deps with global packages but I will be told shortly.
I've never had this with github before:
[jim@localhost kansas-comet]$ git pull origin master From https://github.com/jbracker/kansas-comet
[jim@localhost kansas-comet]$ grep trans .cabal A transport-level remote JavaScript RESTful push mechanism. transformers == 0.3.,
jim@localhost kansas-comet]$ grep Ver *.cabal Version: 0.2.2
This is terrible. I'll do fresh clones for everything.
With fresh clones from github:
jim@localhost Sunroof]$ for i in find ./ -name '*.cabal'
; do echo $i ; grep Ver $i ; done
./sunroof-examples/sunroof-examples.cabal
Version: 0.2.1
./kansas-comet/kansas-comet.cabal
Version: 0.3.0
./kansas-comet/example/kansas-comet-example.cabal
Version: 0.3.0
./sunroof-compiler/sunroof-compiler.cabal
Version: 0.2.1
./sunroof-server/sunroof-server.cabal
Version: 0.2
[jim@localhost Sunroof]$ for i in find ./ -name '*.cabal'
; do echo $i ; grep trans $i ; done
./sunroof-examples/sunroof-examples.cabal
./kansas-comet/kansas-comet.cabal
A transport-level remote JavaScript RESTful push mechanism.
transformers >= 0.3 && < 0.5,
./kansas-comet/example/kansas-comet-example.cabal
transformers == 0.3.,
./sunroof-compiler/sunroof-compiler.cabal
transformers == 0.3.,
./sunroof-server/sunroof-server.cabal
transformers == 0.3.*,
With fresh clones everything now appears to install perfectly so I'll close the issue.
[jim@localhost Sunroof]$ gc-pkg list --package-db .cabal-sandbox/x86_64-linux-ghc-7.8.2-packages.conf.d
bash: gc-pkg: command not found
[jim@localhost Sunroof]$ ghc-pkg list --package-db .cabal-sandbox/x86_64-linux-ghc-7.8.2-packages.conf.d
.cabal-sandbox/x86_64-linux-ghc-7.8.2-packages.conf.d
Boolean-0.2.1
MemoTrie-0.6.2
NumInstances-1.3
QuickCheck-2.7.5
aeson-0.7.0.6
ansi-terminal-0.6.1.1
attoparsec-0.12.1.0
base64-bytestring-1.0.0.1
blaze-builder-0.3.3.2
byteorder-1.0.4
case-insensitive-1.2.0.0
conduit-1.1.6
data-default-0.5.3
data-default-class-0.0.1
data-default-instances-base-0.0.1
data-default-instances-containers-0.0.1
data-default-instances-dlist-0.0.1
data-default-instances-old-locale-0.0.1
data-reify-0.6
dlist-0.7.0.1
exceptions-0.6.1
extensible-exceptions-0.1.1.4
fast-logger-2.1.5
hashable-1.2.2.0
http-date-0.0.4
http-types-0.8.5
kansas-comet-0.3.0
lifted-base-0.2.3.0
mmorph-1.0.3
monad-control-0.3.3.0
mtl-2.1.3.1
nats-0.2
network-2.5.0.0
operational-0.2.3.2
parallel-io-0.3.3
parsec-3.1.5
primitive-0.5.3.0
random-1.0.1.1
regex-base-0.93.2
regex-compat-0.95.1
regex-posix-0.95.2
resourcet-1.1.2.2
scientific-0.3.2.1
scotty-0.8.1
semigroups-0.15.1
shake-0.13.2
simple-sendfile-0.2.15
stm-2.4.3
streaming-commons-0.1.3
stringsearch-0.3.6.5
sunroof-compiler-0.2.1
sunroof-server-0.2
syb-0.4.2
tagged-0.7.2
text-1.1.1.3
tf-random-0.5
transformers-base-0.4.2
unix-compat-0.4.1.3
unix-time-0.3.0
unordered-containers-0.2.4.0
utf8-string-0.3.8
vault-0.3.0.3
vector-0.10.11.0
vector-space-0.8.7
void-0.6.1
wai-3.0.0.2
wai-extra-3.0.0.1
wai-logger-2.1.1
wai-middleware-static-0.6.0
warp-3.0.0.3
word8-0.0.4
zlib-0.5.4.1
[jim@localhost Sunroof]$ ls -l .cabal-sandbox/bin
total 61516
-rwxr-xr-x. 1 jim jim 1371472 Jun 26 08:06 operational-TicTacToe
-rwxr-xr-x. 1 jim jim 5229016 Jun 26 08:21 shake
-rwxr-xr-x. 1 jim jim 11325176 Jun 26 08:31 sunroof-browser-info
-rwxr-xr-x. 1 jim jim 11421848 Jun 26 08:31 sunroof-canvas
-rwxr-xr-x. 1 jim jim 5513592 Jun 26 08:31 sunroof-clock
-rwxr-xr-x. 1 jim jim 11326520 Jun 26 08:31 sunroof-fib
-rwxr-xr-x. 1 jim jim 4603768 Jun 26 08:31 sunroof-inplace-shaker
-rwxr-xr-x. 1 jim jim 12188952 Jun 26 08:31 sunroof-unit
I will upload a new version of sunroof-server and sunroof-examples sometime this weekend.
Great :).
On Thu, Jun 26, 2014 at 10:56 PM, Jan Bracker notifications@github.com wrote:
I will upload a new version of sunroof-server and sunroof-examples sometime this weekend.
— Reply to this email directly or view it on GitHub https://github.com/ku-fpg/sunroof-examples/issues/1#issuecomment-47285420 .
Done. Have fun!
Sorry i haven't got round to testing the examples with the latest github packages. unfortunately sunroof-clock just draws a canvas rectangle. Chrome dev tools reports (I interspersed the js code):
Uncaught SyntaxError: Unexpected token * main.js:31
var c18 = v2%5;
if(c18==0){
var c20 = v1*0.75;
var c21 = 0-c20;
v0.translate(c21,*);
Uncaught ReferenceError: main is not defined index.html:19
stuffed a 10 in v0.translate (c21,10)
==>
10 Uncaught TypeError: undefined is not a function /home/jim/Sandbox/Sunroof/sunroof-examples/examples/clock/main.js:97
var c88 = (v78.rotate(c88))(c89,v85);
27 Uncaught TypeError: undefined is not a function main.js:9
var c8 = v2%5;
ghc-7.8.2 cabal-install cabal-install version 1.20.0.3 using version 1.20.0.2 of the Cabal library Centos--6.5
.cabal-sandbox/x86_64-linux-ghc-7.8.2-packages.conf.d Boolean-0.2.1 Chart-sunroof-0.1 JuicyPixels-3.1.5.2 MemoTrie-0.6.2 MonadRandom-0.1.13 NumInstances-1.3 QuickCheck-2.7.6 active-0.1.0.16 aeson-0.7.0.6 ansi-terminal-0.6.1.1 ansi-wl-pprint-0.6.7.1 attoparsec-0.12.1.1 auto-update-0.1.1.0 base64-bytestring-1.0.0.1 bifunctors-4.1.1.1 blank-canvas-0.4.0.1 blaze-builder-0.3.3.2 blaze-markup-0.6.1.0 blaze-svg-0.3.4 byteorder-1.0.4 case-insensitive-1.2.0.0 circle-packing-0.1.0.3 cmdargs-0.10.9 colour-2.3.3 comonad-4.2.2 conduit-1.1.7 contravariant-0.6.1.1 data-default-0.5.3 data-default-class-0.0.1 data-default-instances-base-0.0.1 data-default-instances-containers-0.0.1 data-default-instances-dlist-0.0.1 data-default-instances-old-locale-0.0.1 data-reify-0.6 diagrams-canvas-0.2 diagrams-core-1.2 diagrams-lib-1.2 diagrams-svg-1.1 distributive-0.4.4 dlist-0.7.1 dual-tree-0.2.0.4 easy-file-0.2.0 exceptions-0.6.1 extensible-exceptions-0.1.1.4 fast-logger-2.2.0 fingertree-0.1.0.0 force-layout-0.3.0.5 free-4.9 groups-0.4.0.0 hashable-1.2.2.0 http-date-0.0.4 http-types-0.8.5 intervals-0.7 kansas-comet-0.3.0 lens-4.2 lens-family-1.1.0 lens-family-core-1.1.0 lensref-0.3 lifted-base-0.2.3.0 mmorph-1.0.3 monad-control-0.3.3.0 monoid-extras-0.3.3.4 mtl-2.2.1 nats-0.2 network-2.5.0.0 newtype-0.2 operational-0.2.3.2 optparse-applicative-0.9.1.1 parallel-3.2.0.4 parallel-io-0.3.3 parsec-3.1.5 prelude-extras-0.4 primitive-0.5.3.0 profunctors-4.2.0.1 random-1.0.1.1 reflection-1.5.1 regex-base-0.93.2 regex-compat-0.95.1 regex-posix-0.95.2 resourcet-1.1.2.3 safe-0.3.7 scientific-0.3.3.0 scotty-0.8.2 semigroupoids-4.0.4 semigroups-0.15.2 shake-0.13.2 simple-sendfile-0.2.15 split-0.2.2 statestack-0.2.0.3 stm-2.4.3 streaming-commons-0.1.4.1 stringsearch-0.3.6.5 sunroof-compiler-0.2.1 sunroof-server-0.2.1 syb-0.4.2 tagged-0.7.2 text-1.1.1.3 tf-random-0.5 transformers-0.4.1.0 transformers-base-0.4.2 transformers-compat-0.3.3.4 unix-compat-0.4.1.3 unix-time-0.3.3 unordered-containers-0.2.5.0 utf8-string-0.3.8 vault-0.3.0.3 vector-0.10.11.0 vector-space-0.8.7 vector-space-points-0.2 void-0.6.1 wai-3.0.1.1 wai-extra-3.0.1.2 wai-logger-2.2.1 wai-middleware-static-0.6.0 warp-3.0.0.6 word8-0.1.1 zlib-0.5.4.1
Yes., the compiler is broken (somewhere).
You are using GHC 7.8. There seem to be some issue with changes from 7.6 to 7.8:
Could you see if your bug goes away with the fixes I commited?
Apologies for the delay in replying. I only just got a notification. Sadly a clean sandbox build of sunroof examples produces the same empty html box and javascript error from the clock examples main.js.
[jim@localhost clock]$ node main.js
/home/jim/Sandbox/Sunroof/sunroof-examples/examples/clock/main.js:31 v0.translate(c21,); ^ SyntaxError: Unexpected token at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:902:3
The thing is, with my local installation I can not reproduce the problem. It does seem to have something to do with a change from 7.6 to 7.8.
On 12/14/2014 10:52 AM, Jan Bracker wrote:
The thing is, with my local installation I can not reproduce the problem. It does seem to have something to do with a change from 7.6 to 7.8.
— Reply to this email directly or view it on GitHub https://github.com/ku-fpg/sunroof-examples/issues/1#issuecomment-66909277.
Do you mean clock works for you with ghc-7.8.2? The only clue I can see is what the Chrome debugger says. If there's any more info I could supply please let me know.
I have GHC 7.6.3 installed and there it works. I don't know if it works for any version of 7.8+.
On 12/14/2014 01:23 PM, Jan Bracker wrote:
I have GHC 7.6.3 installed and there is works. I don't know if it works for any version of 7.8.
Perhaps you could try 7.8.2 or even 7.8.3 on fpcomplete.com, travis or somewhere if you have some reason not to use the current stable (7.8.2) ghc version locally.
— Reply to this email directly or view it on GitHub https://github.com/ku-fpg/sunroof-examples/issues/1#issuecomment-66913103.
I see this problem as well. It just needed debugged; something got knocked somewhere. I should have more time next week to dig into this.
I am currently using GHC from the package db in ubuntu. Have not come around to install a newer version separatly.
For what it's worth, I can run all of the examples successfully on GHC 7.8.3 using the HEAD versions of sunroof-compiler
, sunroof-server
, and sunroof-examples
. I haven't tried installing everything with the Hackage versions yet to see if I can reproduce the errors.
So it does not seem to be a GHC issue then?
@jimstutt: Did you try using HEAD?
I'm sure you must know that changes to the compiler have put various canvas-related functions setTextAlign, setStrokeStyle etc out of scope. Any chance of a upgrade? I don't know what the replacements are for the parameterised functions. Cheers