Skip to content
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

Type not found : hxcpp.debug.jsonrpc.Macro #20

Open
Necdilzor opened this issue Jun 23, 2019 · 3 comments
Open

Type not found : hxcpp.debug.jsonrpc.Macro #20

Necdilzor opened this issue Jun 23, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@Necdilzor
Copy link

Hello there,
I'm trying to use this extension to debug Windows builds of HaxeFlixel games.

Whenever I try to install this extension to debug my applications I get this error:
Type not found : hxcpp.debug.jsonrpc.Macro
And as such, I can't even build my application now.

I'm using Haxe 4.0.0-rc.3 (although the same happened with 4.0.0-rc.2) and HaxeFlixel 4.6.2.
I also added <haxelib name="hxcpp-debug-server" /> to my Project.xml file.

Build command used: lime build windows -debug --haxelib=hxcpp-debug-server --connect 6000

I found out that the missing file Macro.hx is inside the vscode extension folder at hxcpp-debugger\hxcpp-debug-server\hxcpp\debug\jsonrpc\Macro.hx.
At the same time, my Haxe installation folder has only a .dev file at haxe\lib\hxcpp-debug-server. Is this normal?

The content of the .dev file is:

c:\Users\Agustín\.vscode\extensions\hxcpp-debugger\hxcpp-debug-server

Maybe the í in c:\Users\Agustín\ is causing trouble?

What could be wrong here?

Thanks for your time.

@Gama11
Copy link
Member

Gama11 commented Jun 23, 2019

Hm.. unless you built the debugger from source, c:\Users\Agustín\.vscode\extensions\hxcpp-debugger\hxcpp-debug-server doesn't seem like the correct path. It should end in something like ...\.vscode\extensions\vshaxe.hxcpp-debugger-1.2.4\hxcpp-debug-server.

@Necdilzor
Copy link
Author

Necdilzor commented Jun 23, 2019

I tried moving the extension from c:\Users\Agustín\.vscode\extensions\hxcpp-debugger\hxcpp-debug-server to D:\GameProjects\haxeflixel\hxcpp-debugger\hxcpp-debug-server and updated the .dev file.
Now it builds and works.
So I guess the issue is that the .dev file can't have characters like í on its path to hxcpp-debug-server.

Yeah, I tried building the extension from source as the normal extension install had the same problem.

@Gama11
Copy link
Member

Gama11 commented Jun 23, 2019

Hm, I see. Maybe we should publish the library to Haxelib as well to make it easier to work around it, but that still doesn't really solve the problem...

@Gama11 Gama11 added the bug Something isn't working label Jun 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants