Author Topic: gradle project: test fails  (Read 1188 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2097
  • Hero Points: 189
  • Text
gradle project: test fails
« on: October 02, 2018, 06:50:03 pm »
I imported a gradle project, then I did build -> Unit Test -> Debug.
I get this slick stack
 This property or method is not allowed on this object
gradle.ex 13237 gradle_debug_unittest()   p_window_id: 316   p_object: OI_FORM   p_name:
unittest.ex 15838 project_unittest_debug()   p_window_id: 20   p_object: OI_EDITOR   p_name:


patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1397
  • Hero Points: 128
Re: gradle project: test fails
« Reply #1 on: October 02, 2018, 07:19:23 pm »
I think I see the problem, I'm referencing p_buf_name, and there probably isn't a buffer open.  Which should mean it will work for you if you have a buffer open.  I'll fix that for the next drop.  Thanks for the report.

jporkkahtc

  • Senior Community Member
  • Posts: 2097
  • Hero Points: 189
  • Text
Re: gradle project: test fails
« Reply #2 on: October 02, 2018, 07:53:36 pm »
I definitely have a bunch of buffers open.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1397
  • Hero Points: 128
Re: gradle project: test fails
« Reply #3 on: October 02, 2018, 07:57:57 pm »
You're right.  When executed from a menu, it's going to stack not matter whether there are buffers or not.  This will be fixed for the next drop.

jporkkahtc

  • Senior Community Member
  • Posts: 2097
  • Hero Points: 189
  • Text
Re: gradle project: test fails
« Reply #4 on: October 08, 2018, 07:44:42 pm »
I also found that a Gradle project does not include all the files I'd like it to.
I know I can add more once the project is created, but it would seem reasonable to include
gradle.build
settings.gradle
*.XML

Maybe better to include everything but build artifacts, but I don't know how you figure that out -- unless you rely on parsing .gitignore.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1397
  • Hero Points: 128
Re: gradle project: test fails
« Reply #5 on: October 08, 2018, 07:51:20 pm »
I'm a little surprised we're not adding the gradle files, we should be adding those at the very least.  I'll take a look at it.