codefori / vscode-rpgle

RPGLE language tools for VS Code
MIT License
39 stars 18 forks source link

/INCLUDE Path in Local Development Case Sensitivity Inconsistent #307

Open SJLennon opened 5 months ago

SJLennon commented 5 months ago

Save us time! Click 'Report an Issue' from the Help and Support panel inside of VS Code after you have connected to a system. Would like to, but deliberately not connected to a system to ensure no side effects. Version: 1.87.1 (user setup) Commit: 1e790d77f81672c49be070e04474901747115651 Date: 2024-03-06T00:21:36.258Z Electron: 27.3.2 ElectronBuildId: 26836302 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Windows_NT x64 10.0.19045

Code for IBM i v2.8.0

Describe the bug The documentation says that for local development in /COPY and /INCLUDE statements the path is case sensitive. (https://codefori.github.io/docs/extensions/rpgle/faq/). I missed this when converting some code to a local repository and while tidying up I noticed what appear to be an inconsistency.

For demonstration purposes, I have three /INCLUDE statements, thus, all for the same file:

1) /INCLUDE ../Copy_Mbrs/aidbytes.rpgle
2) /INCLUDE ../Copy_Mbrs/AIDBYTES.RPGLE
3) /INCLUDE ../COPY_MBRS/AIDBYTES.RPGLE

My directory structure looks like this: image image

Hovering over 1) shows as not found because the case does not match: image Hovering over 2) correctly shows as found because the case matches: image Hovering over 3) also shows as found, yet the case does not match: image

I intend to match the case. But I find this inconsistency curious.

SJLennon commented 5 months ago

While doing more tidy up on other code, it seems like the problem might be with caching of the path.