Sublime Forum

[fixed] Build system project_name not empty

#1

Hey ST community

I have troubles configuring the compilation of my project on linux, $project, $project_name and all $project* variables are empty. $folder is perfectly working. I set it up in a BuildInstructions.sublime-build file containing :

{
“cmd” : ["$folder/…/…/compileWithSublimeText.sh", “$project_path”],
}

compileWithSublimeText.sh is this :
#!/bin/bash
echo '$ 0 = ’ $0
echo '$ 1 = ’ $1

The result is :
$ 0 = /home/linuxusername/DEV/git/xxx/xxx/mySuperProject/…/…/compileWithSublimeText.sh
$ 1 =

I tried to setup the “project” and “project_name” in the mySuperProject.sublime-workspace :
“project”: “mySuperProject”,
“project_name”: “mySuperProject”,

0 Likes

#2

Ok I finally get it!!
It’s an error to use Workspaces, it’s not meant to be used like that. As a User we create sublime-project and it manages a workspace. So from a project file the project name is known correctly

0 Likes