GavriYashar / Matlab-Editor-Plugin

Extends features for the matlab editor, Bookmarks, FileStructure, Clipboard stack
MIT License
74 stars 12 forks source link

Start.setReplacementPath only works in Windows #126

Closed MartinLechner-TD closed 6 years ago

MartinLechner-TD commented 6 years ago

In Unix the created File objects fileRep and fileVar are never available due to the hard coded path seperators. possible solution: replace line 98 and 99 by File fileRep = new File(Install.getJarFile().getParentFile().getPath(),"Replacements");`

File fileVar = new File(fileRep, "Variables");

Check also the complete source code for the character \ (escaped Windows path separator) maybe other locations are also affected.

MartinLechner-TD commented 6 years ago

In all relative path string always / should be used as path separator. This path seperator works in Unix and Windows. The backslash \ will not be converted to a slash in Unix but the / will be converted to a \ in Windows.