dseight / vscode-disasexpl

Disassembly Explorer for VS Code
MIT License
48 stars 11 forks source link

Failed to replace `relativeFileDirname` macro in `disasexpl.associations` #16

Closed MichaelSuen-thePointer closed 3 years ago

MichaelSuen-thePointer commented 3 years ago

I wanted to make a source-to-assembly mapping like the following:

"**/*.c": "${workspaceFolder}/build/${relativeFileDirname}/${fileBasenameNoExtension}.s"

but when calling Disassembly Explorer: Show, it shows error message like this:

Failed to load file '/home/my_name/my_project/build/${relativeFileDirname}/my_source.s'

It seems failed to replace such macro

danielspaniol commented 3 years ago

This extension uses relativeFileDir instead of relativeFileDirname. So the setting

"**/*.c": "${workspaceFolder}/build/${relativeFileDir}/${fileBasenameNoExtension}.s"

works for me.

Still, I think it would be better if relativeFileDirname was supported.

dseight commented 3 years ago

Fixed with f6b1829083b134bf224cf80d90a354c0d4fe200d (released in version 0.2.1).