LJ
LJ
@hawkticehurst > If I recall correctly, this behavior might actually be my fault/suggestion (😅) because very very early on during the private preview of the toolkit there were a bunch...
@ThePrez Looks like this is throwing a null pointer exception: ```ts await JobManager.runSQL( `CALL QSYS2.GENERATE_SQL(?, ?, ?, CREATE_OR_REPLACE_OPTION => '1', PRIVILEGES_OPTION => '0', DATABASE_SOURCE_FILE_NAME => '*STMF', SOURCE_STREAM_FILE => ?);`, {...
This is currently using Server Component 1.2.0...going to try 1.4.5 next. ``` java.lang.NullPointerException at com.github.theprez.codefori.requests.PreparedExecute.go(PreparedExecute.java:63) at com.github.theprez.codefori.requests.PrepareSql.go(PrepareSql.java:70) at com.github.theprez.codefori.ClientRequest.run(ClientRequest.java:80) at java.lang.Thread.run(Thread.java:825) ```
Using 1.4.5 {"id":"query7","type":"prepare_sql_execute","sql":"CALL QSYS2.GENERATE_SQL(?, ?, ?, CREATE_OR_REPLACE_OPTION => '1', PRIVILEGES_OPTION => '0', DATABASE_SOURCE_FILE_NAME => '*STMF', SOURCE_STREAM_FILE => '/tmp/vscodetemp-O_4NJsijOe')","rows":2147483647,"parameters":["MANZANMSG","LIAMA","TABLE"]} [ERR]: 2023-12-04.22.30.51.905 java.lang.NullPointerException at com.github.theprez.codefori.requests.PreparedExecute.go(PreparedExecute.java:63) at com.github.theprez.codefori.requests.PrepareSql.go(PrepareSql.java:70) at com.github.theprez.codefori.ClientRequest.run(ClientRequest.java:81) at java.lang.Thread.run(Thread.java:825)
This still works in 1.4.5: {"id":"query4","type":"prepare_sql_execute","sql":"CALL QSYS2.GENERATE_SQL(?, ?, ?, CREATE_OR_REPLACE_OPTION => '1', PRIVILEGES_OPTION => '0')","rows":2147483647,"parameters":["MANZANPAL","LIAMA","TABLE"]} I should note.. this is oss73dev. Edit: tested on oss74dev with the same results.
Inherit rule should support pulling from URI
https://github.com/halcyon-tech/vscode-rpgle/blob/main/extension/server/src/providers/linter/index.ts#L171
Thanks @JDubbTX - I will take a look this week.
> But if my file is open at the same time, it does not reload it with the new, corrected name. This is probably referring to the tab name?
Just to confirm, you pulled this out of an RPG 3 program? Is there any chance you can share more source than that? Perhaps a larger example with more code...