-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Bug: bad handling of fixed paths #13
Comments
What, precisely, is the bug you're reporting there? Did the file actually exist? Was the relative path from the current working directory to the file incorrect?
The "path" package is for the manipulation of generic forward slashed paths, like URLs. To manipulate operating system paths, the "path/filepath" package should be used. Regardless. Path normalization happens elsewhere, so EDIT: The reported error seems odd on first blush. To receive the error you did, the given path has to have passed the filepath collection stage, where path normalization happens, which means the file should have been able to be opened. |
The bug I'm reporting is that tweego doesn't accept a fixed path in it's sources list and instead produces back a mess of an error. Expected behavior is that Tweego can open sources specified as fixed paths. |
The term is absolute path and Tweego accepts them just fine. The "mess", as you call it, should be the, or at least a, relative path to the file, which should be perfectly accessible via that path. The problem here is likely that your system has symbolically linked the Forcibly attempting to render symbolic links should resolve the issue. |
This is perhaps related. I'm using tweego, version 2.1.1+81d1d71 and it seems to ignore symbolic links: I have a .tw file that is a symbolic link to a file "far away", and tweego seems to silently ignore it and then complain that (e.g.) StoryTItle is not defined, when it is defined in the file. |
Passing a fixed path to tweego results in all kinds of weirdness:
It looks like
tweego/io.go
Line 65 in 81d1d71
The text was updated successfully, but these errors were encountered: