HaxeFoundation / HaxeFoundation/haxe

haxe 4.1.4 - inconsistent behaviour of sys.FileSystem.fullPath

Open
#9,966 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Haxe Compiler 4.1.4

`sys.FileSystem.fullPath` works different.

`TestFullPath.hx`
```
class TestFullPath {
public static function main() {
trace(sys.FileSystem.fullPath("./not_existence_path")); //
}
}
```

```haxe --run TestFullPath```

output on windows os:
```
TestFullPath.hx:3: D:\devel\haxelib-dev\nme\samples\00-Nmml\not_existence_path
```
on linux os it leads to crash:
```
Uncaught exception Failure("get_full_path")
```

Contributor guide

Open the contributing guide

Research direction

Start with the TestFullPath.hx reproduction and run `haxe --run TestFullPath` on Windows and Linux. Compare how sys.FileSystem.fullPath handles the nonexistent relative path; done means the call no longer crashes on Linux and its behavior is consistent across the two platforms.

Written by the indexing model from the issue text.

Assessment

Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.