HaxeFoundation / HaxeFoundation/haxe

Compilation server. Wrong error position info. Regression

Open
#10,763 6 comments 0 reactions 2 assignees Claimed by @kLabz View on GitHub
feature-compiler-cache test-needed
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

**Stuff**
OS: Windows, Linux
Haxe: 4.2.5, dev build

**Instruction of reproduction**
1. Clone repo https://github.com/djaonline/haxe_compile_server_issue
2. Open project in vscode and run compiler(ctrl + shift + B)
3. The compilation server reports correct error position
![Screenshot_1](https://user-images.githubusercontent.com/109904910/180655143-73a3b29a-2190-400b-be20-8f4101f65585.png)
4. Open src/entry/BaseApp.hx file and add space in the place pointed below:
![Screenshot_2](https://user-images.githubusercontent.com/109904910/180655196-2c2dc0f1-99d5-484b-bfa1-f04029da98c7.png)
5. Run compiler and see incorrect error position info:
![Screenshot_3](https://user-images.githubusercontent.com/109904910/180655207-e1f82638-2914-459c-992b-c71214604c68.png)

It works correctly with haxe _4.0.5._

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.