AndyObtiva / glimmer

DSL Framework consisting of a DSL Engine and a Data-Binding Library used in Glimmer DSL for SWT (JRuby Desktop Development GUI Framework), Glimmer DSL for Opal (Pure Ruby Web GUI), Glimmer DSL for LibUI (Prerequisite-Free Ruby Desktop Development GUI Library), Glimmer DSL for Tk (Ruby Tk Desktop Development GUI Library), Glimmer DSL for GTK (Ruby-GNOME Desktop Development GUI Library), Glimmer DSL for XML (& HTML), and Glimmer DSL for CSS
MIT License
569 stars 17 forks source link

Glimmer-dsl-swt model_binding.rb Symbol to string line 231 #50

Open clberry7107 opened 1 week ago

clberry7107 commented 1 week ago

Desktop (please complete the following information and make sure it matches Glimmer Pre-Requisites before reporting an issue):

Describe the issue While attempting to run 'glimmer samples' an error of 'no + method for Symbol popped up for file model_binding.rb line 231 I opened the file and added a changed the line from: self.property_name + "_options" to: self.property_name.to_s + "_options"

This fixed the issue and allowed the sample app to run. Not sure if this is an issue for any other setup, but it fixed mine.

Error - Symbol has no plus method

Happy coding! CB

AndyObtiva commented 4 days ago

Thank you for the issue report.

I recently ran the glimmer samples on my Mac ARM64, and it worked with no problem. The last time I ran it on Linux a while ago, it worked too. Your version of JRuby is a bit newer than the recommended one (JRuby 9.4.5.0) in the prerequisites. Newer versions often work with no problems, so that might not be the cause of the issue, but it's interesting to note.

Would you mind sharing the full stack trace that you got before adding the fix? I am curious to know what code triggered this issue in ModelBinding.