Author Topic: RC1: Java execute [Ctrl-F5] strips quotes surrounding arguments  (Read 670 times)

Marcel

  • Senior Community Member
  • Posts: 218
  • Hero Points: 26
RC1: Java execute [Ctrl-F5] strips quotes surrounding arguments
« on: October 16, 2018, 02:03:22 pm »
As stated in the subject. My argument was "<>".  Debugging worked fine, but execute failed because it lost the quotes around <>. 
Sorry, I don't have a ready sample project for you.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1094
  • Hero Points: 100
Re: RC1: Java execute [Ctrl-F5] strips quotes surrounding arguments
« Reply #1 on: October 16, 2018, 02:45:50 pm »
What type of project?  If it's gradle, what version of Gradle?  And where are you setting the arguments?  In the Gradle Build options, or is this being run via "Debug -> Start with arguments..."?

My first suspicion was gradle 4.9 or above, since that uses the new feature for passing command line arguments, but that seems to work for me.


Marcel

  • Senior Community Member
  • Posts: 218
  • Hero Points: 26
Re: RC1: Java execute [Ctrl-F5] strips quotes surrounding arguments
« Reply #2 on: October 16, 2018, 03:06:26 pm »
No Gradle involved here, just a plain old Java project.  The arguments are set in Java Options -> JRE tab -> Arguments.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1094
  • Hero Points: 100
Re: RC1: Java execute [Ctrl-F5] strips quotes surrounding arguments
« Reply #3 on: October 16, 2018, 03:12:48 pm »
Reproduced.  I'll take a look at it.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1094
  • Hero Points: 100
Re: RC1: Java execute [Ctrl-F5] strips quotes surrounding arguments
« Reply #4 on: October 16, 2018, 03:18:35 pm »
Just to be clear, did you have double quotes around the <> in the JavaOptions -> JRE -> Arguments text box, or no double quotes?

Marcel

  • Senior Community Member
  • Posts: 218
  • Hero Points: 26
Re: RC1: Java execute [Ctrl-F5] strips quotes surrounding arguments
« Reply #5 on: October 16, 2018, 03:23:36 pm »
Double quotes
Code: [Select]
"<>"

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1094
  • Hero Points: 100
Re: RC1: Java execute [Ctrl-F5] strips quotes surrounding arguments
« Reply #6 on: October 16, 2018, 03:36:08 pm »
As a temporary workaround while I work on this, you can uncheck the "Build first" setting for the Execute tool of that project. 

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1094
  • Hero Points: 100
Re: RC1: Java execute [Ctrl-F5] strips quotes surrounding arguments
« Reply #7 on: October 17, 2018, 07:42:37 pm »
This is fixed in RC2.