B4R Question Compile Error - cannot find the path specified

barx

Well-Known Member
Licensed User
Longtime User
What is this error telling me?

B4X:
B4R version: 1.00 BETA 4
Parsing code.    (0.00s)
Compiling code.    (0.00s)
Building project    (0.03s)
Compiling & deploying Ino project (Arduino Leonardo - COM4)    Error

GetFileAttributesEx D:\Store\CLOUDS~1\Code\B4R\LEDBLI~1\Objects\Blink\Objects\bin: The system cannot find the path specified.
Error compiling for board Arduino Leonardo.
 

barx

Well-Known Member
Licensed User
Longtime User
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
I would mark this as [SOLVED] if I knew how, lol
 
Upvote 0

tchart

Well-Known Member
Licensed User
Longtime User
It happens because of the spaces in the path. It will be fixed in the next update.

For now move your project to d:\store\b4r and it will work.

@Erel, is this fixed? I've just received my ESP8266 and am finally trying B4R out. My project will not compile if tehre is a space in the projects folder name. I'm using 1.2 Beta 2. Projects compile fine if there is no space.
 
Upvote 0

tchart

Well-Known Member
Licensed User
Longtime User
It should be fixed (it works here). Do you get the same error message?

@Erel, yes the same error message. Works fine if there are no spaces in the path.

B4X:
Compiling & deploying Ino project (NodeMCU 1.0 (ESP-12E Module) - COM9)    Error

GetFileAttributesEx E:\Dropbox\My Apps\Arduino\Test2\Objects\Apps\Arduino\Test2\Objects\bin: The system cannot find the path specified.
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
 
Upvote 0

tchart

Well-Known Member
Licensed User
Longtime User
@Erel, its not related to Dropbox. I tried on "E:\My Apps" and "D:\My Apps". I get the same error message.

B4X:
Compiling & deploying Ino project (NodeMCU 1.0 (ESP-12E Module) - COM9)    Error

GetFileAttributesEx E:\My Apps\Test2\Objects\Apps\Test2\Objects\bin: The system cannot find the path specified.
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

However if I move it to "C:\My Apps" it does compile. So it looks like the "spaces in path issue" is fixed for C: but not other drives.
 
Upvote 0

tchart

Well-Known Member
Licensed User
Longtime User
B4R uses a Windows API to get the "dos format" path. Not sure why it doesn't work on your computer. Here it works on all drives.

Indeed, I've just tested in DOS and "C:\My Apps" shows as "C:\MYAPPS~1" however "D/E:\My Apps" shows as "D:\My Apps"

I'm using Windows 10 Pro x64.
 
Upvote 0

tchart

Well-Known Member
Licensed User
Longtime User
Just an FYI but simply running the command mentioned in the link above (ie
fsutil 8dot3name set D: 0) will not resolve the problem.

This only enables 8.3 name creation for new folders.

If you have an existing path with a space you need to recreate it. I renamed my "My Apps" folder to "My Apps2", created a new "My Apps" folder and then copied my projects across. Only then would it compil
 
Upvote 0
Top