You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "JeremyYao (via GitHub)" <gi...@apache.org> on 2025/05/05 20:08:06 UTC
[PR] Address Unable to Execute TDML Test Case on Ubuntu [daffodil-vscode]
JeremyYao opened a new pull request, #1245:
URL: https://github.com/apache/daffodil-vscode/pull/1245
Closes #1232
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Address Unable to Execute TDML Test Case on Ubuntu [daffodil-vscode]
Posted by "scholarsmate (via GitHub)" <gi...@apache.org>.
scholarsmate merged PR #1245:
URL: https://github.com/apache/daffodil-vscode/pull/1245
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Address Unable to Execute TDML Test Case on Ubuntu [daffodil-vscode]
Posted by "JeremyYao (via GitHub)" <gi...@apache.org>.
JeremyYao commented on code in PR #1245:
URL: https://github.com/apache/daffodil-vscode/pull/1245#discussion_r2075815079
##########
debugger/src/main/scala/org.apache.daffodil.tdml/TDML.scala:
##########
@@ -250,13 +250,7 @@ object TDML {
// Returns a tuple containing the following (Path to DFDL Schema, Path to Data File)
// All paths returned could be either relative or absolute - it depends on what exists in the TDML file
def execute(tdmlName: String, tdmlDescription: String, tdmlPath: String): Option[(Path, Path)] = {
-
- // Correct basepath for Windows OS
- var basePath = ""
- if (System.getProperty("os.name").toLowerCase.startsWith("win") == true)
- (
- basePath = Paths.get(tdmlPath).toAbsolutePath().getParent().toString()
- )
+ val basePath = Paths.get(tdmlPath).toAbsolutePath().getParent().toString()
Review Comment:
Tested on RHEL9 and seems to be working.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Address Unable to Execute TDML Test Case on Ubuntu [daffodil-vscode]
Posted by "hdalsania (via GitHub)" <gi...@apache.org>.
hdalsania commented on code in PR #1245:
URL: https://github.com/apache/daffodil-vscode/pull/1245#discussion_r2075524448
##########
debugger/src/main/scala/org.apache.daffodil.tdml/TDML.scala:
##########
@@ -250,13 +250,7 @@ object TDML {
// Returns a tuple containing the following (Path to DFDL Schema, Path to Data File)
// All paths returned could be either relative or absolute - it depends on what exists in the TDML file
def execute(tdmlName: String, tdmlDescription: String, tdmlPath: String): Option[(Path, Path)] = {
-
- // Correct basepath for Windows OS
- var basePath = ""
- if (System.getProperty("os.name").toLowerCase.startsWith("win") == true)
- (
- basePath = Paths.get(tdmlPath).toAbsolutePath().getParent().toString()
- )
+ val basePath = Paths.get(tdmlPath).toAbsolutePath().getParent().toString()
Review Comment:
Have we tested this on RHEL based OSes along with Ubuntu?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org