JeremyYao opened a new pull request, #1277:
URL: https://github.com/apache/daffodil-vscode/pull/1277

   …e to handle folder names w/ spaces
   
   Closes #1075
   
   ### Approach to Testing
   
   sampleWorkspace: 
[sampleWorkspace.zip](https://github.com/user-attachments/files/20490547/sampleWorkspace.zip)
   
   #### Verifying Functionality While Debugging the Extension 
   
   1. Clone the jy/1075 branch onto your machine where a space exists in the 
path. Example: `C:\Users\jeremy.yao\repos\space test\daffodil-vscode-ctc>`
   2. Copy the sampleWorkspace contents into the same folder where the is a 
space in the path. Example: `C:\Users\jeremy.yao\repos\space 
test\sampleWorkspace`
   3. Debug the extension as normal 
   
![image](https://github.com/user-attachments/assets/07952461-364a-4fcf-92ca-c097615f66b2)
   
   4. Run the `jpeg` launch.json configuration and verify that debugging went 
as expected. 
   
![image](https://github.com/user-attachments/assets/600c6dc4-4762-442e-a3d4-dc148bff438f)
   
   5. You may want to run `jpeg` again but also have the following be set to 
true in launch.json
   
   ```JSON
               "openDataEditor": true,
               "openInfosetView": true,
               "openInfosetDiffView": true,
   ```
   
   6. Verify the data editor and the two infoset views open up. 
   7. As a regression test, perform steps 1 - 6, but reclone the branch and the 
sampleWorkspace folder into a path without any spaces. Example: 
`C:\Users\jeremy.yao\repos`
   
   #### Verifying Functionality with Packaged Extension 
   
   1. Package the extension via `yarn package` and install it into VSCode
   2. Copy the sampleWorkspace contents into a folder where the is a space in 
the path. Example: `C:\Users\jeremy.yao\repos\space test\sampleWorkspace`
   3. Run the `jpeg` launch.json configuration and verify that debugging went 
as expected. 
   
![image](https://github.com/user-attachments/assets/600c6dc4-4762-442e-a3d4-dc148bff438f)
   
   4. You may want to run `jpeg` again but also have the following be set to 
true in launch.json
   
   ```JSON
               "openDataEditor": true,
               "openInfosetView": true,
               "openInfosetDiffView": true,
   ```
   
   5. Verify the data editor and the two infoset views open up. 
   
   


-- 
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-unsubscr...@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to