Contact me: hankecnc@gmail.com

无论我做什么,这个文件都不会用 vsc 编译 #56

推推 grbl 3年前 (2023-02-06) 382次浏览
打开
WilliamHarned 打开了这个问题 2019 年 10 月 22 日 · 20条评论
打开

无论我做什么,这个文件都不会用 vsc 编译#56

WilliamHarned 打开了这个问题 2019 年 10 月 22 日 · 20条评论

评论

无论我做什么,这个文件都不会用 vsc 编译 #56 WilliamHarned 更改了标题 无论我做什么,这个文件都不会用 vsc 编译 无论我做什么,这个文件都不会用 vsc 编译 2019 年 10 月 22 日
无论我做什么,这个文件都不会用 vsc 编译 #56

MarlinFirmware/Marlin#15514
这为我解决了问题:)!

无论我做什么,这个文件都不会用 vsc 编译 #56

Examples 目录中的 Configuration.h 未使用 Marlin 的配置进行更新。您必须通过 WinMerge 使用默认配置检查 Configuration.h 以进行结构更改;)

无论我做什么,这个文件都不会用 vsc 编译 #56
作者
威廉·哈尼德 评论了 2019 年 10 月 22 日 通过电子邮件
无论我做什么,这个文件都不会用 vsc 编译 #56

这很简单…

//#define JUNCTION_DEVIATION
//#if ENABLED(JUNCTION_DEVIATION)
  #define JUNCTION_DEVIATION_MM 0.065  // (mm) Distance from real junction edge
//#endif

第一行被注释掉了——JUNCTION_DEVIATION 现在被定义为默认值并且不必存在。整个 IF 块现在是无意义的,因为没有 JUNCTION_DEVIATION 的隐式定义,所以它永远不会被遵守,并且总是会缺少 JUNCTION_DEVIATION_MM 值。注释掉这三行将解决这个问题;)

可能会有更复杂的修改,例如 Examples 目录中的 Configuration.h 文件不会经常更新,因此唯一的检查方法是使用 WinMerge 并根据实际 MarlinFW 副本中的版本检查 Configuration.h。

无论我做什么,这个文件都不会用 vsc 编译 #56
太酷了 评论了 2019 年 10 月 23 日  

如果您使用的是 Marlin-BugFix-2.x 的最新副本(截至 2019 年 10 月 20 日),您可能需要查看此行周围的 Configuration.h(请参阅下面的文本)

/**
 * Default Jerk limits (mm/s)
 * Override with M205 X Y Z E
 *
 * "Jerk" specifies the minimum speed change that requires acceleration.
 * When changing speed and direction, if the difference is less than the
 * value set here, it may happen instantaneously.
 */
//#define CLASSIC_JERK
#if ENABLED(CLASSIC_JERK)
  #define DEFAULT_XJERK 10.0
  #define DEFAULT_YJERK 10.0
  #define DEFAULT_ZJERK  0.3

  //#define LIMITED_JERK_EDITING        // Limit edit via M205 or LCD to DEFAULT_aJERK * 2
  #if ENABLED(LIMITED_JERK_EDITING)
    #define MAX_JERK_EDIT_VALUES { 20, 20, 0.6, 10 } // ...or, set your own edit limits
  #endif
#endif

#define DEFAULT_EJERK    5.0  // May be used by Linear Advance
/**
 * Junction Deviation Factor
 *
 * See:
 *   https://reprap.org/forum/read.php?1,739819
 *   http://blog.kyneticcnc.com/2018/10/computing-junction-deviation-for-marlin.html
 */
#if DISABLED(CLASSIC_JERK)
  #define JUNCTION_DEVIATION_MM 0.08  // (mm) Distance from real junction edge
#endif

如果启用 Classic_Jerk,则无需担心 JUNCTION_DEVIATION_MM,但如果禁用 Classic_Jerk(这是默认行为),则必须定义 JUNCTION_DEVIATION_MM。
我希望这有帮助

无论我做什么,这个文件都不会用 vsc 编译 #56

对我来说是

不是 -> default_envs = STM32F103RC_bigtree
应该是 -> env_default = STM32F103RC_bigtree

这有助于编译它。之前有同样的问题。

无论我做什么,这个文件都不会用 vsc 编译 #56

对我来说是

不是 -> default_envs = STM32F103RC_bigtree
应该是 -> env_default = STM32F103RC_bigtree

它对我不起作用!

无论我做什么,这个文件都不会用 vsc 编译 #56
作者
威廉·哈尼德 评论了 2019 年 10 月 24 日 通过电子邮件
无论我做什么,这个文件都不会用 vsc 编译 #56

嗨,威廉姆斯

我通过以管理员身份运行 vsc 来让它工作。右键单击该图标,然后单击以管理员身份运行。
……

刚刚试过了 – 没有变化。我将我的 platformio.ini 和 config.h 与最新的 BTT 自述文件进行了比较,它们都匹配。我很茫然。我在终端中收到以下警告消息(黄色):

FileNotFoundError: [Errno 2] 没有这样的文件或目录:’f:\00 3D PRINTING\3 ENDER 3 pro\SKR mini E3\0 BTT stuff board ver 1.2\github\BIGTREETECH-SKR-MINI-E3-v1.2- with-BLT-endstop\.pio\libdeps\STM32F103RC_bigtree\_tmp_installing-vfds7bdr-package\U8glib-HAL-bugfix\src\clib\HAL_example_files\LCD_I2C_routines.c.example’:
文件“C:\users\exken.platformio\penv \lib\site-packages\platformio\builder\main.py”,第 126 行:
env.SConscript(“$BUILD_SCRIPT”)
文件“C:\Users\exken.platformio\packages\tool-scons\script..\engine \SCons\Script\SConscript.py”,第 605 行:
返回 _SConscript(self.fs, *files, **subst_kw)
文件“C:\Users\exken.platformio\packages\tool-scons\script..\engine\ SCons\Script\SConscript.py”,第 286 行:
exec(compile(scriptdata, scriptname, ‘exec’), call_stack[-1].globals)
文件“C:\users\exken.platformio\platforms\ststm32\builder\main.py”,第 91 行:
target_elf = env。 BuildProgram()
文件“C:\Users\exken.platformio\packages\tool-scons\script..\engine\SCons\Environment.py”,第 224 行:
返回 self.method(*nargs, **kwargs)
文件“ C:\users\exken.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py”,第 122 行:
_build_project_deps(env)
文件“C:\users\exken.platformio\penv\lib\站点包\platformio\builder\tools\platformio.py”,第 47 行:
project_lib_builder = env.ConfigureProjectLibBuilder()
文件“C:\Users\exken.platformio\packages\tool-scons\script..\engine\SCons\环境。py”,第 224 行:
返回 self.method(*nargs, **kwargs)
文件“C:\users\exken.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py”,第 1043 行:
project.install_dependencies()
文件“C:\users\exken.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py”,第 878 行:
lm.install(uri)
文件“c:\users\exken.platformio\ penv\lib\site-packages\platformio\managers\lib.py”,第 359 行:
force=force)
文件“c:\users\exken.platformio\penv\lib\site-packages\platformio\managers\package.py ”,第 701 行:
track=True)
文件“c:\users\exken.platformio\penv\lib\site-packages\platformio\managers\package.py”,第 483 行:
self.unpack(dlpath, tmp_dir)
文件“c:\users\exken.platformio\penv\lib\site-packages\platformio\managers\package.py”,第 218 行:
返回 fu.unpack(dest_dir, with_progress=False)
文件“c:\users\exken .platformio\penv\lib\site-packages\platformio\unpacker.py”,第 118 行:
self._unpacker.extract_item(item, dest_dir)
文件“c:\users\exken.platformio\penv\lib\site-packages\ platformio\unpacker.py”,第 38 行:
self._afo.extract(item, dest_dir)
文件“C:\Users\exken.platformio\python37\Lib\zipfile.py”,第 1602 行:
return self._extract_member(member,路径,密码)
文件“C:\Users\exken.platformio\python37\Lib\zipfile.py”,第 1673 行:
打开(targetpath,“wb”)作为目标:

你收到类似的消息吗?
我是否遗漏了一些关于将丢失的文件放置到位的基本知识?
你能把你的 platformio.ini 的文本副本发给我,以便我可以将它与我的进行比较吗?

大卫

无论我做什么,这个文件都不会用 vsc 编译 #56
作者
威廉·哈尼德 评论了 2019 年 10 月 25 日 通过电子邮件
无论我做什么,这个文件都不会用 vsc 编译 #56
作者
威廉·哈尼德 评论了 2019 年 10 月 25 日 通过电子邮件
喜欢 (0)