Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Failed to run the flapjax compiler on my machine
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Wei Hu  
View profile  
 More options May 12, 3:28 am
From: Wei Hu <wei....@gmail.com>
Date: Tue, 12 May 2009 00:28:46 -0700 (PDT)
Local: Tues, May 12 2009 3:28 am
Subject: Failed to run the flapjax compiler on my machine
I tried to run fxc on the Catch Up demo, and got this error:

fxc: src/Flapjax/HtmlEmbedding.hs:25:9-22: No instance nor default
method for class operation BrownPLT.Html.Syntax.prettyPrintScript

What's going wrong here? Thanks.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wei Hu  
View profile  
 More options May 12, 3:32 am
From: Wei Hu <wei....@gmail.com>
Date: Tue, 12 May 2009 00:32:30 -0700 (PDT)
Local: Tues, May 12 2009 3:32 am
Subject: Re: Failed to run the flapjax compiler on my machine
Did I use the wrong version of WebBits library?

On May 12, 3:28 am, Wei Hu <wei....@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Artyom Shalkhakov  
View profile  
 More options May 12, 5:38 am
From: Artyom Shalkhakov <artyom.shalkha...@gmail.com>
Date: Tue, 12 May 2009 15:38:06 +0600
Local: Tues, May 12 2009 5:38 am
Subject: Re: [Flapjax: 405] Failed to run the flapjax compiler on my machine
Hi

2009/5/12 Wei Hu <wei....@gmail.com>:

> I tried to run fxc on the Catch Up demo, and got this error:

> fxc: src/Flapjax/HtmlEmbedding.hs:25:9-22: No instance nor default
> method for class operation BrownPLT.Html.Syntax.prettyPrintScript

It looks like a compile-time error. What compiler and environment do
you use?

You can use the lovely "cabal install" command to spare yourself the
effort; works flawlessly fine here on Arch.

Cheers,
Artyom Shalkhakov.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wei Hu  
View profile  
 More options May 12, 11:01 am
From: Wei Hu <wei....@gmail.com>
Date: Tue, 12 May 2009 08:01:40 -0700 (PDT)
Local: Tues, May 12 2009 11:01 am
Subject: Re: Failed to run the flapjax compiler on my machine

On May 12, 5:38 am, Artyom Shalkhakov <artyom.shalkha...@gmail.com>
wrote:

I'm using ghc-6.10.1 on Debian. I did mean to "cabal install" flapjax,
but it's not on Hackage yet. So what I did was git clone flapjax, cd
compiler, and ran "cabal install" from that directory. There was a
warning while compiling Flapjax.HtmlEmbedding:

src/Flapjax/HtmlEmbedding.hs:25:9:
    Warning: No explicit method nor default method for
`BrownPLT.Html.Syntax.prettyPrintScript'
    In the instance declaration for `Script Flapjax'

I'm wondering if I ran fxc the wrong way. "fxc --help" didn't give
much helpful information.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Artyom Shalkhakov  
View profile  
 More options May 12, 12:58 pm
From: Artyom Shalkhakov <artyom.shalkha...@gmail.com>
Date: Tue, 12 May 2009 22:58:07 +0600
Local: Tues, May 12 2009 12:58 pm
Subject: Re: [Flapjax: 408] Re: Failed to run the flapjax compiler on my machine
2009/5/12 Wei Hu <wei....@gmail.com>:

> I'm using ghc-6.10.1 on Debian. I did mean to "cabal install" flapjax,
> but it's not on Hackage yet.

Oops, I meant WebBits when I said about Flapjax compiler, sorry.

> So what I did was git clone flapjax, cd
> compiler, and ran "cabal install" from that directory. There was a
> warning while compiling Flapjax.HtmlEmbedding:

> src/Flapjax/HtmlEmbedding.hs:25:9:
>    Warning: No explicit method nor default method for
> `BrownPLT.Html.Syntax.prettyPrintScript'
>    In the instance declaration for `Script Flapjax'

This warning says what it says. :) I suppose there's nothing wrong
with unimplemented class method if it's not used anywhere (which
seems to be the case).

Cheers,
Artyom Shalkhakov.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wei Hu  
View profile  
 More options May 12, 1:01 pm
From: Wei Hu <wei....@gmail.com>
Date: Tue, 12 May 2009 10:01:49 -0700 (PDT)
Local: Tues, May 12 2009 1:01 pm
Subject: Re: Failed to run the flapjax compiler on my machine
Then why am I running into this error at run-time?

On May 12, 12:58 pm, Artyom Shalkhakov <artyom.shalkha...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjun Guha  
View profile  
 More options May 12, 1:10 pm
From: Arjun Guha <arjun.g...@gmail.com>
Date: Tue, 12 May 2009 13:10:15 -0400
Local: Tues, May 12 2009 1:10 pm
Subject: Re: [Flapjax: 410] Re: Failed to run the flapjax compiler on my machine
That is definitely a compile-time warning.  My runtime messages are
not nearly as descriptive.

While WebBits is on Hackage, the Flapjax compiler itself is not.  I
suppose I might as well put it on Hackage.

Arjun


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjun Guha  
View profile  
 More options May 12, 1:20 pm
From: Arjun Guha <arjun.g...@gmail.com>
Date: Tue, 12 May 2009 13:20:45 -0400
Local: Tues, May 12 2009 1:20 pm
Subject: Re: [Flapjax: 410] Re: Failed to run the flapjax compiler on my machine
Since you're using Debian, this is probably the easiest way to use the compiler:

http://www.cs.brown.edu/~arjun/tmp/fxc_2.0_i386.deb

It installs to /usr/local.

Let me know how it goes.

Arjun


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wei Hu  
View profile  
 More options May 12, 1:37 pm
From: Wei Hu <wei....@gmail.com>
Date: Tue, 12 May 2009 10:37:02 -0700 (PDT)
Local: Tues, May 12 2009 1:37 pm
Subject: Re: Failed to run the flapjax compiler on my machine
I meant that was an error when *running* the fxc compiler to *compile*
a .fx file.

I'm new to flapjax, so it could well be that I didn't give fxc the
right command options, or that fxc was looking for some files but
failed.

I simply copy-pasted the Catch Up demo into a .fx file, and ran fxc on
it, which gave this error:

fxc: src/Flapjax/HtmlEmbedding.hs:25:9-22: No instance nor default
method for class operation BrownPLT.Html.Syntax.prettyPrintScript

On May 12, 1:10 pm, Arjun Guha <arjun.g...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjun Guha  
View profile  
 More options May 12, 9:21 pm
From: Arjun Guha <arjun.g...@gmail.com>
Date: Tue, 12 May 2009 21:21:37 -0400
Local: Tues, May 12 2009 9:21 pm
Subject: Re: [Flapjax: 413] Re: Failed to run the flapjax compiler on my machine
You're right. That's a bug I introduced during some overly aggressive
re-factoring.  Lesson learnt: don't re-factor.

I've pushed an update to github.  If you pull and recompile, it should
work just fine.

Arjun


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google