Visual Studio Code extension to convert fixed format RPGLE to free format.
This is based on rpgfreeweb.
You can find the extension in the VS Code Marketplace!
- clone repo
npm i
npm run test
to run the converter test suite- 'Run Extension' from VS Code debugger for the extension.
Two options:
- Highlight all or part of your source code and then right-click and use the "Convert to Free Format" option from the menu. A couple of caveats:
- Your highlight should start in position 1 of the line or that line will not convert.
- Your highlight should end after the end of line for the last line to be converted.
- Use F1 and choose "Covert to Free Format" to convert the entire source.
See Run from Local, and make sure you have the following settings for VSCode:
{
"files.trimTrailingWhitespace": true
}
Error: error:0308010C:digital envelope routines::unsupported
The error message would look like:Which is related to recent NodeJS versions and OpenSSL. It can be fixed by modifyingnode:internal/crypto/hash:71 this[kHandle] = new _Hash(algorithm, xofLen); ^ Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:71:19) at Object.createHash (node:crypto:140:10) …
package.json
:"scripts": { … "webpack": "NODE_OPTIONS=--openssl-legacy-provider webpack --mode development", "webpack-dev": "NODE_OPTIONS=--openssl-legacy-provider webpack --mode development --watch", … }