Comments (13)
@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.
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.
Fixed in byteit101/JRubyFX-FXMLLoader@5203817
from jrubyfx.
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.
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.
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.
@amiracam mind If we toss your fxml example in the samples?
from jrubyfx.
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.
Well I just want it to test FXML parsing :-)
from jrubyfx.
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.
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.
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.
Its not secret, I already pasted the urls to the diffs, but I guess I'll explain it also:
- 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!"
- Second error was about fxml references (aka <Font fx:id="x1" ... /> ... font="$x1") and I had used
@namespace
instead ofparentLoader.namespace
by accident and the Expression class was expecting a different java class so I just did it myself along with some debug spew - 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)
- jrubyfx sensitive to number of spaces in fxml HOT 2
- Enhancement: Provide Ruby binding impls HOT 1
- Setting TableView items doesn't seem to work HOT 4
- Jar classpath issue on windows HOT 1
- jarify with fxml: no .jrubyfx_cache in the jarfile HOT 1
- jarify with fxml: cannot access the fxml files
- jarify with fxml: require_relative doesn't work from inside a jarfile
- jrubfx-jarify compiled jar does not laucnch HOT 5
- cannot run the hello world app HOT 2
- gem install jrubyfx gem not found HOT 1
- Permission denied for 'jrubyfx_cache' HOT 2
- Need more documentation for controller functions HOT 1
- jrubyfx não encaminhando HOT 2
- Is this project active ? HOT 3
- Path to jfxrt.jar loading issue with 1.8.0_202-ea-b03 HOT 1
- Would it be possible to add a screenshot-example to the main README here? HOT 1
- Use javafx 17 modules HOT 3
- Warning: SCENE3D? HOT 1
- More examples perhaps? TextArea specifically
- Classic OOP style? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jrubyfx.