-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix compatibility issues with Julia version and with operationg system compativility #10
Conversation
- add DelimiteredFiles to depenbency list. This was removed from standard class library in version 1.9 and there for project did not work with the current version of Julia - upgrade deps to v. 2.0 format - change folder delimter to /. That should work in all operating system and not just with Windows
Slash generally works as directory separator in Windows everywhere except with commands that use it to indicate options, e.g., |
What was the version problem again? I did |
In addition, Julia Filesystem module has function normpath, that normalizes "Normalize a path, removing "." and ".." entries and changing "/" to the canonical path separator for the system." My understanding is that this is commonly called by other functions, but I have not checked this from the source code or by testing with a Windows machine. In this PR I have replaced Anyways, are you asking that I should test this PR also in Windows, or was this a general comment? If you wish, I can test this in Windows later if my old Windows laptop still works. I haven't used it for years.
I got quite a few errors and maybe some of them were same that you got. I'm not experienced with Julia, therefore I can only guess the reason why you didn't get the error relating the package. My guess is that it was already installed in you machine and you just updated the latest version of Julia instead of doing a fresh installation. Julia seems to have all modules in a folder that is probably the same in all Julia version. In MacOS the folder is ~/.julia/packages. So probably upgrading Julia version does not remove packages installed via older Julia version. I failed to save the all error. As it didn't work smoothly I googled, read Julia documentation and tried things until I managed to fix the problem. I forgot to save some log errors Iogs. You will get this the same error e.g. in this way after you have run activate command and instantiate command as instructed in the readme.
By the way, is there a reason to not use the latest version of Julia and to not upgrade the current obsolete deps format to version 2.0 (except that you have had neither time nor need to upgrade the version earlier)? I.e. how you are planning to manage Julia and deps versions in this project? If it is not possible to upgrade to latest version, it would be nice to mention in Readme what version of Julia you should use and warn about errors you will get if you use the latest version. |
I don't understand why anyone would write Where is I don't know any reason to postpone upgrading the manifest format, but as said, I don't know much about Julia package management. |
The changes proposed in this PR have been implemented one way or another. Thank you for your contribution. |
Issues
Issue 1: Code dedends on some old Julia version
If you download the latest version of Julia and try to use model as instructed in Readme, it just does not work.
At first DelimiteredFiles is not longer part of the standard library in version 1.9+ and you must install it as a separate dependency.
Secondly, manifest file forma is changed. The old format should be supported according to error message, but - well - it just didn't not work.
Issue 2: Folder separator issue
Second issue related folder delimiter (\ in windowd and / in Linux and MacOS). My understanding is that in Julia you can use forward slash (/) as folder separator also in Windows and it is automatically converted to backslash (). However, I have not tested if it works in this way in Windows.
Changes and solutions
Solution to issue 1
In this PR I have added DelimiteredFiles to dependency list (using REPL). This was removed from standard class library in version 1.9 and there for project did not work with the current version of Julia. I also upgrade deps to v. 2.0 format. It automatically set julia_version to 1.9.4. The latest LTS is also good options.
I did this in REPL with following commands:
Solution to issue 2
There was an function that had hardcoded paths. I changed folder delimiter to forward slass
/
. I presume that that works also in Windows, but I have not tested it.