Giter Club home page Giter Club logo

Comments (13)

edubkendo avatar edubkendo commented on July 24, 2024

@amiracam It looks like your code got cut off or otherwise didnt process correctly. A couple hints, for future issues. First, you can use Github Flavored Markdown in issues and comments, which will provide syntax highlighting for code as well as visually set it off from the rest of the text. I don't think its specifically aware of fxml yet, but you can certainly label it as xml. Second, for larger error output and larger blocks of code such as an entire file, it's often a good idea to create a Github Gist and just link to that from the issue or comment (I just started doing this more often very recently myself, after first filing an issue with a very, very large error message). For files, some text editors have plugins which will submit the gist for you automatically, like this one for Sublime Text: https://github.com/bgreenlee/sublime-github

from jrubyfx.

amiracam avatar amiracam commented on July 24, 2024

ah yes, I see that the fxml got cut off, I will look into the Github Gist and follow up on this thread with that info, thanks for the feedback

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

Fixed in byteit101/JRubyFX-FXMLLoader@5203817

from jrubyfx.

amiracam avatar amiracam commented on July 24, 2024

well I found out how to turn debugging on :)

Here;s the culprit:

coercing...
!! Non-normal RUBY coerce (0.22937625754527163, [D) ("0.22937625754527163", [String, class [D])
Exception running Application:
#<RuntimeError: oh no!>

apparently the stack is too long so I will have to GIST but Im guessing the line above is telling ?

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

yes, I should have fixed that in fxml master with byteit101/JRubyFX-FXMLLoader@4f298a9

git clone that repo and then rake gem and then gem install pkg/something.gem

from jrubyfx.

amiracam avatar amiracam commented on July 24, 2024

right and thanks, figured out as much , with IDEA I actually have to setup the gem server and specify in the bundler gemfile one of the sources as localhost:8808, after creating the new gem of course , I also changed the versions just to make sure I didn't get into any conflicts , anyhow don't mean to digress on IDEA quirks. The app starts fine, I now need to hook some callbacks and see if those work out.

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

@amiracam mind If we toss your fxml example in the samples?

from jrubyfx.

amiracam avatar amiracam commented on July 24, 2024

No. not at all but let's finish it :) , the basic app is just a schema browser which I will use as testing UI for a larger project where we are porting away from Oracle Stored Procs to a generic rdms Jruby/Sinatra/Ruby Sequel service. We do "customized" table dumps so this will help with that testing i.e. with certain enhancements. Point being the generic schema browser-ish app I will gladly share and you can of course have the fxml that I have now but it yet does not do much yet. I have to hook up to connecting to Sinatra , downloading the tables for the targetted database, displaying schema in the top table based on the table list selection and retrieving / displaying partial set of records in the bottom table based on a button click event.

So do you want the fxml and the the app/ controller rb files now ? or do you want to wait until this is fleshed out better ?

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

Well I just want it to test FXML parsing :-)

from jrubyfx.

amiracam avatar amiracam commented on July 24, 2024

well sure then, just that it took me 5 minutes to create with Scene builder :), so not that I'm saving you all a ton of time, how do I provide it to you ?

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

I have the FXML file as you pasted it in jruby-users which is what I used to debug and test. I was just asking if its ok if I toss it in the git repo so I don't break it again accidentally 😄

from jrubyfx.

amiracam avatar amiracam commented on July 24, 2024

ah right, that did go in fine at the user's group but went only partially
at github, yes of course. Do you mind sharing what exactly broke ? I do
want to get educated i.e. jrubyfx might be a strategic direction for us vs
Apache Flex

On Wed, May 8, 2013 at 10:06 PM, Patrick Plenefisch <
[email protected]> wrote:

I have the FXML file as you pasted it in jruby-users which is what I used
to debug and test. I was just asking if its ok if I toss it in the git repo
so I don't break it again accidentally [image: 😄]


Reply to this email directly or view it on GitHubhttps://github.com//issues/48#issuecomment-17645541
.

Charles A. Monteiro
www.monteirosfusion.com
sent from the road

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

Its not secret, I already pasted the urls to the diffs, but I guess I'll explain it also:

  1. First error (aka the one you reported) was because I didn't have a string => double[] converter since dividerPositions is a double[] and FXML is a large string, so I just added a string=> double[] converter and better error message than "oh no!"
  2. Second error was about fxml references (aka <Font fx:id="x1" ... /> ... font="$x1") and I had used @namespace instead of parentLoader.namespace by accident and the Expression class was expecting a different java class so I just did it myself along with some debug spew
  3. Third error was a goof on my part for forgetting empty possibilities so I ixed my fix for #2 and got rid of a nearby warning

If you want more info, we are on #jruby on freenode on IRC

from jrubyfx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.